new command to analyze common properties and statements
nichtich opened this issue · 0 comments
nichtich commented
See https://lucaswerkmeister.github.io/wikidata-ontology-explorer/, e.g.
SELECT ?property ?propertyLabel ?count WITH {
SELECT ?property (COUNT(DISTINCT ?statement) AS ?count) WHERE {
?item wdt:P279* wd:Q6423319 ;
?p ?statement.
?property a wikibase:Property;
wikibase:claim ?p.
FILTER(?property != wd:P279)
}
GROUP BY ?property
ORDER BY DESC(?count)
LIMIT 15
} AS %results WHERE {
INCLUDE %results.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY DESC(?count)
could be applied to either classes or to instances (-i) with typical properties (-a) or typical statements (-A). Output formats: default (colore), csv, json