query-b7e92967f146c7de68ccf468a3ed42ec
Finding properties commonly used in geography
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
SELECT DISTINCT ?property (COUNT(?item) AS ?items)
WHERE {
?item wdt:P31 wd:Q6256.
?item ?property ?value.
?property rdf:type owl:DatatypeProperty.
}
GROUP BY ?property
ORDER BY DESC(?items)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v5("?items")
v3("?property"):::projected
v4("?value")
c4(["owl:DatatypeProperty"]):::iri
c2(["wd:Q6256"]):::iri
v2 --"wdt:P31"--> c2
v2 -->v3--> v4
v3 --"a"--> c4
bind1[/"count(?item)"/]
v2 --o bind1
bind1 --as--o v5