query-f1cc66530a92d9c91690bd9ea8f5b23f

rq turtle/ttl

Propertiesinstance of (P31)

Use at

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 ?propertyLabel ?propertyDescription ?pt ?count WHERE {
  {
    SELECT ?propertyclaim (COUNT(*) AS ?count) WHERE {
      ?id ?b ?item .
      ?item wdt:P31 wd:Q12136 .
      [] ?propertyclaim ?id .
    } GROUP BY ?propertyclaim
  }
  ?property wikibase:propertyType ?pt .
  ?property wikibase:claim ?propertyclaim .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
} ORDER BY DESC (?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?b") v6("?count"):::projected v2("?id") v4("?item") v6("?property") v5("?propertyclaim") v7("?pt"):::projected a1((" ")) c6(["bd:serviceParam"]):::iri c8(["en"]):::literal c2(["wd:Q12136"]):::iri v2 -->v3--> v4 v4 --"wdt:P31"--> c2 a1 -->v5--> v2 bind1[/"count(*)"/] bind1 --as--o v6 v6 --"wikibase:propertyType"--> v7 v6 --"wikibase:claim"--> v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end