w3c / json-ld-cbor

JSON-LD 1.1 in CBOR Note
https://w3c.github.io/json-ld-cbor/
Other
7 stars 6 forks source link

Consider EXI #3

Open vcharpenay opened 4 years ago

vcharpenay commented 4 years ago

It is possible to represent JSON in the Efficient XML Interchange (EXI) format as well. See the EXI4JSON note: https://www.w3.org/XML/EXI/docs/json/exi-for-json.html.

The schema-awareness of EXI may be leveraged as well.

pchampin commented 4 years ago

The schema-awareness of EXI may be leveraged as well.

Since JSON-LD has no fixed schema (beyond some constraints on contexts), I am not sure exactly what you are suggesting...

vcharpenay commented 4 years ago

A schema encoding the JSON-LD syntactic restrictions could be created and appended to the note. Examples of restrictions are available in the EXI4JSON spec.

Not all restrictions need to be encoded, though. A minima, JSON-LD keywords could be put in an enumerated type to then be encoded in a single byte, similarly to what you suggest in #5.

pchampin commented 4 years ago

I still have two concerns with this proposal: