jena icon indicating copy to clipboard operation
jena copied to clipboard

Write rdf as JsonLd 1.1 Compact format

Open Yalz opened this issue 3 years ago • 1 comments

Version

4.5.0

Suggestion

As of now, a Model can be written in many different RDFFormats. However I noticed there are no JSONLD 1.1 Compact options, such as there are for JSON LD 1.0

Is this something that could be added?

Yalz avatar Jun 15 '22 08:06 Yalz

Hi @Yalz -- what sort for formatting of JSON-LD output are you using with JSON-LD 1.0 / jsonld-java via Jena?

Yes, it can be added - the project welcomes contributions.

A couple of thoughts:

  • Titanium JSON-LD has the JSON-LD algorithms and it might be better to use Titanium directly if an API becomes little more than reflecting the Titanium capabilities.
  • Can we lean from the JSON-LD 1.0 experience where there are many formats - are they all equally valuable or are some commonly used and other rarely used?
  • And is there a common subset that can become the default JSONLD_PRETTY for any RDF or is the problem always going to involves data-specific configuration?

afs avatar Jun 16 '22 13:06 afs