query-76d3e268156b8d19f0d4ced022d70904

rq turtle/ttl

PropertiesARK formatter (P8054)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?property ?propertyLabel (COUNT(?item) AS ?numberOfARKs) WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  # Listing the properties that have an ARK formatter property
  ?property wdt:P8054 ?string.
  # Linking to the equivalent property in the wdt: namespace
  ?property wikibase:directClaim ?prop.
  # Listing all items that have one of the properties listed above
  ?item ?prop ?ark.
}
GROUP BY ?property ?propertyLabel
ORDER BY DESC (?numberOfARKs)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?ark") v5("?item"):::projected v7("?numberOfARKs") v4("?prop") v2("?property"):::projected v3("?string") c2(["bd:serviceParam"]):::iri c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end v2 --"wdt:P8054"--> v3 v2 --"wikibase:directClaim"--> v4 v5 -->v4--> v6 bind1[/"count(?item)"/] v5 --o bind1 bind1 --as--o v7