-
Notifications
You must be signed in to change notification settings - Fork 8
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
Vocabulary not in TD context #17
Comments
Discussion on call on 23.7.: Section 4.1.2.2 list a number of vocabulary (e.g., softwareRevision, loc_latitude,...) that are not mention in the TD specification yet. Regarding the terminology definition itself, we can start with listing undefined terms with "to be defined" :) |
Discussion on 2nd call: We should not fragment - a profile TD is still a TD. |
My proposal would be to focus on the vocabularies that currently exist in the TD model and use them in the FPWD. We should bring the list of desired vocabularies (https://w3c.github.io/wot-profile/#recommended-practice-) to the TD TF which should evaluate and take care that the right context is defined for that terms. Maybe in one of the next iteration we can introduce this new terms in the Profile document. @mlagally If ok, I can setup PR for this. |
There is a note about this in 5.1.2.2 Recommended practice. I propose that this note removed (it should have been an editor's note) and that these additional members not be added to the Thing Description. |
Action from architecture call: remove note |
See #149 (comment) |
Arch call on May 4th: |
I think we have to circle back on this. Geolocation is very important for many use cases, and interoperability via a profile adds real value. Two years ago we proposed keywords for geolocation, hardware serial number and similar very reasonable metadata fields. Unfortunately this did not happen, so I suggest we proceed with the original path and define them in the profile via a context extension. |
They are already defined in places like schema.org and other ontologies so we do no have to define them ourselves. You can however mandate the usage of these annotations |
@egekorkan I agree, in past discussions we considered adding normative references to these ontologies. |
In general I think it's better to avoid adding terms to the TD Information Model in a profile which aren't in the Thing Description specification, because a Consumer which doesn't implement the profile won't recognise those terms. If there really is something missing from the TD Information Model which isn't defined anywhere else then it should be added to the Thing Description specification. I agree it would be reasonable (and would aid interoperability) for a profile to recommend or require that conformant Things use certain ontologies for certain common terms using semantic annotations, a good example being geolocation for which schema.org defines a Note that schema.org also defines a How about we add a "Semantic Annotations" section to the HTTP Baseline Profile which recommends ontologies for certain common terms like geolocation (#137) and units (#29)? I can draft something, but it will require us agreeing on which ontologies to recommend. We may also need to agree on where those annotations can be used within the Thing Description, e.g. as an interaction affordance: {
"@context": [
"https://www.w3.org/2022/wot/td/v1.1",
{
"schema": "http://schema.org#"
}
],
"properties": {
"position": {
"type": "object",
"@type": "schema:GeoCoordinates",
"properties": {
"longitude": { "type": "number" },
"latitude": { "type": "number" },
"elevation": { "type": "number" }
}
},
},
} vs. a top level member: {
"@context": [
"https://www.w3.org/2022/wot/td/v1.1",
{
"schema": "http://schema.org#"
}
],
"schema:longitude": "297.83",
"schema:latitude": "26.58",
"schema:elevation": "5.3"
} |
@benfrancis
We should definitely do that, however it should be a common section that applies for all profiles in the Profile 1.0 spec. |
Actually if the location is likely to change you probably want it to be a property you can observe (as in the first example), rather than statically defined at the top level of the Thing Description (as in the second example). I would be fine with allowing both. (I'm not actually sure whether it's valid to use a schema.org property outside of a schema.org typed object, but the Thing Description 1.1 specification already has examples which do that. I've asked for clarification.) What was the proposal for units? See also: #29 (comment). |
Remove Note about vocabulary extensions - closes #17
Section 4.1.2.2 list a number of vocabulary (e.g., softwareRevision, loc_latitude,...) that are not mention in the TD specification yet.
Is there an intention to define a new context file that defines these terms or do you refer to existing ontologies that use these terms?
The text was updated successfully, but these errors were encountered: