Smalyshev added a comment. Looks like this one is trickier than we thought. While Blazegraph allows to override //storage// for dates, it still insists on using Calendar for math. So if we do this:
prefix schema: <http://schema.org/> INSERT { <http://test.com/a> schema:lastModified "0001-01-01T00:00:00"^^xsd:dateTime <http://test.com/a> schema:lastModified "-0001-01-01T00:00:00"^^xsd:dateTime <http://test.com/a> schema:lastModified "-13798000000-01-01T00:00:00"^^xsd:dateTime <http://test.com/b> schema:lastModified "0000-01-01T00:00:00"^^xsd:dateTime } WHERE {} everything works, and querying it with: prefix schema: <http://schema.org/> prefix xsd: <http://www.w3.org/2001/XMLSchema#> SELECT ?a ?b WHERE { <http://test.com/a> schema:lastModified ?a . <http://test.com/b> schema:lastModified ?b . } works fine. This however does not: prefix schema: <http://schema.org/> prefix xsd: <http://www.w3.org/2001/XMLSchema#> SELECT ?a ?b (?a - ?b as ?diff) WHERE { <http://test.com/a> schema:lastModified ?a . <http://test.com/b> schema:lastModified ?b . } since ops are done with standard XML class (see com.bigdata.rdf.internal.constraints.DateTimeUtility) TASK DETAIL https://phabricator.wikimedia.org/T94539 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Smalyshev Cc: Liuxinyu970226, daniel, Jc3s5h, JanZerebecki, Manybubbles, Thompsonbry.systap, Haasepeter, Beebs.systap, Aklapper, Smalyshev, jkroll, Wikidata-bugs, Jdouglas, aude _______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
