query-5a97b5be49b5fd37541255063d99da60

rq turtle/ttl

Date de début de protection erronée (inscription avant 1913 ou classement avant 1840) SELECT DISTINCT ?item ?itemLabel ?dateDebut WHERE { { ?item p:P1435 [ ps:P1435 wd:Q10387575 ; pq:P580 ?dateDebut ] . FILTER(year(?dateDebut) < 1913 ) } UNION { ?item p:P1435 [ ps:P1435 wd:Q10387684 ; pq:P580 ?dateDebut ] . FILTER(year(?dateDebut) < 1840 ) } SERVICE wikibase:label { bd:serviceParam wikibase:language "fr" } . }

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
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#>
#Date de début de protection erronée (inscription avant 1913 ou classement avant 1840)
SELECT DISTINCT ?item ?itemLabel ?dateDebut WHERE {
    { ?item p:P1435 [ ps:P1435 wd:Q10387575 ; pq:P580 ?dateDebut ] .
    FILTER(year(?dateDebut) < 1913 ) }
    UNION
    { ?item p:P1435 [ ps:P1435 wd:Q10387684 ; pq:P580 ?dateDebut ] .
    FILTER(year(?dateDebut) < 1840 ) }
    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; v1("?dateDebut"):::projected v2("?item"):::projected a1((" ")) a2((" ")) c7(["wd:Q10387684"]):::iri c3(["wd:Q10387575"]):::iri c9(["bd:serviceParam"]):::iri c11(["fr"]):::literal subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; f0[["year-from-dateTime(?dateDebut) < '1840^^xsd:integer'"]] f0 --> v1 a2 --"p:statement/P1435"--> c7 a2 --"p:qualifier/P580"--> v1 v2 --"p:P1435"--> a2 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; f1[["year-from-dateTime(?dateDebut) < '1913^^xsd:integer'"]] f1 --> v1 a1 --"p:statement/P1435"--> c3 a1 --"p:qualifier/P580"--> v1 v2 --"p:P1435"--> a1 end union0r <== or ==> union0l end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end