query-05490e0cf88057d039a8711a047ba054
MH protégés en 2024 - simplifié
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#>
SELECT DISTINCT ?item ?itemLabel ?coord ?pic WHERE {
{ ?item wdt:P1435 wd:Q10387575 . } UNION { ?item wdt:P1435 wd:Q10387684 . } #MH
OPTIONAL { {?item p:P1435 [ ps:P1435 wd:Q10387575 ; pq:P580 ?dateDebut ] . } UNION
{?item p:P1435 [ ps:P1435 wd:Q10387684 ; pq:P580 ?dateDebut ] . } }
FILTER(year(?dateDebut) = 2024 )
?item wdt:P380 ?id .
OPTIONAL {?item wdt:P625 ?coord.}
OPTIONAL {?item wdt:P18 ?pic.}
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr" } .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?coord"):::projected
v1("?dateDebut")
v3("?id")
v2("?item"):::projected
v5("?pic"):::projected
a1((" "))
a2((" "))
c14(["fr"]):::literal
c4(["wd:Q10387684"]):::iri
c3(["wd:Q10387575"]):::iri
c12(["bd:serviceParam"]):::iri
f0[["year-from-dateTime(?dateDebut) = '2024^^xsd:integer'"]]
f0 --> v1
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v2 --"p:direct/P1435"--> c4
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"p:direct/P1435"--> c3
end
union0r <== or ==> union0l
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
a2 -."p:statement/P1435".-> c4
a2 --"p:qualifier/P580"--> v1
v2 --"p:P1435"--> a2
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
a1 --"p:statement/P1435"--> c3
a1 --"p:qualifier/P580"--> v1
v2 --"p:P1435"--> a1
end
union1r <== or ==> union1l
end
end
v2 --"p:direct/P380"--> v3
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P625".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P18".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end