Wikidata:Synia:descriptor-index

From Wikidata
Jump to navigation Jump to search

Synia: Descriptors

[edit]

Descriptors

[edit]
SELECT 
  ?items
  ?descriptor ?descriptorLabel
  (CONCAT("#descriptor/", SUBSTR(STR(?descriptor), 32)) AS ?descriptorUrl)
  ?descriptorDescription

  ?example_item ?example_itemLabel
WITH {
  SELECT 
    (COUNT(?item) AS ?items)
    ?descriptor 
    (SAMPLE(?item) AS ?example_item)
  WHERE {
    ?item wdt:P1343 ?descriptor .
  }
  GROUP BY ?descriptor
  ORDER BY DESC(?items)
  LIMIT 2000
} AS %descriptors
WHERE {
  INCLUDE %descriptors
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?items)
Try it!