query-01900542f5819664e83e5948d3e86c2c
TODO
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 ?property ?propertyLabel (COUNT(?property) AS ?cnt) WHERE {
{ ?item wdt:P31 wd:Q7372078 } UNION { ?item wdt:P31 wd:Q847017; wdt:P641/wdt:P279* wd:Q159354 } .
?item ?claim [] .
?claim ^wikibase:claim ?property .
SERVICE wikibase:label { bd:serviceParam wikibase:language '[AUTO_LANGUAGE],en' }
} GROUP BY ?property ?propertyLabel ORDER BY DESC(?cnt)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?claim")
v5("?cnt")
v2("?item")
v4("?property"):::projected
a2((" "))
a1((" "))
c9(["bd:serviceParam"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q7372078"]):::iri
c6(["wd:Q159354"]):::iri
c3(["wd:Q847017"]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P31"--> c3
v2 --"wdt:P641"--> a1
a1 --"wdt:P279"--> c6
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P31"--> c2
end
union0r <== or ==> union0l
end
v2 -->v3--> a2
v4 --"wikibase:claim"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end
bind1[/"count(?property)"/]
v4 --o bind1
bind1 --as--o v5