List talk

Deu/Elemente

Revision as of 13:20, 17 June 2018 by Lucas Werkmeister (talk | contribs) (make query more useful for other languages)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Created with the following query on WDQS:

SELECT ?listEntry WHERE {
  BIND("de" AS ?language)
  ?element wdt:P31 wd:Q11344;
           wdt:P1086 ?number.
  FILTER(?number >= 1 && ?number <= 118)
  OPTIONAL {
    ?element rdfs:label ?label.
    FILTER(LANG(?label) = ?language)
  }
  BIND(COALESCE(
    CONCAT("# ", ?label),
    CONCAT("<!-- WARNING: no ", ?language, " label for element with number ", STR(?number), "! -->")
  ) AS ?listEntry)
}
ORDER BY ?number

To create the corresponding list for your own language, replace the language code in line 2. --Lucas Werkmeister (talk) 13:20, 17 June 2018 (UTC)