query-07b9f6db23d7d3aa6fcb5d15a3138295
Édifices fédéraux du patrimoine du Nouveau-Brunswick
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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?monument ?monumentLabel
WHERE { {
SELECT DISTINCT ?monument WHERE {
?monument wdt:P1435/wdt:P279* wd:Q3579115 .
?monument p:P1435 ?heritage_statement .
FILTER NOT EXISTS { ?heritage_statement pq:P582 ?end . }
} }
?monument wdt:P131+ wd:Q1965 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr, en". }
}
ORDER BY ?monumentLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?end")
v2("?heritage_statement")
v4("?monument"):::projected
v1("?monumentLabel"):::projected
a1((" "))
c11(["fr, en"]):::literal
c4(["wd:Q3579115"]):::iri
c7(["wd:Q1965"]):::iri
c9(["bd:serviceParam"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"p:qualifier/P582"--> e0v2
e0v2("?end"):::projected
e0v1("?heritage_statement"):::projected
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> c1
f0 --> v3
v2 --"p:qualifier/P582"--> v3
v4 --"p:direct/P1435"--> a1
a1 --"p:direct/P279"--> c4
v4 --"p:P1435"--> v2
v4 --"p:direct/P131"--> c7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end