Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:
-
HD-Chapter:Data
-
HD-Enabler:Orion
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":
,
"category": ["113"],
"location":
,
"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
Field | Original Value | New Value |
---|---|---|
Component/s | FIWARE-TECH-HELP [ 10278 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | Answered [ 10104 ] |
Assignee | Jose Manuel Cantera [ jmcantera ] |
Resolution | Done [ 10000 ] | |
Status | Answered [ 10104 ] | Closed [ 6 ] |
HD-Enabler | Orion [ 10875 ] | |
HD-Chapter | Data [ 10838 ] |
Fix Version/s | 2021 [ 12600 ] |
Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
---|---|---|---|---|---|---|---|---|---|
|
3m 28s | 1 | Backlog Manager | 12/Jan/18 7:53 PM | |||||
|
8m 55s | 1 | Backlog Manager | 12/Jan/18 8:02 PM | |||||
|
3d 18h 53m | 1 | Jose Manuel Cantera | 16/Jan/18 2:56 PM |
2018-01-12 19:49|CREATED monitor | # answers= 2, accepted answer= False