query-026f04274c443878dc04424a44a7b17a
dates et processus temporels https://w.wiki/6quw et problèmes: https://w.wiki/6a4Fdates iraniennes à faire :
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?start ?start_prc ?end ?end_prc ?nature_de_l__l_ment ?nature_de_l__l_mentLabel WHERE {
VALUES ?start_prc {
9
10
11
}
?item (p:P580/psv:P580) _:b12.
_:b12 wikibase:timePrecision ?start_prc;
wikibase:timeValue ?start.
VALUES ?end_prc {
9
10
11
}
?item (p:P582/psv:P582) _:b13.
_:b13 wikibase:timePrecision ?end_prc;
wikibase:timeValue ?end.
MINUS { ?item p:P585 _:b14. }
FILTER((YEAR(?start)) = (YEAR(?end)))
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
OPTIONAL { ?item wdt:P31 ?nature_de_l__l_ment. }
}
LIMIT 1000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?end"):::projected
v5("?end_prc"):::projected
v4("?item"):::projected
v6("?nature_de_l__l_ment"):::projected
v1("?start"):::projected
v3("?start_prc"):::projected
a2((" "))
a4((" "))
a5((" "))
a1((" "))
a3((" "))
c9(["bd:serviceParam"]):::iri
c11(["en"]):::literal
f0[["year-from-dateTime(?start) = year-from-dateTime(?end)"]]
f0 --> v1
f0 --> v2
bind1[/VALUES ?start_prc/]
bind1-->v3
bind10(["9^^xsd:integer"])
bind10 --> bind1
bind11(["10^^xsd:integer"])
bind11 --> bind1
bind12(["11^^xsd:integer"])
bind12 --> bind1
v4 --"p:P580"--> a1
a1 --"p:statement/value/P580"--> a2
a2 --"wikibase:timePrecision"--> v3
a2 --"wikibase:timeValue"--> v1
bind2[/VALUES ?end_prc/]
bind2-->v5
bind20(["9^^xsd:integer"])
bind20 --> bind2
bind21(["10^^xsd:integer"])
bind21 --> bind2
bind22(["11^^xsd:integer"])
bind22 --> bind2
v4 --"p:P582"--> a3
a3 --"p:statement/value/P582"--> a4
a4 --"wikibase:timePrecision"--> v5
a4 --"wikibase:timeValue"--> v2
subgraph minus3["MINUS"]
style minus3 stroke-width:6px,fill:pink,stroke:red;
v4 --"p:P585"--> a5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:direct/P31".-> v6
end