query-97d04593469f9300ced43d540b4eac15
TODO
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?NBIC WHERE
{
{
SELECT ?item ?NBIC WHERE
{
{
SELECT ?item WHERE
{
?item wdt:P8707 ?NBIC.
} } ?item wdt:P31 wd:Q16521.
FILTER NOT EXISTS {?item wdt:P1843 ?tcn . FILTER(LANG(?tcn)="no") }
} } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?NBIC"):::projected
v2("?item"):::projected
v1("?tcn")
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c5(["wd:Q16521"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0f0[["?tcn = 'no'"]]
e0f0 --> e0v1
e0v2 --"wdt:P1843"--> e0v1
e0v2("?item"):::projected
e0v1("?tcn"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> v2
f0 --> c2
f1[["?tcn = 'no'"]]
f1 --> v1
v2 --"wdt:P1843"--> v1
v2 --"wdt:P8707"--> v3
v2 --"wdt:P31"--> c5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end