query-20cd00babbad9ce0eadee60c118535f5
Protection MH sans date de début SELECT DISTINCT ?item ?itemLabel WHERE { { ?item wdt:P1435 wd:Q10387575 . } UNION { ?item wdt:P1435 wd:Q10387684 . } #Protection MH MINUS { ?item p:P1435 [ ps:P1435 [] ; pq:P580 ?dateDebut ] . } #Sans date de début MINUS { ?item wdt:P131+ wd:Q33788 } #hors Nouvelle-Calédonie SERVICE wikibase:label { bd:serviceParam wikibase:language "fr" } . }
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Protection MH sans date de début
SELECT DISTINCT ?item ?itemLabel WHERE {
{ ?item wdt:P1435 wd:Q10387575 . } UNION { ?item wdt:P1435 wd:Q10387684 . } #Protection MH
MINUS { ?item p:P1435 [ ps:P1435 [] ; pq:P580 ?dateDebut ] . } #Sans date de début
MINUS { ?item wdt:P131+ wd:Q33788 } #hors Nouvelle-Calédonie
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr" } .
}
Query found at
- https://www.wikidata.org/wiki/Wikidata:WikiProject_France/Monuments_historiques
- https://www.wikidata.org/wiki/Wikidata:WikiProject_France/Monuments_historiques/Requ%C3%AAtes
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?dateDebut")
v1("?item"):::projected
a2((" "))
a1((" "))
c3(["wd:Q10387684"]):::iri
c2(["wd:Q10387575"]):::iri
c10(["bd:serviceParam"]):::iri
c12(["fr"]):::literal
c8(["wd:Q33788"]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"p:direct/P1435"--> c3
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"p:direct/P1435"--> c2
end
union0r <== or ==> union0l
end
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
a1 --"p:statement/P1435"--> a2
a1 --"p:qualifier/P580"--> v2
v1 --"p:P1435"--> a1
end
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v1 --"p:direct/P131"--> c8
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end