ContextSourceRegistration-example_C.3.json 1.41 KB
Newer Older
canterafonsj's avatar
canterafonsj committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
{
  "id": "urn:ngsi-ld:ContextSourceRegistration:csr1a3456",
  "type": "ContextSourceRegistration",
  "information": [
    {
      "entities": [
        {
          "id": "urn:ngsi-ld:Vehicle:A456",
          "type": "Vehicle"
        }
      ],
      "properties": [
        "brandName",
        "speed"
      ],
      "relationships": [
        "isParked"
      ]
    },
    {
      "entities": [
        {
          "idPattern": ".*downtown$",
          "type": "OffStreetParking"
        },
        {
          "idPattern": ".*47$",
          "type": "OffStreetParking"
        }
      ],
      "properties": [
        "availableSotNumber",
        "totalSpotNumber"
      ],
      "relationships": [
        "isNextToBuilding"
      ]
    }
  ],
  "endpoint": "http://my.csource.org:1026",
  "location": {
    "type": "Polygon",
    "coordinates": [
      [
        [
          100.0,
          0.0
        ],
        [
          101.0,
          0.0
        ],
        [
          101.0,
          1.0
        ],
        [
          100.0,
          1.0
        ],
        [
          100.0,
          0.0
        ]
      ]
    ]
  },
canterafonsj's avatar
canterafonsj committed
68 69 70
  "timestamp": [{
    "start": "2017-11-29T14:53:15Z"
  }],
canterafonsj's avatar
canterafonsj committed
71
  "@context": [
72 73
    "http://example.org/ngsi-ld/commonTerms.jsonld",
    "http://example.org/ngsi-ld/vehicle.jsonld",
74
    "http://example.org/ngsi-ld/parking.jsonld",  
75
    "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
canterafonsj's avatar
canterafonsj committed
76 77
  ]
}