-
-
Notifications
You must be signed in to change notification settings - Fork 707
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
Semantic Tags: developer information/rules #2466
Conversation
Signed-off-by: Andrew Fiddian-Green <[email protected]>
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/openhab-5-semantic-model-proposal/162526/84 |
Signed-off-by: Andrew Fiddian-Green <[email protected]>
✅ Thanks for your pull request to the openHAB documentation! The result can be previewed at the URL below (this comment and the preview will be updated if you add more commits).Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Thanks for your pull request to the openHAB documentation! The result can be previewed at the URL below (this comment and the preview will be updated if you add more commits).Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
Signed-off-by: Andrew Fiddian-Green <[email protected]>
I wonder if these rules should also be included in the documentation: |
^ EDIT: but obviously such complex rules cannot be checked via the XSD schema validation in my other PR. .. |
@lolodomo can you please explain the above rule in more detail? |
Signed-off-by: Andrew Fiddian-Green <[email protected]>
I added the rules from openhab/openhab-addons#12262 .. however I am not sure if I fully understand them all (in particular the last one) => @lolodomo can you please check them? |
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/openhab-5-semantic-model-proposal/162526/96 |
Signed-off-by: Andrew Fiddian-Green <[email protected]>
Signed-off-by: Andrew Fiddian-Green <[email protected]>
Signed-off-by: Andrew Fiddian-Green <[email protected]>
Reviewers please IGNORE the lint error concerning numbered lists. Because in this case the numbering MUST flow on from one section to the next -- rather than re-starting from 1. in each section. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good, I think there's some formatting and word choice things to address and it's good to go.
We may need to get buy in from core maintainers since they will be responsible for applying the rules in practice. Do the add-on maintainers need to buy in too?
@rkoshak many thanks for the feedback. I will upload a revised version soon. However for the time being let me address your question about where semantic tags can be applied: Currently tags can be applied to the following objects with a chain of inheritance as follows:
And yes, I am indeed working on a PR to extend the application of tags with a chain of inheritance as follows:
|
Signed-off-by: Andrew Fiddian-Green <[email protected]>
@rkoshak I just pushed a new commit; hopefully it addresses your feedback; but please feel free to comment further.. |
Signed-off-by: Andrew Fiddian-Green <[email protected]>
Signed-off-by: Andrew Fiddian-Green <[email protected]>
I'm happy with all the changes.
I can't speak for @lolodomo but my understanding is this rule is to avoid the case where everyone just defaults to "Status". There Point tag should be the one closes to what the Item does. A temperature sensor should be a Measurement. However, a high temperature alert might be an Alarm. In both cases these represent a Status so Status is not incorrect. But there are better choices. I think the rule is to use the more appropriate tags rather than defaulting to a generic tag. |
Signed-off-by: Andrew Fiddian-Green <[email protected]>
I just pushed another commit with some more improvements. |
@rkoshak whilst thinking about examples of possible POINT + PROPERTY combos, it occurred to me that POINT= I think it should be POINT= (or POINT= |
Signed-off-by: Andrew Fiddian-Green <[email protected]>
Signed-off-by: Andrew Fiddian-Green <[email protected]>
@stefan-hoehn this PR is ready to merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks Andrew
This PR improves the documentation for Semantic Tags in two respects:
The purpose is to have a clear set of rules for Semantic Tags as the fundamental basis for judging a number of current open PRs that aim to refine/improve/extend the current Semantic Tags functionality.
Follows on from the the discussion in openhab/openhab-core#4619
Signed-off-by: Andrew Fiddian-Green [email protected]