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

[fiware-stackoverflow] Clone FIWARE DATA MODELS on my Orion Context Broker

    Details

      Description

      Created question in FIWARE Q/A platform on 12-12-2017 at 09:12
      Please, ANSWER this question AT https://stackoverflow.com/questions/47768028/clone-fiware-data-models-on-my-orion-context-broker

      Question:
      Clone FIWARE DATA MODELS on my Orion Context Broker

      Description:
      I am trying to import all current FIWARE DATA MODELS on my Orion Context Broker (POST data to an Orion Context Broker instance using NGSIv2 API) as my base data models but when using exact json format provided in repository of data models - https://github.com/fiware/dataModels - as below, getting this error in my Restlet Client:

      {
      "error": "BadRequest",
      "description": "attribute must be a JSON object, unless keyValues option is used"
      }

      This Payload is for PointOfInterest but same I'm getting same error for other FIWARE DATA MODELS as well:

      POST http://localhost/v2/entities
      Content-Type: application/json

      {
      "id": "PointOfInterest-A-Concha-123456",
      "type": "PointOfInterest",
      "name": "Playa de a Concha",
      "description": "La Playa de A Concha se presenta como una continuación de la Playa de Compostela, una de las más frecuentadas de Vilagarcía.",
      "address":

      { "addressCountry": "ES", "addressLocality": "Vilagarcía de Arousa" }

      ,
      "category": ["113"],
      "location":

      { "type": "Point", "coordinates": [ -8.768460000000001, 42.60214472222222 ] }

      ,
      "source": "http://www.tourspain.es",
      "refSeeAlso": ["Beach-A-Concha-123456"]
      }

      Simply as FIWARE data models have been harmonized to enable data portability for different applications, I want to clone all current models to my orion context broker with my own data but can't use example json schema provide in repository.

      I'm able to create simpler entities on Orion but not FIWARE DATA MODELS. Does anyone know what is wrong I'm doing?

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2018-01-12 19:49|CREATED monitor | # answers= 2, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2018-01-12 19:49|CREATED monitor | # answers= 2, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

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

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

        2018-01-12 20:02|UPDATED status: transition Answered| # answers= 2, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2018-01-12 20:02|UPDATED status: transition Answered| # answers= 2, accepted answer= False

          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: