- From: Korkan, Ege <ege.korkan@siemens.com>
- Date: Tue, 25 Jul 2023 16:53:47 +0000
- To: Manu Sporny <msporny@digitalbazaar.com>
- CC: "public-linked-json@w3.org" <public-linked-json@w3.org>, "team-wot@w3.org" <team-wot@w3.org>, "public-json-ld-wg@w3.org" <public-json-ld-wg@w3.org>
- Message-ID: <DB7PR10MB201173B3D60C34299E58215A8403A@DB7PR10MB2011.EURPRD10.PROD.OUTLOOK.COM>
Hi Manu, Thank you for the detailed answers! I really appreciate all the pointers. I will wait for others to comment but we can summarize all the points into a slideset or md file to drive the discussion. I will answer to the technical points later on and focus on the meeting slot to agree on something before the holiday season starts. If the JSON-LD CG will not meet, I would propose this slot. The WoT WG/IG has a call tomorrow where such topics are discussed, and I can mention this as a possible meeting slot. We can wait for VCWG input for a joint session before finalizing the slot. Best, Ege From: Manu Sporny <msporny@digitalbazaar.com> Date: Tuesday, 25. July 2023 at 15:54 To: Korkan, Ege (T CED EWT-DE) <ege.korkan@siemens.com> Cc: json-ld-wg@w3.org <json-ld-wg@w3.org>, public-linked-json@w3.org <public-linked-json@w3.org>, team-wot@w3.org <team-wot@w3.org> Subject: Re: WoT and JSON-LD Joint Session at TPAC On Tue, Jul 25, 2023 at 6:07 AM Korkan, Ege <ege.korkan@siemens.com> wrote: > I am part of the Web of Things Working Group and I am contacting you for a session to talk about JSON-LD relevant topics in the W3C TPAC. Hi Ege, thank you for the kind invitation to collaborate on these important topics. I'll be at W3C TPAC and would like to participate in these discussions. Monday would be easier than Thu/Fri, but perhaps we could do a joint session w/ the VCWG (that is tackling many of the topics that you outline in your proposed topics for discussion). I am providing a preliminary response to the topic questions below in order to get as much of us up to speed as possible before meeting at W3C TPAC: > Canonicalization and Signing > How can we use the JSON-LD canonicalization and signing mechanisms to guarantee authenticity of Thing Descriptions (in a TD Directory). I expect that you might be able to use work being performed by the W3C RCH WG and W3C Verifiable Credentials WG here. While the work is focused on VCs, these are generalized canonicalization and signing mechanisms that could be used to guarantee authenticity of TDs in a TD Directory (each of these specifications is expected to go into Candidate Recommendation during, or shortly after, W3C TPAC): https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.w3.org%2FTR%2Fvc-data-integrity%2F&data=05%7C01%7Cege.korkan%40siemens.com%7C08846617e1c74026e6ec08db8d16a663%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C638258900657626382%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=MY9ilvesY8d3Kzfn8dooj3sP78SqvObyKLCVT8TA0Sc%3D&reserved=0<https://www.w3.org/TR/vc-data-integrity/> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.w3.org%2FTR%2Fvc-di-eddsa%2F&data=05%7C01%7Cege.korkan%40siemens.com%7C08846617e1c74026e6ec08db8d16a663%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C638258900657626382%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=qjNAwigtmUB60IAofOSdQUx1%2Fnc9mnYQaA%2FCmV9V7Xk%3D&reserved=0<https://www.w3.org/TR/vc-di-eddsa/> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.w3.org%2FTR%2Fvc-di-ecdsa%2F&data=05%7C01%7Cege.korkan%40siemens.com%7C08846617e1c74026e6ec08db8d16a663%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C638258900657626382%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Ty59Qp0Eu1dHX5OOHc%2FCBr67ybGr5BZT9QORsk4A1Ok%3D&reserved=0<https://www.w3.org/TR/vc-di-ecdsa/> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.w3.org%2FTR%2Frdf-canon%2F&data=05%7C01%7Cege.korkan%40siemens.com%7C08846617e1c74026e6ec08db8d16a663%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C638258900657626382%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=oO01bdUEmo%2B1R4BCS5cSRJ9d1p%2FLsnZJ0QbzMl1YWIo%3D&reserved=0<https://www.w3.org/TR/rdf-canon/> Note that there are canonicalization mechanisms for both RDF-based datasets and pure JSON-based datasets. This is an important consideration for your JSON / JSON-LD parser topic below. > Restricting prefixes for JSON (no JSON-LD) parsers > There are more and more (protocol) vocabularies that we want to include in the TD spec (as a registry). However, we have TD Consumers/Parsers who are not JSON-LD processors. Ideally, we want to restrict what prefixes should be used in the TD for a given vocabulary. Are there any mechanisms for that, any potential pitfalls? Yes, there are. We are using one such mechanism in the Verifiable Credentials work (which locks JSON-LD Contexts to specific values, which enables deterministic JSON-only processing): https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fw3c.github.io%2Fvc-data-model%2F%23base-context&data=05%7C01%7Cege.korkan%40siemens.com%7C08846617e1c74026e6ec08db8d16a663%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C638258900657626382%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=2AgFSz7LBl49vwCkwGfjsh1bofYrQ%2BxDk555ttFleQs%3D&reserved=0<https://w3c.github.io/vc-data-model/#base-context> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fw3c.github.io%2Fvc-data-model%2F%23vocabularies&data=05%7C01%7Cege.korkan%40siemens.com%7C08846617e1c74026e6ec08db8d16a663%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C638258900657626382%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=tu6%2FWv4IkVPNfdRhPFuEmx4InGTo1zqIzpOGjVy55Vg%3D&reserved=0<https://w3c.github.io/vc-data-model/#vocabularies> > (related to the point above) Supporting JSON-LD without full JSON-LD processing We are currently attempting to finalize what JSON-only processing looks like here: https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fw3c%2Fvc-data-model%2Fpull%2F1202&data=05%7C01%7Cege.korkan%40siemens.com%7C08846617e1c74026e6ec08db8d16a663%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C638258900657626382%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=9zAYxZvNO4J%2FfB507AjwLa%2FMCObJrc0I8F8RxmXSVgA%3D&reserved=0<https://github.com/w3c/vc-data-model/pull/1202> WoT specifications could adopt similar language. We have multiple implementations using this technique in the VC work. > YAML-LD > TDs are not limited to JSON serialization, which makes the recent work on the YAML-LD > interesting for us. It would allow using features of YAML such as comments, while targeting > more users who prefer YAML over JSON. While I'm not involved in the YAML-LD work, everything above does apply to it (if you do JSON-LD Processing). I will also note that there is work on CBOR-LD as well, which has been deployed to production and seems to be working well. Standardization of that, however, is quite a ways off since we want to gather plenty of real-world deployment experience before putting it on the standards track at W3C: https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.google.com%2Fpresentation%2Fd%2F1ksh-gUdjJJwDpdleasvs9aRXEmeRvqhkVWqeitx5ZAE%2Fedit&data=05%7C01%7Cege.korkan%40siemens.com%7C08846617e1c74026e6ec08db8d16a663%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C638258900657626382%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=EN8omCDUsOKnBUS7ceh9GpQos%2BkJ3Vk4xdTjaKlWBC4%3D&reserved=0<https://docs.google.com/presentation/d/1ksh-gUdjJJwDpdleasvs9aRXEmeRvqhkVWqeitx5ZAE/edit> All this to say, if you use RDF Dataset Canonicalization, you can sign once and losslessly transform the information model and signatures to/from JSON-LD/YAML-LD/CBOR-LD. > Linting > API Description Linting is a recent topic of relevance (see https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstoplight.io%2Fopen-source%2Fspectral&data=05%7C01%7Cege.korkan%40siemens.com%7C08846617e1c74026e6ec08db8d16a663%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C638258900657626382%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=lnVyJtHfEBkgPkLVxo%2BHaiImHNoXMyVAdaSMdj1DDrU%3D&reserved=0)<https://stoplight.io/open-source/spectral> and since TDs are API descriptions of IoT devices, this topics will become important for us. Are there any mechanisms for JSON-LD or JSON-LD linting that would be of relevance to this topic? > (Related to the breakout session below) How to work with a single source of truth for generating our spec? Currently, we use SHACL Shapes + handwritten template HTML and then we try to manually maintain a JSON Schema, JSON-LD context There has been some work done in this area... but given that those schema languages don't 100% overlap with one another, certain manual processes need to be used today. The VC community uses yaml2vocab (to auto-generate vocabularies), manually created JSON-LD Contexts (to ensure proper semantic mapping of JSON terms to RDF), and manually created JSON Schema files (to ensure proper syntax for JSON documents). > The WoT WG has already prepared a list of topics that are of importance to the WoT, which also need discussion together with the JSON-LD group(s). These topics are listed at https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.w3.org%2FWoT%2FIG%2Fwiki%2FMain_WoT_WebConf%2F2023_WoT_TPAC_Agenda%23JSON-LD&data=05%7C01%7Cege.korkan%40siemens.com%7C08846617e1c74026e6ec08db8d16a663%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C638258900657626382%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=s6b7sk9qVWbVWniMm5UjBpdoKMomggYUCAiI%2B4xpcIc%3D&reserved=0<https://www.w3.org/WoT/IG/wiki/Main_WoT_WebConf/2023_WoT_TPAC_Agenda#JSON-LD> and we hope that you find them interesting and relevant for the JSON-LD group(s) as well. Yes, these are of great interest to the JSON-LD/YAML-LD/CBOR-LD community, as well as the W3C Verifiable Credentials Working Group, and the W3C Credentials Community Group. We are all deeply involved in addressing the topics that you listed in the WoT community and are eager to share our experience and help in whatever way we can. > JSON-LD CG slot on Monday 14:30 I believe we were not going to hold the JSON-LD CG slot, so could use it for a joint WoT/VC/JSON-LD/YAML-LD/CBOR-LD meeting? > WoT WG/IG slot on Thursday 14:30 > WoT WG/IG slot on Friday 14:30 These times overlap w/ VCWG, which many of us will be involved in. > If you would like to participate in such a session, let me know by replying to this email, and feel free to forward this email to others who might be interested. I'll try to see if VCWG is interested in participating as well. There will probably be enough of us at W3C TPAC to ensure a good exchange of information. I hope the above is helpful and will help everyone prepare for the meetings at W3C TPAC. -- manu -- Manu Sporny - https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fmanusporny%2F&data=05%7C01%7Cege.korkan%40siemens.com%7C08846617e1c74026e6ec08db8d16a663%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C638258900657626382%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=J%2BoxrxI%2BWItgpZ3cveaOMEERNc8qkU3IyMAejZYuOkU%3D&reserved=0<https://www.linkedin.com/in/manusporny/> Founder/CEO - Digital Bazaar, Inc. https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.digitalbazaar.com%2F&data=05%7C01%7Cege.korkan%40siemens.com%7C08846617e1c74026e6ec08db8d16a663%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C638258900657626382%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=sNS29g2ZIUlx3Wb6vwV8qMwCJGN3cfNnB9SE29%2BVD9A%3D&reserved=0<https://www.digitalbazaar.com/>
Received on Tuesday, 25 July 2023 16:54:04 UTC