Commit 74d9ca17 authored by Ignacio Dominguez Martinez-Casanueva's avatar Ignacio Dominguez Martinez-Casanueva
Browse files

Update JSON-LD examples

parent 72af052e
Loading
Loading
Loading
Loading
+42 −0
Original line number Diff line number Diff line
{
  "id": "@id",
  "type": "@type",
  "Property": "https://uri.etsi.org/ngsi-ld/Property",
  "Relationship": "https://uri.etsi.org/ngsi-ld/Relationship",
  "value": "https://uri.etsi.org/ngsi-ld/hasValue",
  "object": {
    "@type": "@id",
    "@id": "https://uri.etsi.org/ngsi-ld/hasObject"
  },
  "observedAt": {
    "@type": "https://uri.etsi.org/ngsi-ld/DateTime",
    "@id": "https://uri.etsi.org/ngsi-ld/observedAt"
  },
  "datasetId": {
    "@id": "https://uri.etsi.org/ngsi-ld/datasetId",
    "@type": "@id"
  },
  "location": "https://uri.etsi.org/ngsi-ld/location",
  "GeoProperty": "https://uri.etsi.org/ngsi-ld/GeoProperty",
  "Vehicle": "http://example.org/vehicle/Vehicle",
  "street": "http://example.org/vehicle/street",
  "brandName": "http://example.org/vehicle/brandName",
  "speed": "http://example.org/vehicle/speed",
  "isParked": {
    "@type": "@id",
    "@id": "http://example.org/common/isParked"
  },
  "OffStreetParking": "http://example.org/parking/OffStreetParking",
  "availableSpotNumber": "http://example.org/parking/availableSpotNumber",
  "totalSpotNumber": "http://example.org/parking/totalSpotNumber",
  "isNextToBuilding": {
    "@type": "@id",
    "@id": "http://example.org/common/isNextToBuilding"
  },
  "reliability": "http://example.org/common/reliability",
  "providedBy": {
    "@type": "@id",
    "@id": "http://example.org/common/providedBy"
  },
  "name": "http://example.org/common/name"
}
+11 −0
Original line number Diff line number Diff line
{
  "id": "urn:ngsi-ld:AttributeList:56534657",
  "type": "AttributeList",
  "attributeList": [
    "brandName",
    "isParked",
    "location",
    "speed",
    "http://example.org/parking/status"
  ]
}
+8 −0
Original line number Diff line number Diff line
{
  "id": "http://example.org/vehicle/brandName",
  "type": "Attribute",
  "attributeName": "brandName",
  "attributeTypes": ["Property"],
  "typeNames": ["Vehicle"],
  "attributeCount": 2
}
+36 −0
Original line number Diff line number Diff line
[
  {
    "id": "http://example.org/vehicle/brandName",
    "type": "Attribute",
    "attributeName": "brandName",
    "typeNames": ["Vehicle"]
  },
  {
    "id": "http://example.org/vehicle/isParked",
    "type": "Attribute",
    "attributeName": "isParked",
    "typeNames": ["Vehicle"]
  },
  {
    "id": "https://uri.etsi.org/ngsi-ld/location",
    "type": "Attribute",
    "attributeName": "location",
    "typeNames": [
      "Vehicle",
      "OffStreetParking",
      "http://example.org/parking/ParkingSpot"
    ]
  },
  {
    "id": "http://example.org/vehicle/speed",
    "type": "Attribute",
    "attributeName": "speed",
    "typeNames": ["Vehicle"]
  },
  {
    "id": "http://example.org/parking/status",
    "type": "Attribute",
    "attributeName": "http://example.org/parking/status",
    "typeNames": ["http://example.org/parking/ParkingSpot"]
  }
]
+0 −77
Original line number Diff line number Diff line
[{
  "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": [
        "availableSpotNumber",
        "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
        ]
      ]
    ]
  },
  "timestamp": [{
    "start": "2017-11-29T14:53:15Z"
  }],
  "@context": [
    "http://example.org/ngsi-ld/commonTerms.jsonld",
    "http://example.org/ngsi-ld/vehicle.jsonld",
    "http://example.org/ngsi-ld/parking.jsonld",  
    "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context-v1.3.jsonld"
  ]
}]
Loading