query-a84ec440a0fd9da349d490fe7e6b3bd5
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
- https://query.wikidata.org/sparql
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" }
}