query-a84ec440a0fd9da349d490fe7e6b3bd5

rq turtle/ttl

Gregorian date flag and SPARQLI have been involved in a discussion on my User talk about Julian and Gregorian dates, in the flag raised from time codes. To carry out widespread checks on these flags, one would need a specialised SPARQL query, which could be applied with various side conditions (e.g. dates in an interval, country, sourcing). So, has anyone figured out how to query on Julian/Gregorian? 09:29, 14 September 2016 (UTC)) talk (Charles Matthews. For example, the following query returns all birth dates after 1930 using the Julian calendarwikibase:timeCalendarModelto query on calendar, use 09:36, 14 September 2016 (UTC) Jura--- Try the "before year 1 query" on property talk pages. You can change the date range. All dates on WQS are Gregorian.

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
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 ?itemLabel ?birth where{
  ?item p:P569/psv:P569 ?node .
  ?node wikibase:timeValue ?birth .
  FILTER(YEAR(?birth) > 1930)
  ?node wikibase:timeCalendarModel wd:Q1985786
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?birth"):::projected v2("?item"):::projected v3("?node") a1((" ")) c8(["bd:serviceParam"]):::iri c10(["en"]):::literal c6(["wd:Q1985786"]):::iri f0[["year-from-dateTime(?birth) > '1930^^xsd:integer'"]] f0 --> v1 v2 --"p:P569"--> a1 a1 --"p:statement/value/P569"--> v3 v3 --"wikibase:timeValue"--> v1 v3 --"wikibase:timeCalendarModel"--> c6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end