blazegraph

SPARQL: Querying Wikidata labels for more than one language

与世无争的帅哥 提交于 2019-12-02 05:55:31
问题 I am trying to get labels in multiple languages from Wikidata's SPARQL endpoint. The following example is given here: SELECT ?country ?country_EN ?country_DE ?country_FR WHERE { ?country wdt:P31 wd:Q185441. # member state of the European Union SERVICE wikibase:label { bd:serviceParam wikibase:language "en". ?country rdfs:label ?country_EN. } SERVICE wikibase:label { bd:serviceParam wikibase:language "de". ?country rdfs:label ?country_DE. } SERVICE wikibase:label { bd:serviceParam wikibase

Compare models for identity, but with variables? Construct with minus?

情到浓时终转凉″ 提交于 2019-12-02 03:30:49
问题 My team is implementing a variation of Ceusters's Referent Tracking. In our implementation, the original URI for an entity can be changed (to something containing a UUID), although a link to the original URI is always kept. For example: :Joey rdf:type :person . :New_York_City rdf:type :locality . :Joey :hometown :New_York_City . might become: :Joey :replacedWith :ABC123 . :ABC123 rdf:type :person . :New_York_City :replacedWith :FFF555 . :FFF555 rdf:type :locality . :ABC123 :hometown :FFF555 .

SPARQL: Querying Wikidata labels for more than one language

廉价感情. 提交于 2019-12-02 02:06:20
I am trying to get labels in multiple languages from Wikidata's SPARQL endpoint. The following example is given here : SELECT ?country ?country_EN ?country_DE ?country_FR WHERE { ?country wdt:P31 wd:Q185441. # member state of the European Union SERVICE wikibase:label { bd:serviceParam wikibase:language "en". ?country rdfs:label ?country_EN. } SERVICE wikibase:label { bd:serviceParam wikibase:language "de". ?country rdfs:label ?country_DE. } SERVICE wikibase:label { bd:serviceParam wikibase:language "fr". ?country rdfs:label ?country_FR. } } Try it here However, this returns the following error

Compare models for identity, but with variables? Construct with minus?

旧街凉风 提交于 2019-12-02 02:01:20
My team is implementing a variation of Ceusters's Referent Tracking . In our implementation, the original URI for an entity can be changed (to something containing a UUID), although a link to the original URI is always kept. For example: :Joey rdf:type :person . :New_York_City rdf:type :locality . :Joey :hometown :New_York_City . might become: :Joey :replacedWith :ABC123 . :ABC123 rdf:type :person . :New_York_City :replacedWith :FFF555 . :FFF555 rdf:type :locality . :ABC123 :hometown :FFF555 . I am writing some Scala integration tests to see if our software does the referent tracking correctly

Wikidata LabelService does not behave as expected

て烟熏妆下的殇ゞ 提交于 2019-11-28 14:18:49
The following Wikidata query does not work as I would expect it: # WikiData SPARQL Query # # Wolfgang Fahl 2018-01-06 # # get father of queen victoria SELECT ?queenVictoria ?queenVictoriaLabel ?fatherProperty ?fatherPropertyLabel ?father ?fatherLabel WHERE { # # father # https://www.wikidata.org/wiki/Property:P42 # Queen Victoria # https://www.wikidata.org/wiki/Q9439 BIND (wdt:P22 AS ?fatherProperty). BIND (wd:Q9439 AS ?queenVictoria). ?queenVictoria ?fatherProperty ?father. SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } try it! The result is queenVictoria

Wikidata LabelService does not behave as expected

断了今生、忘了曾经 提交于 2019-11-27 08:19:55
问题 The following Wikidata query does not work as I would expect it: # WikiData SPARQL Query # # Wolfgang Fahl 2018-01-06 # # get father of queen victoria SELECT ?queenVictoria ?queenVictoriaLabel ?fatherProperty ?fatherPropertyLabel ?father ?fatherLabel WHERE { # # father # https://www.wikidata.org/wiki/Property:P42 # Queen Victoria # https://www.wikidata.org/wiki/Q9439 BIND (wdt:P22 AS ?fatherProperty). BIND (wd:Q9439 AS ?queenVictoria). ?queenVictoria ?fatherProperty ?father. SERVICE wikibase