gYear literal not parsed correctly #2321
Labels
bug
Something isn't working
confirmation needed
The issue raises a potential bug that needs to be confirmed.
core
Relates to core functionality of RDFLib, i.e. `rdflib.{graph,store,term}`
Hi all,
I have used rdflib to parse my graph for a documentation CI script.
My graph contains xsd:gYear literals with years positive and negative (BC and AD) and the year 0.
If you look at this CI log (https://github.com/archaeolink/SPP1630Harbours-RDF/actions/runs/4533869034/jobs/7987262817), you will see that rdflib seems to expect an ISO Date from this literal type, however, this is incorrect, if you follow the official specification also indicated here: http://rdf.greggkellogg.net/yard/RDF/Literal/Year.html
Could this be a bug in the RDFLib implementation?
Thanks for your consideration.
The text was updated successfully, but these errors were encountered: