query-ec257de90c7e0f9ed27264921b1ca853
Make a list of the properties that are used to describe themselves SELECT ?property ?propertyLabel ?propertyDescription (COUNT(?propertyclaim) AS ?count) WHERE {
?property a wikibase:Property . ?property wikibase:claim ?propertyclaim .
?property ?propertyclaim [] .
SERVICE wikibase:label { # ... include the labels
bd:serviceParam wikibase:language "en" .
}
} GROUP BY ?property ?propertyLabel ?propertyDescription ORDER BY DESC (?count)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Make a list of the properties that are used to describe themselves
SELECT ?property ?propertyLabel ?propertyDescription (COUNT(?propertyclaim) AS ?count) WHERE {
?property a wikibase:Property .
?property wikibase:claim ?propertyclaim .
?property ?propertyclaim [] .
SERVICE wikibase:label { # ... include the labels
bd:serviceParam wikibase:language "en" .
}
} GROUP BY ?property ?propertyLabel ?propertyDescription ORDER BY DESC (?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?count")
v2("?property"):::projected
v3("?propertyclaim"):::projected
a1((" "))
c5(["bd:serviceParam"]):::iri
c2(["wikibase:Property"]):::iri
c7(["en"]):::literal
v2 --"a"--> c2
v2 --"wikibase:claim"--> v3
v2 -->v3--> a1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind1[/"count(?propertyclaim)"/]
v3 --o bind1
bind1 --as--o v4