[Backlogmanager] [FIWARE-JIRA] (HELP-13302) [fiware-stackoverflow] Clone FIWARE DATA MODELS on my Orion Context Broker

Jose Manuel Cantera (JIRA) jira-help-desk at jira.fiware.org
Tue Jan 16 14:57:00 CET 2018


     [ https://jira.fiware.org/browse/HELP-13302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jose Manuel Cantera resolved HELP-13302.
----------------------------------------
    Resolution: Done

> [fiware-stackoverflow] Clone FIWARE DATA MODELS on my Orion Context Broker
> --------------------------------------------------------------------------
>
>                 Key: HELP-13302
>                 URL: https://jira.fiware.org/browse/HELP-13302
>             Project: Help-Desk
>          Issue Type: Monitor
>          Components: FIWARE-TECH-HELP
>            Reporter: Backlog Manager
>            Assignee: Jose Manuel Cantera
>              Labels: fiware, fiware-orion
>
> Created question in FIWARE Q/A platform on 12-12-2017 at 09:12
> {color: red}Please, ANSWER this question AT{color} 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?



--
This message was sent by Atlassian JIRA
(v6.4.1#64016)


More information about the Backlogmanager mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy