Using DBpedia to help CLDR translators

Hi, I’m using DBPedia to help CLDR translators translate language codes. https://github.com/unicode-org/cldr/pull/845

You can see the UI preview in that link, and I’ll post a link to the live site once it’s merged.

My query is as below. I’m not using 639-3 at the moment, but may do so later. I use the hypernymn to filter out dialects for now also, although I may want those in the future.

PREFIX  dbo:  <http://dbpedia.org/ontology/>
PREFIX  dbr:  <http://dbpedia.org/resource/>
PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT  *
WHERE
  { ?language  rdf:type             dbo:Language ;
              <http://purl.org/linguistics/gold/hypernym>  dbr:Language
    OPTIONAL
      { ?language  dbo:iso6392Code  ?iso6392}
    OPTIONAL
      { ?language  dbo:iso6391Code  ?iso6391}
    ?language  dbo:abstract  ?abstract
    FILTER langMatches(lang(?abstract), "en")
    FILTER ( ( ?iso6391 || ?iso6392 ) && ( ( ?iso6391 != "none" ) && ( ?iso6392 != "none" ) ) )
  }