query-5192a2b989969fdc2cb66329628696dd
dates with multiple calendarsI am looking for items that have dates of birth (or death) saved using different statements using different calendars. I tried:
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item ?cal1 ?cal2
{
?item p:P569 ?date1 .
?item p:P569 ?date2 FILTER( ?date2 != ?date1 ) . # more than one statement
?date1 psv:P569 [ wikibase:timeCalendarModel ?cal1; ] .
?date2 psv:P569 [ wikibase:timeCalendarModel ?cal2; ] FILTER(?cal1 != ?cal2 ) .
}
LIMIT 10
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?cal1"):::projected
v2("?cal2"):::projected
v4("?date1")
v3("?date2")
v5("?item"):::projected
a1((" "))
a2((" "))
f0[["?cal1 != ?cal2"]]
f0 --> v1
f0 --> v2
f1[["?date2 != ?date1"]]
f1 --> v3
f1 --> v4
v5 --"p:P569"--> v4
v5 --"p:P569"--> v3
a1 --"wikibase:timeCalendarModel"--> v1
v4 --"p:statement/value/P569"--> a1
a2 --"wikibase:timeCalendarModel"--> v2
v3 --"p:statement/value/P569"--> a2