Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-13317

[fiware-stackoverflow] Orion Context Broker - references to data models

    Details

      Description

      Created question in FIWARE Q/A platform on 29-12-2017 at 13:12
      Please, ANSWER this question AT https://stackoverflow.com/questions/48022647/orion-context-broker-references-to-data-models

      Question:
      Orion Context Broker - references to data models

      Description:
      I'm preparing laboratory script for presenting features of of OCB, however
      there is a misconception on how OCB references to Data Models defined by
      FIWARE. I'm aware of parameter 'type', which is supplied along with new
      entity. The problem is connected to OCB. How does it difference between data models?

      I can add variables from different data model which don't match. I
      can't find the controller for it and if there is no any that's really shame. The problem I got is connected with situation:

      Creating entity with declared type for instance: Device
      Adding some parameter, which is not specified in Device schema. It could be dateLastWatering from Garden data model.

      It doesn't make any sense, how the OCB reacts to that?

      From my experience it just "swallows" the updated content as long as semantic of command is correct.

      I received information that a restriction can be implemented in application layer, however in my opinion it should be supplied along with OCB already.

      That way model can be mistaken and the example is not really educational. It
      could be useful if after defining a model for entity, OCB could interact
      somehow with user and check, or debug what it receives. That way it would be
      more professional I guess and fore sure more safe to use. If OCB doesn't have
      that feature is there a possibility for further development?

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2018-01-12 19:50|CREATED monitor | # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2018-01-12 19:50|CREATED monitor | # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2018-01-12 19:53|UPDATED status: transition Answer| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2018-01-12 19:53|UPDATED status: transition Answer| # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2018-01-12 20:02|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2018-01-12 20:02|UPDATED status: transition Finish| # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2018-01-16 18:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2018-01-16 18:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True

          People

          • Assignee:
            jmcantera Jose Manuel Cantera
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: