>> On 09/09/2021 23:32, Shaw, Ryan wrote: >> >> riot gives me the warning “Lexical form '0000' not valid for datatype XSD >> gYear”. But according to XSD 1.1 Part 2, 0000 is a permitted value for >> gYear, representing 1 BCE.
> On Sep 10, 2021, at 6:25 AM, Andy Seaborne <a...@apache.org> wrote: > > Command line riot? I am using riot --validate as a final QA check on some RDF generated by other (non-Jena) code. > It is just a warning the triple and it's object literal is still output from > the parser. From the command line "--nocheck" turns off the checking. The output is fine, but since I’m using riot specifically for validation I don’t want to turn off checking. > Now logged as > https://issues.apache.org/jira/browse/JENA-2158 Thanks, I will watch this issue. > There is a constant to turn on XSD 1.1 schema mode for checking. It affects > year 0000, including the value of negative years, and some duration detection. Where is this constant? Does this mean I could write my own CLI tool to do validation with this flag set? (Or submit a PR for setting this constant via a riot command line option)? I wonder if this flag should be on by default, since RDF 1.1 Concepts and Abstract Syntax says [1]: > IRIs of the form http://www.w3.org/2001/XMLSchema#xxx, where xxx is the name > of a datatype, denote the built-in datatypes defined in XML Schema 1.1 Part > 2: Datatypes. Thanks, Ryan [1] https://www.w3.org/TR/rdf11-concepts/#xsd-datatypes