-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
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
termFromId
and termToId
do not roundtrip on quoted literals
#312
Comments
I think the problem is in the test: Note that this differs from the exported Lines 339 to 342 in 520054a
|
These constructors are actually exported (c.f. Lines 38 to 39 in 520054a
|
Good idea, following up in #313 |
As demonstrated by this failing test doing a round-trip of
termFromId
andtermToId
causes Literal TermTypes to becomeNamedNode
term types because the internal id without literals gets used inN3.js/src/N3DataFactory.js
Line 236 in 520054a
termFromId
interprets it as a namedNode because it does not contain quotes.We need to either (a) add quotes to literals missing them when
Literal
s are created, or (b) removeN3.js/src/N3DataFactory.js
Line 236 in 520054a
Note that
NamedNodes
can also become literals if we create aNamedNode
of the formnew NamedNode('"s"')
The text was updated successfully, but these errors were encountered: