query-6b4ce7a2d64444e84c3b697fcfefcacd

rq turtle/ttl

Give me all properties that used by a specific instance!

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?prop ?propLabel (COUNT(?prop) AS ?number)
WHERE {
     # recommended to display the property's label
  ?prop wikibase:directClaim ?p .      # nedded to display the property's label
  wd:Q53243913 ?p ?o .
  SERVICE wikibase:label {bd:serviceParam wikibase:language "en,de"}
} GROUP BY ?prop ?propLabel 
ORDER BY DESC(?number)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?number") v4("?o") v3("?p") v2("?prop"):::projected c2(["wd:Q53243913"]):::iri c4(["bd:serviceParam"]):::iri c6(["en,de"]):::literal v2 --"wikibase:directClaim"--> v3 c2 -->v3--> v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c4 --"wikibase:language"--> c6 end bind1[/"count(?prop)"/] v2 --o bind1 bind1 --as--o v5