Closed vongohren closed 2 years ago
Currently, CBOR-LD only supports JSON-LD with simple terms (non-CURIEs). This is because simple terms appear in the compression dictionary (the @context
), allowing for maximum compression. We're looking into adding support for JSON-LD generally -- where any non-simple term JSON keys will be permitted and transformed, they will just not be highly compressed. This feature hasn't been implemented yet, though.
So, to use CBOR-LD before the above feature is implemented, every (non-keyword) JSON key needs its own term definition in the context.
I should mention -- even once the above mentioned feature is added, if your use case is to have CBOR-LD travel in a QR code, you will want to use all simple terms anyway. Otherwise, it is very unlikely that your data will be sufficiently compressed to be scannable by common QR code scanners.
@dlongley thanks for all these clarifying messages! Yeah I understand that we might have to redo our CBOR-LB credential for paper verification. But that should not be a big problem really. Just make sure that reissuances is allowed
I close this now as most of my questions are resolved
The following LD document(VC) has trouble running through a CBOR encode mechanism
It complains on the
schema:hasCredential
term. Even if I can run this through a issuance and verification loop using the same documentLoader.You can run the code under the CBor creat function to test: https://github.com/vongohren/cbor-ld-test