query-b6f956ed9984e8238ac2a2c793c8f89d

rq turtle/ttl

TODO

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item ?itemLabel 
WHERE 
{
  ?item wdt:P17 wd:Q33.                              # item has Country=Finland
  ?item rdfs:label ?itemLabel.                       # and has a label
  filter(lang(?itemLabel)="fi")                      # in Finnish
  filter not exists {                                # and does not have
    ?item rdfs:label ?itemLabel2.                    # a label
    filter(lang(?itemLabel2)="se")                   # in Northern Sami 
  }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item"):::projected v3("?itemLabel"):::projected v1("?itemLabel2") c5(["wd:Q33"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0f0[["?itemLabel2 = 'se'"]] e0f0 --> e0v1 e0v2 --"rdfs:label"--> e0v1 e0v2("?item"):::projected e0v1("?itemLabel2"):::projected end f0--EXISTS--> f0e0 f0 --> v1 f0 --> v2 f0 --> c2 f1[["?itemLabel2 = 'se'"]] f1 --> v1 v2 --"rdfs:label"--> v1 f2[["?itemLabel = 'fi'"]] f2 --> v3 v2 --"wdt:P17"--> c5 v2 --"rdfs:label"--> v3