JanZerebecki added a comment. About representation of years BCE: Thank you for starting that mailing list thread. It seem that it tends towards saying that the normative thing for SPARQL 1.1 is XSD 1.1 with the reasoning that XSD 1.1 retroactively changes anything that refers to XSD 1.0 as otherwise SPARQL 1.1 Query Language and Entailment Regimes would disagree. If that remains, the question is what to do regarding implementation reality which because of Java might lean towards XSD 1.0. Implementations of XPath functions (like libxslt) and XSD validators (like libxml) are probably also relevant.
Virtuoso seems to implement XSD 1.0: prefix xsd: <http://www.w3.org/2001/XMLSchema#> SELECT ?date WHERE { BIND ( "0001-01-01T00:00:00"^^xsd:dateTime - "-0002-01-01T00:00:00"^^xsd:dateTime AS ?date) } <res:value datatype="http://www.w3.org/2001/XMLSchema#integer">63158400</res:value> = (365+366)*24*60*60 Virtuoso 22007 Error DT006: Cannot convert 0000-01-01T00:00:00-03:00 to datetime : Incorrect year value SPARQL query: define sql:big-data-const 0 #output-format:application/rdf+xml prefix xsd: <http://www.w3.org/2001/XMLSchema#> SELECT ?date WHERE { BIND ( "-0001-01-01T00:00:00"^^xsd:dateTime AS ?date) } Maybe we should wait on acting on this until Java XMLGregorianCalendar and libxml/xslt were changed? TASK DETAIL https://phabricator.wikimedia.org/T94064 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, JanZerebecki Cc: Denny, Manybubbles, daniel, mkroetzsch, Smalyshev, JanZerebecki, Aklapper, jkroll, Wikidata-bugs, Jdouglas, aude, GWicke _______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
