query-04b6e45ad9bcb89532ddbf15b31609cd
Armenian people with no Armenian label
Use at
- https://query.wikidata.org/sparql
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#>
SELECT ?item ?itemLabel WHERE
{
?item wdt:P27 wd:Q399 .
OPTIONAL {
?item rdfs:label ?label .
FILTER(LANG(?label) = 'hy') .
}
FILTER(!BOUND($label)) .
SERVICE wikibase:label { bd:serviceParam wikibase:language 'hy' }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?label")
c1(["hy"]):::literal
c3(["wd:Q399"]):::iri
c6(["bd:serviceParam"]):::iri
f0[["not bound(?label)"]]
f0 --> v1
v2 --"wdt:P27"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."rdfs:label".-> v1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c1
end