Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gYear literal not parsed correctly #2321

Open
situx opened this issue Mar 27, 2023 · 2 comments
Open

gYear literal not parsed correctly #2321

situx opened this issue Mar 27, 2023 · 2 comments
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}`

Comments

@situx
Copy link
Contributor

situx commented Mar 27, 2023

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.

@aucampia
Copy link
Member

aucampia commented Apr 9, 2023

Could this be a bug in the RDFLib implementation?

It very likely could be, a more isolated example would help in determining if it is.

@aucampia aucampia added the bug Something isn't working label Apr 9, 2023
@aucampia
Copy link
Member

aucampia commented Apr 9, 2023

You may want to look at this also: #2210.

@aucampia aucampia added core Relates to core functionality of RDFLib, i.e. `rdflib.{graph,store,term}` confirmation needed The issue raises a potential bug that needs to be confirmed. labels Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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}`
Projects
None yet
Development

No branches or pull requests

2 participants