On Tuesday, October 20, 2015 5:48 PM, Paul Houle wrote: > I working on a JSON based API where I want to turn the JSON somebody > sees into an RDF graph, then I make a new RDF graph and send it back > as JSON. > > Internally the system uses the JSON-LD transformation, and it takes > just a @vocab statement to handle the import from a format that looks > like it was design natively for JSON. > > On the way back, however, it seems not so easy to get output that > JSON users would recognize. For instance you can channel N-triples > pretty easily, but you need some kindof plan to create JSON-LD which > looks like the kind of JSON they would put into Mongodb or Marklogic > and the tools I have seen so far do not have it. > > Is there something better out there? What you are looking for is JSON-LD Framing: http://json-ld.org/spec/latest/json-ld-framing/ Unfortunately the spec is not done yet (and is not currently being worked on). Nevertheless, most processors support it (but their behavior might differ slightly). HTH, Markus -- Markus Lanthaler @markuslanthalerReceived on Tuesday, 20 October 2015 20:35:05 UTC
This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:41:49 UTC