query-c583d1b71e63700c3aadc16e448664b8

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 {
      ?item wdt:P31 wd:Q12136 .
      ?item ?propertyclaim [] .
    } 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; v4("?count"):::projected v2("?item") v4("?property") v3("?propertyclaim") v5("?pt"):::projected a1((" ")) c6(["bd:serviceParam"]):::iri c8(["en"]):::literal c2(["wd:Q12136"]):::iri v2 --"wdt:P31"--> c2 v2 -->v3--> a1 bind1[/"count(*)"/] bind1 --as--o v4 v4 --"wikibase:propertyType"--> v5 v4 --"wikibase:claim"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end