query-dde190028654f7d016d20c10d5adc37e

rq turtle/ttl

Languages

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT 
  ?descriptors
  (CONCAT("#language/", SUBSTR(STR(?language), 32), "/lexemedescriptor") AS ?descriptorsUrl)

  ?language ?languageLabel
  (CONCAT("#language/", SUBSTR(STR(?language), 32)) AS ?languageUrl)
  ?languageDescription

  ?example_descriptor ?example_descriptorLabel
  (CONCAT("#lexemedescriptor/", SUBSTR(STR(?example_descriptor), 32)) AS ?example_descriptorUrl)
  ?example_descriptorDescription
WHERE{
   {
  SELECT 
    (COUNT(DISTINCT ?descriptor) AS ?descriptors)
    ?language
    (SAMPLE(?descriptor) AS ?example_descriptor)
  WHERE {
    [] wdt:P1343 ?descriptor ;
       dct:language ?language .
  }
  GROUP BY ?language
}  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?descriptors)
LIMIT 500

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?descriptor") v4("?descriptors"):::projected v5("?descriptorsUrl") v4("?example_descriptor"):::projected v7("?example_descriptorUrl") v3("?language"):::projected v6("?languageUrl") a1((" ")) c4(["bd:serviceParam"]):::iri c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal a1 --"wdt:P1343"--> v2 a1 --"dct:language"--> v3 bind2[/"count(?descriptor)"/] v2 --o bind2 bind2 --as--o v4 bind3[/"sample(?descriptor)"/] v2 --o bind3 bind3 --as--o v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c4 --"wikibase:language"--> c6 end bind4[/"concat('#language/',substring(str(?language),'32^^xsd:integer'),'/lexemedescriptor')"/] v3 --o bind4 bind4 --as--o v5 bind5[/"concat('#language/',substring(str(?language),'32^^xsd:integer'))"/] v3 --o bind5 bind5 --as--o v6 bind6[/"concat('#lexemedescriptor/',substring(str(?example_descriptor),'32^^xsd:integer'))"/] v4 --o bind6 bind6 --as--o v7