query-ecc18ee897d4f03f74a0ae8944d088c6

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?prop ?propLabel (COUNT(*) AS ?refTypeCnt) WHERE {

  ?item p:P31 [ ps:P31 wd:Q4164871; prov:wasDerivedFrom ?ref ] .
  ?ref ?refType ?reference .
  ?prop wikibase:reference ?refType .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?prop ?propLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item") v5("?prop"):::projected v1("?ref") v3("?refType") v6("?refTypeCnt") v4("?reference") a1((" ")) c7(["bd:serviceParam"]):::iri c2(["wd:Q4164871"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal a1 --"p:statement/P31"--> c2 a1 --"prov:wasDerivedFrom"--> v1 v2 --"p:P31"--> a1 v1 -->v3--> v4 v5 --"wikibase:reference"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end bind1[/"count(*)"/] bind1 --as--o v6