-
Notifications
You must be signed in to change notification settings - Fork 126
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
Writer does not support Notation3 #316
Comments
I'm struggling to find a grammar that I can get my head around to work out how this needs to be written. I.e. do we need re-write it as I've also not been able to find any other JavaScript TypeScript N3 writers for this purpose. |
@josd Would you be able to point me to the package / code responsible for serializing N3 in Eye as a reference point? |
The code doing the reasoning output in eye starts at https://github.com/eyereasoner/eye/blob/6405dcb4b1dacb806af9e18f909cc06db31b3059/eye.pl#L3431 and ends at https://github.com/eyereasoner/eye/blob/6405dcb4b1dacb806af9e18f909cc06db31b3059/eye.pl#L4649 |
Just want to note that N3.js at the moment does not support Notation3 writing (because it cannot be done in a streaming way). |
Just as a note - the code I am currently using to do N3 writing is https://github.com/eyereasoner/eye-js/blob/main/lib/n3Writer.temp.ts |
If we parse the statement
{?s a ?o} => {?s a ?o}.
into RDF/JS quads and then write those quads back totext/n3
using the Stream Writer we getWhen trying to parse this result again we get the error
Error: Expected entity but got { on line 1.
Can be reproduced by running this script
The text was updated successfully, but these errors were encountered: