Skip to content

Extend API with semantic capabilities #204

Closed
@danielpeintner

Description

@danielpeintner

@mjkoster presented a slideset during the TD call that sketches some ideas with regard to semantic annotations. I think it highly relates to the Scripting API.

I did see 4 areas we might want to look into

  1. discover things fullfilling semantic anntations
    • (at the momement we provide a way to pass along a ThingFilter to discover() with a thing fragment)
  2. based on a thing select an interaction that fulfills (possibly yet another set of) semantic annotations (e.g., RGB light)
    • (at the moment one needs to know the name of an Interaction. I still propose that selecting an interaction should be a separate helper step saying please provide me the property names that fulfill a given set of semantic annotations. Hence the API can remain the same)
  3. interact with a selected interaction (e.g., RGB light) by selecting/filtering based on semantic annotations, e.g. only the "red" light should be set
    • (at the moment one needs to provide the full set, R, G, and B colors and not only R)
  4. scale/units conversion

@mjkoster did I miss any points?

Personally, I see it as a layered approach. Keeping the core of the scripting API as is (unless we need more features) but the semantic can be a very nice and handy enhancement on top if it....

Metadata

Metadata

Assignees

No one assigned

    Labels

    API-improvementSuggestions for changing the APIfor next iterationPlanned or postponed topics for the futurepropose closingSolutions exists and labelled as to be closed soonuse caseDescribes a scenario that may be useful for technical decisions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions