vandenoever / rome

An RDF library in pure Rust
GNU Affero General Public License v3.0
69 stars 3 forks source link

Add JSONLD support? #5

Open peacememories opened 5 years ago

peacememories commented 5 years ago

Hi, and thanks for creating this library :)

I'm currently trying to create a JSONLD based REST API for a service, and would love to have JSONLD support in rome for this. I'm obviously willing to do some work to make this happen. Is this something better done as a separate crate or do you think JSONLD support should be integrated in rome?

vandenoever commented 5 years ago

There are libraries for parsing JSON. JSON-LD is another matter. Translating JSONLD into triples is not trivial. Having support for JSONLD in Rome would be wonderful. To make reuse in other contexts easier, I suggest you put code for going from JSONLD to triples (and back) in separate crate.

However doing it inside of Rome is fine with me too if you think that's better. I will certainly look seriously at pull requests that add this.