Advertisement · 728 × 90
#
Hashtag
#wdqs
Advertisement · 728 × 90
Original post on openbiblio.social

That's a list I've been looking for for some time: www.mediawiki.org/wiki/Wikibase/Indexing/R...

It shows the differences between the RDF source of a Wikidata item and the way it's stored in the RDF actually used in #Wikidata Query Service #WDQS (and in […]

0 0 0 0
Original post on openbiblio.social

Gestern kam im #SPARQL-Workshop auf, wieso man überhaupt noch den #WDQS-Service benutzen sollte und nicht gleich den performanteren #wikidata-Endpunkt von #qlever . Gründe sind für mich aktuell noch:

- Autocomplete funktioniert in #wdqs insofern besser, als man ihn gezielter triggern kann
- […]

0 1 1 0
Original post on openbiblio.social

I'll try and ask here as well: Does anybody know if there's an overview of where #WDQS differs from standard #SPARQL? I mean e.g. mapping of data-namespace onto wdt at rdf level, different handling of dates (now() - ?date is possible in wdqs) etc. With alternatives such as qlever becoming more […]

0 2 0 0
SPARQL Code Snippet from Wikidata Query Service

SELECT ?prefix ?qsStatementID
WHERE {
  ?item p:PXXX ?s .
  # add more constraints here to get statements you want to remove
  BIND ( ("-STATEMENT") AS ?prefix )
  BIND ( REPLACE(STR(?s), "http://www.wikidata.org/entity/statement/", "")  AS ?statementID )
  BIND ( REPLACE(STR(?item), "http://www.wikidata.org/entity/", "") AS ?qid)
  BIND ( REPLACE(?statementID, CONCAT(?qid, "-"), "") AS ?strippedStatementID )
  BIND ( CONCAT(?qid, "$", ?strippedStatementID ) AS ?qsStatementID )
  }

SPARQL Code Snippet from Wikidata Query Service SELECT ?prefix ?qsStatementID WHERE { ?item p:PXXX ?s . # add more constraints here to get statements you want to remove BIND ( ("-STATEMENT") AS ?prefix ) BIND ( REPLACE(STR(?s), "http://www.wikidata.org/entity/statement/", "") AS ?statementID ) BIND ( REPLACE(STR(?item), "http://www.wikidata.org/entity/", "") AS ?qid) BIND ( REPLACE(?statementID, CONCAT(?qid, "-"), "") AS ?strippedStatementID ) BIND ( CONCAT(?qid, "$", ?strippedStatementID ) AS ?qsStatementID ) }

It took me some time to make sense of the paragraph on how to remove statements using #quickstatements here: www.wikidata.org/wiki/Help:QuickStatement...

Turns out it's actually not too difficult to generate qs-compatible output […]

[Original post on openbiblio.social]

0 1 0 0
Original post on openbiblio.social

Spätestens jetzt, wo auch die #loc ins Fadenkreuz des Trumpismus gekommen ist, lohnt es sich vermutlich, sich zu überlegen, welche Services/Projekte der LOC man gerne auch zukünftig zur Verfügung hätte. Hier die Dinge, von denen #wikidata weiß:

https://w.wiki/E3yD

(Alternative über #qlever […]

0 6 0 0

I got curious to see what’s the longest named-after chain recorded in #Wikidata and I found the following non-fictional list of 8 items using #WDQS:

1. USS Indianapolis
2. Indianapolis
3. Indiana
4. Indiana Territory
5. American Indians
6. Indians
7. India
8. Indus River

1 1 1 0