query-05648359997dd6ec4dc79d62d7973152
title: Wikidata properties on WD objects in the outdoor gym project SELECT ?property ?propertyLabel ?propertyDescription ?count WHERE { { select ?propertyclaim (COUNT(*) AS ?count) where { ?item wdt:P6104 wd:Q107186275. ?item ?propertyclaim [] . } group by ?propertyclaim }
?property wikibase:propertyType wikibase:ExternalId .
?property wikibase:claim ?propertyclaim .
SERVICE wikibase:label { # ... include the labels
bd:serviceParam wikibase:language "en,sv" .
}
} ORDER BY DESC (?count)
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#>
#title: Wikidata properties on WD objects in the outdoor gym project
SELECT ?property ?propertyLabel ?propertyDescription ?count WHERE {
{
select ?propertyclaim (COUNT(*) AS ?count) where {
?item wdt:P6104 wd:Q107186275.
?item ?propertyclaim [] .
} group by ?propertyclaim
}
# ?property wikibase:propertyType wikibase:ExternalId .
?property wikibase:claim ?propertyclaim .
SERVICE wikibase:label { # ... include the labels
bd:serviceParam wikibase:language "en,sv" .
}
} ORDER BY DESC (?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?count"):::projected
v2("?item")
v4("?property"):::projected
v3("?propertyclaim")
a1((" "))
c5(["bd:serviceParam"]):::iri
c7(["en,sv"]):::literal
c2(["wd:Q107186275"]):::iri
v2 --"wdt:P6104"--> c2
v2 -->v3--> a1
bind1[/"count(*)"/]
bind1 --as--o v4
v4 --"wikibase:claim"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end