rdf4h icon indicating copy to clipboard operation
rdf4h copied to clipboard

JSON-LD support

Open biesnecker opened this issue 9 years ago • 5 comments

Is there any thought to adding support for JSON-LD? If no, any interest in pull requests that attempt to add rudimentary support?

biesnecker avatar Dec 19 '15 10:12 biesnecker

JSON-LD support would be great! Parsing or serialisation, or both? It's not something I could commit time to, but a pull request would be very welcome. The existing parsers use the W3C test suite as its unit tests, which covers the rdf4h parsers for lots of corner cases, so having support JSON-LD with corresponding Haskell tests for the W3c JSON-LD tests would be ideal. See:

https://github.com/json-ld/json-ld.org/tree/master/test-suite

robstewart57 avatar Dec 19 '15 18:12 robstewart57

Cool, I'll put some thought into it over the holidays. For my specific use case I need to parse, but serialization into JSON-LD looks remarkably straightforward. I'll see what I can do! :-)

biesnecker avatar Dec 19 '15 21:12 biesnecker

Using aeson, say? I'd been working on a serializer in Scala using a writer monad (I just adapted my existing JSON serializer and used the writer monad to "write" the parts I stripped away in converting to JSON into the context.) https://github.com/LeifW/Treeify/blob/master/src/main/scala/treeify/Treeify.scala

LeifW avatar Dec 19 '15 21:12 LeifW

Hi @biesnecker , how far did you get with this JSON-LD parser?

robstewart57 avatar Oct 27 '16 09:10 robstewart57

Not far, sadly. Ended up having to write the project in C++ so didn't work too much on the Haskell parser.

On Thursday, October 27, 2016, Rob Stewart [email protected] wrote:

Hi @biesnecker https://github.com/biesnecker , how far did you get with this JSON-LD parser?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/robstewart57/rdf4h/issues/34#issuecomment-256594424, or mute the thread https://github.com/notifications/unsubscribe-auth/AAR9dvmMp4etCDw9omjOwbKTlQo9h8yFks5q4HCTgaJpZM4G4nNH .

biesnecker avatar Oct 28 '16 11:10 biesnecker