query-14972308f40640a7efb5e15b638a4583

rq turtle/ttl

title:Persone con almeno un id e nessun alias in italiano SELECT ?person ?personLabel ?id WHERE { ?person wdt:P8750 ?id . ?person wdt:P31 wd:Q5 . MINUS { ?person skos:altLabel ?alias . FILTER(LANG(?alias) = "it") } SERVICE wikibase:label { bd:serviceParam wikibase:language "it,en,de,fr,es". } }

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
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 bd: <http://www.bigdata.com/rdf#>
#title:Persone con almeno un id e nessun alias in italiano
SELECT ?person ?personLabel ?id
WHERE {
  ?person wdt:P8750 ?id .
  ?person wdt:P31 wd:Q5 .
  MINUS { ?person skos:altLabel ?alias . FILTER(LANG(?alias) = "it") }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "it,en,de,fr,es". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?alias") v2("?id"):::projected v1("?person"):::projected c7(["bd:serviceParam"]):::iri c3(["wd:Q5"]):::iri c9(["it,en,de,fr,es"]):::literal v1 --"wdt:P8750"--> v2 v1 --"wdt:P31"--> c3 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; f1[["?alias = 'it'"]] f1 --> v3 v1 --"skos:altLabel"--> v3 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end