query-902ebe85427306c95d56509a818f6ac4
Compte des déclarations sur un élément par propriété
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?propertyLabel ?targetLabel (COUNT(?item) AS ?count) WHERE {
VALUES ?target {
wd:Q234735
}
?item ?p ?statement.
?statement ?ps ?target.
?property wikibase:claim ?p;
wikibase:statementProperty ?ps.
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr". }
}
GROUP BY ?targetLabel ?propertyLabel
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v8("?count")
v3("?item"):::projected
v4("?p")
v7("?property")
v6("?ps")
v5("?statement")
v2("?target")
c4(["bd:serviceParam"]):::iri
c6(["fr"]):::literal
bind0[/VALUES ?target/]
bind0-->v2
bind00(["wd:Q234735"])
bind00 --> bind0
v3 -->v4--> v5
v5 -->v6--> v2
v7 --"wikibase:claim"--> v4
v7 --"wikibase:statementProperty"--> v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end
bind2[/"count(?item)"/]
v3 --o bind2
bind2 --as--o v8