Smalyshev added a comment. So I tried to make a quick hacky patch to com.bigdata.rdf.internal.impl.extensions.DateTimeExtension to make it use our previous model (date as long seconds) and with it it seems to properly understand the value, at least when experessed as:
wdt:P580 "-13800000000-01-01T00:00:00Z"^^xsd:dateTime ; The query like: prefix entity: <http://wikidata-wdq.testme.wmflabs.org/entity/> prefix wdt: <http://wikidata-wdq.testme.wmflabs.org/entity/assert/> prefix xsd: <http://www.w3.org/2001/XMLSchema#> select ?x WHERE { entity:Q1 wdt:P580 ?x FILTER (?x < "0001-01-01T00:00:00Z"^^xsd:dateTime) } Produces: x -13800000000-01-01T00:00:00Z So two things left: 1. Find proper (non-hacky) way of plugging it in 2. (?) support other xsd: time types, such as gYear, etc. TASK DETAIL https://phabricator.wikimedia.org/T90131 REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>. EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Smalyshev Cc: Jdouglas, Smalyshev, Thompsonbry.systap, daniel, Beebs.systap, Haasepeter, Aklapper, Manybubbles, jkroll, Wikidata-bugs, aude, GWicke, JanZerebecki _______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
