query-2df0bb85d2d4b37069b727a8462707eb
Counting of used properties
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#>
SELECT ?propertyItemLabel (count(?propertyItem) as ?count)
WHERE
{
?item ?propertyRel ?transport.
?transport wdt:P31 wd:Q61927259.
?propertyItem wikibase:directClaim ?propertyRel
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
} group by ?propertyItemLabel
ORDER BY (?idLabel)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?count")
v1("?idLabel")
v2("?item")
v5("?propertyItem"):::projected
v3("?propertyRel")
v4("?transport")
c2(["wd:Q61927259"]):::iri
c5(["bd:serviceParam"]):::iri
c7(["en"]):::literal
v2 -->v3--> v4
v4 --"wdt:P31"--> c2
v5 --"wikibase:directClaim"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind1[/"count(?propertyItem)"/]
v5 --o bind1
bind1 --as--o v6