Details
-
Type: extRequest
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:None
-
External Participants:
-
HD-Enabler:Orion
Description
Dear FIWARE Team,
Within the scope of research project powered by FIWARE in energy sector. We are going to have ontology include in our project therefore NGSI-ld is very well fit to our concept. But we face some issuses in the first step of our setup.
We used your tutorial how to post data to FIWARE/orion-ld but in fact it does not work and we afraid that this is not very well defined in orion-ld. We used this link to post an example e of Json-ld into CB.
https://fiware-datamodels.readthedocs.io/en/latest/ngsi-ld_howto/index.html
our request looks like :
curl -iX POST 'http://localhost:1026/v2/entities' -H 'Content-Type: application/json' -d '
{
"id": "urn:ngsi-ld:Vehicle:A4567",
"type": "Vehicle",
"brandName":
{ "type": "Property", "value": "Mercedes" },
"isParked": {
"type": "Relationship",
"object": "urn:ngsi-ld:OffStreetParking:Downtown1",
"observedAt": "2017-07-29T12:00:04",
"providedBy":
{ "type": "Relationship", "object": "urn:ngsi-ld:Person:Bob" }},
"@context": [
"http://example.org/cim/commonTerms.jsonld",
"http://example.org/cim/vehicle.jsonld",
"http://example.org/cim/parking.jsonld"
]
}'
And response is like
{"error":"BadRequest","description":"unrecognized property for context attribute"}. Could you please help us to get how we can define CRUD for NGSI-ld ?
Thank you in advance,
Best regards,
-----------------------------------------------------------------------
Maliheh Haghgoo, M.Sc.
Research Associate
RWTH Aachen University
E.ON Energy Research Center, Institute for Automation of Complex Power Systems
Mathieustraße 10
52074 Aachen, Germany
Room 10.11
www.eonerc.rwth-aachen.de<http://www.eonerc.rwth-aachen.de/>
Phone: +49 241 80 49587
MHaghgoo@eonerc.rwth-aachen.de<MHaghgoo@eonerc.rwth-aachen.de>
__________________________________________________________________________________________
You can get more information about our cookies and privacy policies on the following links:
- http://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/FIWARE_Privacy_Policy
- http://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/Cookies_Policy_FIWARE
Fiware-tech-help mailing list
Fiware-tech-help@lists.fiware.org
https://lists.fiware.org/listinfo/fiware-tech-help
[Created via e-mail received from: "Haghgoo, Maliheh" <mhaghgoo@eonerc.rwth-aachen.de>]
Activity
- All
- Comments
- History
- Activity
- Transitions
The issue has been emailed:
HELP-15537) [Fiware-tech-help] NGSI-ld post request *From FIWARE JIRA - Main Help Desk ----
-------------------------------------------------------------------------------
Comments:
------------------------
Issue id:
HELP-15537Description:
Dear FIWARE Team,
Within the scope of research project powered by FIWARE in energy sector. We are going to have ontology include in our project therefore NGSI-ld is very well fit to our concept. But we face some issuses in the first step of our setup.
We used your tutorial how to post data to FIWARE/orion-ld but in fact it does not work and we afraid that this is not very well defined in orion-ld. We used this link to post an example e of Json-ld into CB.
https://fiware-datamodels.readthedocs.io/en/latest/ngsi-ld_howto/index.html
our request looks like :
curl -iX POST 'http://localhost:1026/v2/entities' -H 'Content-Type: application/json' -d '
>> mmm /ngsi-ld/v1/entities/ (/v2/entities/ is NGSIv2)
{
"id": "urn:ngsi-ld:Vehicle:A4567",
"type": "Vehicle",
"brandName":
{ "type": "Property", "value": "Mercedes" },
"isParked": {
"type": "Relationship",
"object": "urn:ngsi-ld:OffStreetParking:Downtown1",
"observedAt": "2017-07-29T12:00:04",
"providedBy":
{ "type": "Relationship", "object": "urn:ngsi-ld:Person:Bob" }},
"@context": [
"http://example.org/cim/commonTerms.jsonld",
"http://example.org/cim/vehicle.jsonld",
"http://example.org/cim/parking.jsonld"
]
>> You are using a @context which does not exist, you need to create a @context that actually exists ... or just not to provide any @context, but I guess you want to have an ontology, so better if you define a @context
}'
And response is like
{"error":"BadRequest","description":"unrecognized property for context attribute"}. Could you please help us to get how we can define CRUD for NGSI-ld ?
>> Try to fix as I suggest
Thank you in advance,
Best regards,
-----------------------------------------------------------------------
Maliheh Haghgoo, M.Sc.
Research Associate
RWTH Aachen University
E.ON Energy Research Center, Institute for Automation of Complex Power Systems
Mathieustraße 10
52074 Aachen, Germany
Room 10.11
www.eonerc.rwth-aachen.de<http://www.eonerc.rwth-aachen.de/>
Phone: +49 241 80 49587
MHaghgoo@eonerc.rwth-aachen.de<MHaghgoo@eonerc.rwth-aachen.de>
__________________________________________________________________________________________
You can get more information about our cookies and privacy policies on the following links:
Fiware-tech-help mailing list
Fiware-tech-help@lists.fiware.org
https://lists.fiware.org/listinfo/fiware-tech-help
[Created via e-mail received from: "Haghgoo, Maliheh" <mhaghgoo@eonerc.rwth-aachen.de>]
FIWARE Chapter:
FIWARE GEri:
Status: Open
---------------------
This email was generated by FIWARE JIRA following an email received into the Main Help Desk.