Literal.datatype doesn't get initialized for Turtle string #670
Labels
breaking change
This involves or proposes breaking RDFLib's public API.
bug
Something isn't working
concept: datatype
Relates to the RDF literal datatype concept.
concept: RDF Literal
core
Relates to core functionality of RDFLib, i.e. `rdflib.{graph,store,term}`
duplicate
This issue or pull request already exists
enhancement
New feature or request
parsing
Related to a parsing.
serialization
Related to serialization.
Milestone
Say we've this RDF statement in Turtle:
At rdflib 4.2.1 rdflib.term.Literal does not init 'datatype' attr for string type if not explicitly written as "value"^^xsd:string. As per W3C specification of Turtle, writing just "value" implicitly means it's xsd:string.
This assignment is needed for the program logic to be consistent when expecting to check for literal type using such attribute.
The attribute get updated for other types like decimal, integer without explicitly written in Turtle.
The text was updated successfully, but these errors were encountered: