-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
arch-td-consumers-process
: Consumers MUST be able to parse and process the TD representation format, which is based on JSON [[!RFC8259]].
#632
Comments
Other (binary) formats may exist, so I think the part after the comma should be removed. |
From #625 (comment)... @egekorkan wrote:
Actually that's not correct. The default serialisation of a Thing Description is JSON. It can be parsed as JSON-LD but that is optional. This is mentioned in several places in the Thing Description specification, e.g. "Thing Descriptions, by default, are encoded in a JSON format that also allows JSON-LD processing." "The default representation format for Thing Descriptions is JSON-based as defined by this specification." I assume the term "TD representation format" in this assertion is referring to the TD Representation Format section, which defines a JSON-based representation.
That is correct, JSON is only the default. "A TD Serialization follows a given representation format, identified by a media type when exchanged over the network. The default representation format for Thing Descriptions is JSON-based as defined by this specification."
I agree this isn't well defined, and it probably should be. I've proposed this as a deliverable for the next charter period. However, the term "TD Processor" is defined (https://w3c.github.io/wot-thing-description/#dfn-td-processor).
My take on this is that "another representation of a Thing" and "another serialisation of a Thing Description" are not the same thing. There could be an XML serialisation of a Thing Description, but there could also be an HTML page which provides a user interface for Thing, which isn't a Thing Description and both could even share the same URL (using content negotiation). I would assume that Consumers are only expected to parse a Thing Description (and only required to support the default JSON serialisation of a Thing Description), but a Thing Description could link to an HTML representation using an alternate link relation in the Conclusion: ✔️ This assertion could be worded better but overall I agree with it. Suggested action: Remove the assertion from WoT Architecture since it is already covered in WoT Thing Description |
I agree with @benfrancis this assertion is already covered by the TD spec in Chapter 6 , mainly with the assertion:
|
arch call on 25.11.: remove |
No description provided.
The text was updated successfully, but these errors were encountered: