query-15ddb516f6394fdae7b780f6d5fbd01d
wdt:P31/wdt:P279Could someone please explain the syntax of wdt:P31/wdt:P279 - what is the * ? And why does this find zero results if it is as I understand - instance of or sub-class of):
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item (COUNT(?item) AS ?count)
WHERE {
?item wdt:P31/wdt:P279* wd:Q8066 .
?item wdt:P702 ?uuu .
?uuu wdt:P31 wd:Q165052 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,nl". }
}
group by ?item
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?count")
v1("?item"):::projected
v2("?uuu")
a1((" "))
c9(["en,nl"]):::literal
c7(["bd:serviceParam"]):::iri
c3(["wd:Q8066"]):::iri
c5(["wd:Q165052"]):::iri
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v1 --"wdt:P702"--> v2
v2 --"wdt:P31"--> c5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind1[/"count(?item)"/]
v1 --o bind1
bind1 --as--o v3