piprate / json-gold

A JSON-LD processor for Go
Apache License 2.0
259 stars 30 forks source link

Default JSON-LD options depend on processing mode #18

Open kazarena opened 5 years ago

kazarena commented 5 years ago

The newest 1.1 spec refers to at least one case when default options depend on the chosen processing mode. See https://github.com/ruby-rdf/json-ld/commit/226e05d5b8ffcb930334902ef8c3cd1d19d2bd28 for example.

Out current implementation sets omitGraph to false, regardless of the mode.

It's an easy change to implement, but it will most likely break the interface, which should ideally be avoided.