query-7dfc3fff7e5afcb4f2765f562cb30e3c

rq turtle/ttl

TODO

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?number ?numberLabel ?item ?property ?itemLabel WHERE {
  ?number wdt:P31/wdt:P279 wd:Q12503 . #find integers
  ?number rdfs:label ?numberLabel . FILTER(lang(?numberLabel) = "en")  #get the integer's en label
  ?item ?property ?numberLabel .  #find items for which the integer's label value is an item property value
  ?item rdfs:label ?itemLabel . FILTER(lang(?itemLabel) = "en") #show only en itemLabels 
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?item"):::projected v1("?itemLabel"):::projected v3("?number"):::projected v2("?numberLabel"):::projected v5("?property"):::projected a1((" ")) c4(["wd:Q12503"]):::iri f0[["?itemLabel = 'en'"]] f0 --> v1 f1[["?numberLabel = 'en'"]] f1 --> v2 v3 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c4 v3 --"rdfs:label"--> v2 v4 -->v5--> v2 v4 --"rdfs:label"--> v1