query-fe62a067ab5f2679ff5703f62040da47
disasters without a date SELECT ?disaster ?disasterLabel ?typeLabel WHERE { ?disaster wdt:P31/wdt:P279* wd:Q3839081 . ?disaster wdt:P31 ?type . filter not exists { ?disaster p:P580 ?start_time } . filter not exists { ?disaster p:P585 ?point_in_time } . filter not exists { ?disaster wdt:P31 wd:Q13406463 } . SERVICE wikibase:label { bd:serviceParam wikibase:language 'en' } }
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 p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# disasters without a date
SELECT ?disaster ?disasterLabel ?typeLabel WHERE {
?disaster wdt:P31/wdt:P279* wd:Q3839081 .
?disaster wdt:P31 ?type .
filter not exists { ?disaster p:P580 ?start_time } .
filter not exists { ?disaster p:P585 ?point_in_time } .
filter not exists { ?disaster wdt:P31 wd:Q13406463 } .
SERVICE wikibase:label { bd:serviceParam wikibase:language 'en' }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?disaster"):::projected
v2("?point_in_time")
v3("?start_time")
v4("?type")
a1((" "))
c8(["bd:serviceParam"]):::iri
c10(["en"]):::literal
c2(["wd:Q13406463"]):::iri
c6(["wd:Q3839081"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"p:direct/P31"--> e0c2
e0v1("?disaster"):::projected
e0c2(["wd:Q13406463"]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> c2
v1 --"p:direct/P31"--> c2
f1[["not "]]
subgraph f1e1["Exists Clause"]
e1v1 --"p:P585"--> e1v2
e1v1("?disaster"):::projected
e1v2("?point_in_time"):::projected
end
f1--EXISTS--> f1e1
f1 --> v1
f1 --> c3
f1 --> v2
v1 --"p:P585"--> v2
f2[["not "]]
subgraph f2e2["Exists Clause"]
e2v1 --"p:P580"--> e2v2
e2v1("?disaster"):::projected
e2v2("?start_time"):::projected
end
f2--EXISTS--> f2e2
f2 --> v1
f2 --> c4
f2 --> v3
v1 --"p:P580"--> v3
v1 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c6
v1 --"p:direct/P31"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end