-
Notifications
You must be signed in to change notification settings - Fork 146
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
Refactor the json-ld parser to not use a whole N3 library #349
Comments
Should include the serializer too. |
Maybe parser could just implement RDF/JS Sink. Big part of RDF/JS goals relates to ease of using various implementations of parsers with various implementations of stores. Actually I see existing JSON-LD parser implementing RDF/JS Sink listed on http://rdf.js.org/ |
It appears the serialisation works by converting to ntriples (https://github.com/linkeddata/rdflib.js/blob/master/src/serialize.ts#L72), then to quads, and finally using |
Currently the way JSON-LD parser has been ported into rdflib is a horrible kludge. It parses it, puts it into a store in a separate N3.js library which is imports, then re-serializes it into something which rdflib.js could parse anyway, and then parse that into the rdflib store.
This involves a huge amount of code and a huge amount of time.
Solution is to change the code of the jsonld parser to write directly to the rdflib store.
(This may be a dup of an earlier issue but I could not find that)
The text was updated successfully, but these errors were encountered: