query-b115bbf503538808ec686cc96f5370d3
Property paths with normalRank with property paths. normalRank for returning items with this answerI can't seem to be able to combine For example, how would I apply it to the following query for retuning all (categories of) cheeses.
Use at
- https://query.wikidata.org/sparql
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 ?item ?itemLabel WHERE {
?item ((wdt:P31*)/(wdt:P279*)) wd:Q10943;
rdfs:label ?itemLabel.
FILTER((LANG(?itemLabel)) = "en")
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?itemLabel"):::projected
a1((" "))
c4(["wd:Q10943"]):::iri
f0[["?itemLabel = 'en'"]]
f0 --> v1
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c4
v2 --"rdfs:label"--> v1