query-dd1341de704b3a22b7f830dd0140e405

rq turtle/ttl

Get all items linked to WMBE WikiProjects that have missing labels SELECT distinct ?item WHERE { ?item wdt:P6104 ?wikiproject; wdt:P31 wd:Q5. ?wikiproject wdt:P31 wd:Q16695773; wdt:P664 wd:Q18398868. MINUS { ?item rdfs:label ?label. FILTER((LANG(?label)) = "da") } }

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#>
# Get all items linked to WMBE WikiProjects that have missing labels
SELECT distinct ?item WHERE {
  ?item wdt:P6104 ?wikiproject;
    wdt:P31 wd:Q5.
  ?wikiproject wdt:P31 wd:Q16695773;
    wdt:P664 wd:Q18398868.
  MINUS {
    ?item rdfs:label ?label.
    FILTER((LANG(?label)) = "da")
  }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected v3("?label") v2("?wikiproject") c6(["wd:Q18398868"]):::iri c3(["wd:Q5"]):::iri c4(["wd:Q16695773"]):::iri v1 --"wdt:P6104"--> v2 v1 --"wdt:P31"--> c3 v2 --"wdt:P31"--> c4 v2 --"wdt:P664"--> c6 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; f1[["?label = 'da'"]] f1 --> v3 v1 --"rdfs:label"--> v3 end