afs commented on issue #2031: URL: https://github.com/apache/jena/issues/2031#issuecomment-1752556537
The JSON-LD provider for 4.4.0 is Github project [jsonld-java](https://github.com/jsonld-java/jsonld-java) which supports JSON-LD 1.0. In 4.9.0, the default JSON is [titanium-json-ld}(https://github.com/filip26/titanium-json-ld) which provides JSON-LD 1.1. `RDFFormat.JSONLD_COMPACT_PRETTY` is deprecated because it is backed by jsonld-java. In Jena5, the JSON-LD 1.0 support is bring removed. Does Titanium have the features you are looking for? A contribution for passing the `@context` to the write (using the RIOT Java Context) would be appreciated. The writer is `JsonLD11Writer`. The writer setup for JSON-LD 1.0 was a contribution. > A bunch of logic in in my application depends on the properties of JSON-LD being compacted so I would appreciate any help with this :D The primary goal of writing RDF in JSON-LD has been to get legal and correct JSON-LD written. Appearance has been secondary because creating idiomatic JSON often is usage dependent - i.e JSON-LD framing. It might be better getting basic JSON-LD out then running it through a toolchain that does framing to give more control in an easier to use fashion. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
