query-3e00f63e82cc8a7c0615a780256adbb1

rq turtle/ttl

Related descriptors

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX target: <http://www.wikidata.org/entity/Q11964713>

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

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

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?descriptor"):::projected v5("?descriptorUrl") v4("?example_item"):::projected v3("?item") v4("?items"):::projected c1([http://www.wikidata.org/entity/Q11964713]):::iri c4(["bd:serviceParam"]):::iri c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["http://www.wikidata.org/entity/Q11964713 != ?descriptor"]] f0 --> v2 v3 --"wdt:P1343"--> c1 v3 --"wdt:P1343"--> v2 bind3[/"count(?item)"/] v3 --o bind3 bind3 --as--o v4 bind4[/"sample(?item)"/] v3 --o bind4 bind4 --as--o v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c4 --"wikibase:language"--> c6 end bind5[/"concat('#descriptor/',substring(str(?descriptor),'32^^xsd:integer'))"/] v2 --o bind5 bind5 --as--o v5