w3c / wot-thing-description

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

Fields for interface generation (e.g. UI, dashboards, IDE): description, icon - Issue 263 from w3c/wot #936

Open egekorkan opened 4 years ago

egekorkan commented 4 years ago

Coming from https://github.com/w3c/wot/issues/263

The mentioned JSON Schema page: https://github.com/json-schema-org/json-schema-vocabularies/issues/2

I think that links can be used for Thing level UI elements but we lack a way to do that in the interaction level.

sebastiankb commented 4 years ago

A very good discussion, which we should definitely reactivate. I think, over the time we included vocabularies like title and description from JSON Schema that can be used for UI based generation.

Open question seems to be how icons / widgets can be generated such as for properties. Maybe this is also topic related to semantic annotations.

sebastiankb commented 4 years ago

based on today's TD call there was the hint to check schema.org if there already some semantic terms defined for UI generation. Like here https://schema.org/logo

RoboPhred commented 4 years ago

I have a particularly complex bit of interaction I plan on eventually implementing. My home automation library subscribes entirely to "everything is a Thing", and all management actions are performed by Things and Actions. For example, there is a "Scene Manager" Thing with an "Add Scene" action. On activating this action, a new Thing representing the newly created scene is made available. I need a way of communicating to the UI that it should redirect to the new Scene Thing when the action is completed.

I was intending to research creating my own vocabulary to handle this, but I would be interested in additional takes for cross-Thing interactions like this.