query-087c36aa7a966dc32b0eaacc5b8ceeab

rq turtle/ttl

. United Nations Declaration on the Rights of Indigenous PeoplesLabels and alternative labels for ethnic groups on Wikidata contain a wild mixture of self-identified and non-self-identified names. The latter are often rooted in colonialism and/or racism and contradict the allow heritage institutions that are interested in decolonizing their databases an easier matching of incorrect and correct terms. Matchings done by one institution can be reused by others and are thus more sustainable. Also, the editing of the terms can be outsourced and stakeholder groups can be involved. (P12090)non-self-identified name and (P12089)‎self-identified name The two new properties The followig SPARQL queries can serve as a starting point for using the data. in a specific language (here French): (Q41710)ethnic group Alphabetic list of all labels (incl. alternatives) of

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?group ?label ?selfidentified ?nonselfidentified WHERE {
  # set language
  BIND('fr' AS ?lang)
  # ?group instance/subclass of ethnic group
  ?group wdt:P31/wdt:P279* wd:Q41710.
  {
    ?group rdfs:label ?label .
  } UNION {
    ?group skos:altLabel ?label .
  }
  FILTER(lang(?label)=?lang)
  OPTIONAL {
    # self-indentified name
    ?group wdt:P12089 ?selfidentified.
    FILTER(lang(?selfidentified)=?lang)
  }
  OPTIONAL {
    # non-self-indentified name
    ?group wdt:P12090 ?nonselfidentified.
    FILTER(lang(?selfidentified)=?lang)
  }
} ORDER BY ASC(?label)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?group"):::projected v1("?label"):::projected v4("?lang") v5("?nonselfidentified"):::projected v2("?selfidentified"):::projected a1((" ")) c3(["wd:Q41710"]):::iri f0[["?label = ?lang"]] f0 --> v1 f0 --> v4 bind1[/"'fr'"/] bind1 --as--o v4 v4 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v4 --"skos:altLabel"--> v1 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v4 --"rdfs:label"--> v1 end union0r <== or ==> union0l end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P12089".-> v2 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P12090".-> v5 end