w3c / wot-thing-description

Web of Things (WoT) Thing Description
http://w3c.github.io/wot-thing-description/
Other
131 stars 63 forks source link

Roundtripping TDs and consequences of TD Canonicalization #1183

Open danielpeintner opened 3 years ago

danielpeintner commented 3 years ago

https://github.com/w3c/wot-thing-description/issues/1015 has been closed recently meaning that one can now successfully translate TDs from JSON-LD 1.1 to RDF and back. Great!

As mentioned in my comment https://github.com/w3c/wot-thing-description/issues/1015#issuecomment-737722721 I wonder whether this round-tripping preserves TD prefixes. The question why I ask is that otherwise it would affect TD Canonicalization that currently assumes that TD prefixes have to be retained.

Another option to solve this problem (if present?) is to change the TD canonicalization in a way that TD prefixes are always rewritten in a consistent manner (e.g., 1. namespace contexts are sorted and 2. based on this order a prefix is given like ns1, ns2, ..)

@vcharpenay @mmccool

AndreaCimminoArriaga commented 3 years ago

@vcharpenay mentioned he will work on the framing entailing that round tripping is not yet ready; Is this correct? Regarding the Canonicalization and the round tripping, there is also the issue of the arrays been compacted that should be addressed (I can not find the issue).

relu91 commented 3 years ago

Regarding the Canonicalization and the round tripping, there is also the issue of the arrays been compacted that should be addressed (I can not find the issue).

We discussed about this here.

egekorkan commented 2 years ago

I think this issue can be closed right?

AndreaCimminoArriaga commented 2 years ago

I think there are pending issues with the round-tripping, like array ordering. Also, some JSON elements can be either a string or an array in origin and with the round trip that information is lost.