W3C home > Mailing lists > Public > public-credentials@w3.org > July 2020

Re: Introducing CBOR-LD...

From: Manu Sporny <msporny@digitalbazaar.com>
Date: Fri, 24 Jul 2020 17:31:17 -0400
To: "public-credentials@w3.org" <public-credentials@w3.org>
Message-ID: <f443cd1d-a1f5-4188-70f1-ff122e6d3a71@digitalbazaar.com>
On 7/24/20 12:55 PM, Orie Steele wrote:
> The repo compares, JSON, JSON-LD, CBOR, DAG_CBOR and ZLIB_URDNA2015_CBOR
> ( another approach at compressed linked data format in CBOR)... I am
> eager to add tests for CBOR-LD.

I'm eager to see the results as well, Orie... I'm wondering if you'd be
willing to expand your comparison table to the types on slide 6?


It might be useful to see how different types of data encodings that are
commonly used fare. For example, it's useful to understand that because
base64-encoded JWTs use 6-bit encoding that things that could have
normally been LZ compressed cannot be compressed because of the
bit-carrying nature of base64's 6-bit encoding.

I was hoping to put together a test suite that would compare all this
stuff but ran out of time... but it looks like you did it instead, which
is great! :)

> If you consider that changes to data on the wire would
> cause the software to explode... you can see why agreeing to a common
> context, is similar to agreeing to a data schema....
> And by relying on an existing context to build a compressed binary
> representation of a semantic object, we can leverage these "common
> dictionaries / vocabularies" not just for semantic disambiguation, but
> also for compression.... 

+1, exactly right!

> I'm not sure of the potential internal representation benefits for
> services like https://developers.google.com/knowledge-graph but
> obviously, a small IOT device that only speaks CBOR-LD would not need to
> crack out a JSON parser and all the attack surface associated with it,
> just to talk to the knowledge graph service.

Yep, exactly, last slide (slide 21) goes into a bit of that:


-- manu

Manu Sporny - https://www.linkedin.com/in/manusporny/
Founder/CEO - Digital Bazaar, Inc.
blog: Veres One Decentralized Identifier Blockchain Launches
Received on Friday, 24 July 2020 21:31:31 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:25:01 UTC