[Fiware-tech-help] NGSI-ld post request

Haghgoo, Maliheh mhaghgoo at eonerc.rwth-aachen.de
Wed Mar 6 17:28:36 CET 2019


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 at eonerc.rwth-aachen.de<mailto:MHaghgoo at eonerc.rwth-aachen.de>









-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-tech-help/attachments/20190306/bee150db/attachment.html>


More information about the Fiware-tech-help mailing list

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