query-bafea621a3276412a3fb52d54e5e7274

rq turtle/ttl

Ancient Romans without English labels SELECT ?item ?itemLabel WHERE { ?item wdt:P27 wd:Q1747689 . MINUS { ?item rdfs:label ?enlabel . FILTER(LANG(?enlabel) = 'en') . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". } } ORDER BY ?itemLabel

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
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#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Ancient Romans without English labels
SELECT ?item ?itemLabel WHERE {
  ?item wdt:P27 wd:Q1747689 .
  MINUS { ?item rdfs:label ?enlabel .
  FILTER(LANG(?enlabel) = 'en') . }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
ORDER BY ?itemLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?enlabel") v2("?item"):::projected v1("?itemLabel"):::projected c6(["bd:serviceParam"]):::iri c8(["#91;AUTO_LANGUAGE#93;"]):::literal c2(["wd:Q1747689"]):::iri v2 --"wdt:P27"--> c2 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; f1[["?enlabel = 'en'"]] f1 --> v3 v2 --"rdfs:label"--> v3 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end