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 following valid N-Quad does not contain a graph:
_:b0 <https://example.com/hasExampleProperty> "some literal value" .
This is correctly parsed into a $rdf.Store.
$rdf.Store
When iterating over the statement, the graph term looks something like:
{ "termType": "DefaultGraph", "value": "", "uri": "chrome:theSession" }
However, the atomicTermToN3 function in serializer.js does not deal with nodes of type DefaultGraph:
atomicTermToN3
serializer.js
DefaultGraph
rdflib.js/src/serializer.js
Lines 522 to 567 in c14dfd5
And fails with the error:
Error: Internal: atomicTermToN3 cannot handle DefaultGraph of termType: DefaultGraph
This should be fixed in atomicTermToN3 function in serializer.js by returning an empty string when the term type is DefaultGraph.
NB this is consistent also with how TriG represents default graphs.
The text was updated successfully, but these errors were encountered:
Added check for DefaultGraph in atomicTermToN3 function (returns an…
6e73e03
… empty string). linkeddata#561
RinkeHoekstra
Successfully merging a pull request may close this issue.
The following valid N-Quad does not contain a graph:
This is correctly parsed into a
$rdf.Store
.When iterating over the statement, the graph term looks something like:
However, the
atomicTermToN3
function inserializer.js
does not deal with nodes of typeDefaultGraph
:rdflib.js/src/serializer.js
Lines 522 to 567 in c14dfd5
And fails with the error:
This should be fixed in
atomicTermToN3
function inserializer.js
by returning an empty string when the term type isDefaultGraph
.NB this is consistent also with how TriG represents default graphs.
The text was updated successfully, but these errors were encountered: