RDFLib / rdflib-jsonld

JSON-LD parser and serializer plugins for RDFLib
Other
280 stars 71 forks source link

Preserve Representations of Literals #73

Closed eshil-patel closed 3 years ago

eshil-patel commented 4 years ago
"2019-11-07T20:26:42.543Z"

When attempting to convert JSON-LD (that contains the above snippet) to N-Triples, we receive the following output:

"2019-11-07T20:26:42.543000+00:00"

This is an issue for us, as the xsd:dateTime schema doesn't consider the Zulu time zone (Z) to be equivalent to the explicit UTC time zone (+00:00).

The changes introduced in this PR ameliorate this issue, and possibly address the following comment in test-testsuite.py:

# TODO: Literal doesn't preserve representations