-
Notifications
You must be signed in to change notification settings - Fork 577
Open
Labels
breaking changeThis involves or proposes breaking RDFLib's public API.This involves or proposes breaking RDFLib's public API.bugSomething isn't workingSomething isn't workingconcept: RDF Literalconcept: datatypeRelates to the RDF literal datatype concept.Relates to the RDF literal datatype concept.coreRelates to core functionality of RDFLib, i.e. `rdflib.{graph,store,term}`Relates to core functionality of RDFLib, i.e. `rdflib.{graph,store,term}`duplicateThis issue or pull request already existsThis issue or pull request already existsenhancementNew feature or requestNew feature or requestparsingRelated to a parsing.Related to a parsing.serializationRelated to serialization.Related to serialization.
Milestone
Description
Say we've this RDF statement in Turtle:
ex:obs3 ex:hasStatus "online" .
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.
Metadata
Metadata
Assignees
Labels
breaking changeThis involves or proposes breaking RDFLib's public API.This involves or proposes breaking RDFLib's public API.bugSomething isn't workingSomething isn't workingconcept: RDF Literalconcept: datatypeRelates to the RDF literal datatype concept.Relates to the RDF literal datatype concept.coreRelates to core functionality of RDFLib, i.e. `rdflib.{graph,store,term}`Relates to core functionality of RDFLib, i.e. `rdflib.{graph,store,term}`duplicateThis issue or pull request already existsThis issue or pull request already existsenhancementNew feature or requestNew feature or requestparsingRelated to a parsing.Related to a parsing.serializationRelated to serialization.Related to serialization.