robstewart57 / rdf4h

rdf4h is a library for working with RDF in Haskell
BSD 3-Clause "New" or "Revised" License
76 stars 28 forks source link

JSON-LD support #34

Open biesnecker opened 8 years ago

biesnecker commented 8 years ago

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

robstewart57 commented 8 years ago

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

biesnecker commented 8 years ago

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! :-)

LeifW commented 8 years ago

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

robstewart57 commented 7 years ago

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

biesnecker commented 7 years ago

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 notifications@github.com 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 .