query-964a8e89c66070581ed951a392a2b54f

rq turtle/ttl

Reference properties

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?prop ?propLabel ?count



WHERE {
   {
  SELECT DISTINCT ?propRef (COUNT(?ref) AS ?count) WHERE {
    ?item ?property wd:Q159172 ; ?prop ?claim .
    ?claim prov:wasDerivedFrom ?ref .
    ?ref ?propRef ?value .
  } GROUP BY ?propRef
}.
  ?prop wikibase:reference ?propRef .  
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?claim") v9("?count"):::projected v2("?item") v4("?prop"):::projected v7("?propRef") v3("?property") v6("?ref") v8("?value") c5(["bd:serviceParam"]):::iri c1(["wd:Q159172"]):::iri c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal v2 -->v3--> c1 v2 -->v4--> v5 v5 --"prov:wasDerivedFrom"--> v6 v6 -->v7--> v8 bind1[/"count(?ref)"/] v6 --o bind1 bind1 --as--o v9 v4 --"wikibase:reference"--> v7 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end