We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The turtle serializer is not returning the proper value for typed literals.
Example to replicate problem:
var graph, serialized, turtle = ' \ @prefix foaf: <http://xmlns.com/foaf/0.1/> . \ @prefix test: <http://david/> . \ \ test:me a foaf:Person; \ foaf:age 9001 . \ '; rdf.parseTurtle(turtle, function(g){ graph = g; }); serialized = rdf.turtle(graph);
The resulting output:
@prefix foaf: <http://xmlns.com/foaf/0.1/> . @prefix test: <http://david/> . test:me a foaf:Person; foaf:age undefined .
And here is the output of rdf.nt(graph):
rdf.nt(graph)
<http://david/me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> . <http://david/me> <http://xmlns.com/foaf/0.1/age> "9001"^^<http://www.w3.org/2001/XMLSchema#integer> .
On parsing, the Literal is typed properly, but the turtle serializer does not return the expected result.
The text was updated successfully, but these errors were encountered:
This also occurs with boolean values.
Sorry, something went wrong.
No branches or pull requests
The turtle serializer is not returning the proper value for typed literals.
Example to replicate problem:
The resulting output:
And here is the output of
rdf.nt(graph)
:On parsing, the Literal is typed properly, but the turtle serializer does not return the expected result.
The text was updated successfully, but these errors were encountered: