-
Notifications
You must be signed in to change notification settings - Fork 28
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
Define Plugfest Scenarios for OneDM #47
Comments
Aug 19 notes:
|
Example annotated TD: @type statements in the TD point to nodes in this SDF file: For plugfests, we can use @type statements in TDs to point to definitions in the OneDM repositories One quality of the SDF URI based on JSON pointer, is that the semantic category names (classes in the meta model) are explicit in the path segments: http://onedm.org/wot-plugfest/sdfObject/Switch/sdfProperty/State Note: in the example TD, the sdfObject name "Switch" is used for @type of the TD itself. This enables discovery by selecting on Thing type and in practice would enable discovery to return whole TDs that contain the affordances (Properties, Actions, Events) of the desired "Object" (in this case, Switch). These TDs returned may also contain other affordances for other Object types, which the client may freely ignore. This is how we are using Object/Capability tags now in TDs, by including all og the Object types in a list along with device type, as the value of @type at the TD level. To further clarify, data schemas are not the main focus of OneDM, because we wanted to prioritize everyone submitting protocol-independent models, and consider data schemas part of protocol binding. We wanted to stick to defining only the constraints on simple types. At the same time, there is a clear need to define interoperable complex data types in OneDM. The geolocation data type could be defined as a standalone complex data type in OneDM with semantic annotation on the data fields, also with default data schema for some media types. I would like to take this as an example to create a strawman design pattern for OneDM complex data types. We have a few other cases like RGB color and multi-axis sensors to think about. We already have a proposal for enums, and this could be a complementary pattern for complex data. Current thinking is that named sets/groups/tuples of properties are required, with optionality specified, and this pattern can be nested, e.g. a named set consisting of named sets. This seems to cover the use cases for complex data. Then we can provide a default schema that can be used to construct the DataSchema element in the target TD. If there is a favorite geolocation data reference, I will use it to create a strawman example. |
We should aim to get as many TDs in the system one week before the plugfest (eg by Sept 21) so we have a week to do manual annotation so we can play with semantic queries use cases. |
test case PR: #68 |
BTW the above example directory really only has "switch" and "motion sensor", and the switch includes assumptions about remote control of state. So to do this right we need to set up our own SDF definitions (as Michael suggests above...). |
The text was updated successfully, but these errors were encountered: