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

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

    Details

    • Type: extRequest
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Fix Version/s: 2021
    • Component/s: FIWARE-TECH-HELP
    • Labels:
      None

      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:

      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

        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        jmcantera Jose Manuel Cantera made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        jmcantera Jose Manuel Cantera made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        jmcantera Jose Manuel Cantera made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        jmcantera Jose Manuel Cantera made changes -
        External Participants mhaghgoo@eonerc.rwth-aachen.de
        fla Fernando Lopez made changes -
        Assignee Jose Manuel Cantera [ jmcantera ]
        fla Fernando Lopez made changes -
        HD-Enabler Orion [ 10875 ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        fw.ext.user FW External User created issue -

          People

          • Assignee:
            jmcantera Jose Manuel Cantera
            Reporter:
            fw.ext.user FW External User
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: