rubensworks / jsonld-streaming-parser.js

A fast and lightweight streaming JSON-LD parser for JavaScript
https://www.rubensworks.net/blog/2019/03/13/streaming-rdf-parsers/
MIT License
79 stars 12 forks source link

Text/plain support for remote context #123

Open EmidioStani opened 7 months ago

EmidioStani commented 7 months ago

Hello,

I was using Zazuko RDF Converter to convert from JSON-LD, I opened an issue there: https://github.com/zazuko/rdf-converter/issues/34

that is about the support of text/plain of remote context.

Would it be possible to add it in the json-ld streaming parser ?

Thanks

rubensworks commented 7 months ago

Sure, we could add an optional lenient mode that assumes the proper content type headers. PRs for this on https://github.com/rubensworks/jsonld-context-parser.js are welcome! :-)