query-9518abbb5c0925fb0d9411c0724f52fd
18:16, 29 October 2015 (UTC)) talk (YellowcardHowever, this leads to a timeout. Other ways don't seem to work for me. Has anyone an idea? Hi, there are a couple of idioms in SPARQL to filter for something not being the case. An older way to do it is
Use at
- https://query.wikidata.org/sparql
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#>
SELECT ?name ?name_label WHERE {
?name wdt:P31/wdt:P279* wd:Q202444 .
optional {
?name rdfs:label ?name_label filter (lang(?name_label) = "en")
}
filter(!bound(?name_label))
} LIMIT 10
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?name"):::projected
v1("?name_label"):::projected
a1((" "))
c4(["wd:Q202444"]):::iri
f0[["not bound(?name_label)"]]
f0 --> v1
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."rdfs:label".-> v1
end