Commit 60d991cd authored by Serafino's avatar Serafino
Browse files

added some samples

parent bc9e57e8
Loading
Loading
Loading
Loading
+23 −0
Original line number Original line Diff line number Diff line
{
  "id": "urn:ngsi-ld:ContextSourceRegistration:randomUUID",
  "type": "ContextSourceRegistration",
  "information": [
    {
      "entities": [
        {
          "type": "Vehicle"
        }
      ],
      "propertyNames": [
        "brandName"
      ],
      "relationshipNames": [
        "isParked"
      ]
    }
  ],
  "endpoint": "http://my.csource.org:1026",
  "@context": [
    "https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld"
  ]
}
+20 −0
Original line number Original line Diff line number Diff line
{
    "id": "urn:ngsi-ld:Vehicle:randomUUID",
    "type": "Vehicle",
    "brandName": {
        "type": "Property",
        "value": "BMW"
    },
    "isParked2": {
        "type": "Relationship",
        "object": "urn:ngsi-ld:OffStreetParking:Downtown2",
        "observedAt": "2017-07-29T12:00:04Z",
        "providedBy": {
        "type": "Relationship",
        "object": "urn:ngsi-ld:Person:Alice"
        }
    },
    "@context": [
        "https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld"
    ]
} 
 No newline at end of file
+25 −0
Original line number Original line Diff line number Diff line
{
    "id": "urn:ngsi-ld:Vehicle:randomUUID",
    "type": "Vehicle",
    "speed": {
        "type": "Property",
        "value": 56,
        "source": {
            "type": "Property",
            "value": "Speedometer"
        },
        "datasetId": "urn:ngsi-ld:Property:speedometerA4567-speed2" 
    },
    "isParked2": {
        "type": "Relationship",
        "object": "urn:ngsi-ld:OffStreetParking:Downtown2",
        "observedAt": "2017-07-29T12:00:04Z",
        "providedBy": {
        "type": "Relationship",
        "object": "urn:ngsi-ld:Person:Alice"
        }
    },
    "@context": [
        "https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld"
    ]
} 
 No newline at end of file