EntityTemporal.json 2.35 KB
Newer Older
canterafonsj's avatar
canterafonsj committed
1
2
3
{
  "title": "NGSI-LD Entity",
  "description": "NGSI-LD Temporal Representation of an Entity",
canterafonsj's avatar
canterafonsj committed
4
5
6
7
8
  "definitions": {
    "EntityTemporalFragment": {
      "type": "object",
      "properties": {
        "@context": {
Stefan Wiedemann's avatar
Stefan Wiedemann committed
9
          "$ref": "http://localhost:8090/schema/common.json#/definitions/LdContext"
canterafonsj's avatar
canterafonsj committed
10
        },
canterafonsj's avatar
canterafonsj committed
11
12
13
        "location": {
          "type": "array",
          "items": {
Stefan Wiedemann's avatar
Stefan Wiedemann committed
14
            "$ref": "http://localhost:8090/schema/Entity.json#/definitions/GeoProperty"
canterafonsj's avatar
canterafonsj committed
15
16
          },
          "minItems": 1
canterafonsj's avatar
canterafonsj committed
17
        },
canterafonsj's avatar
canterafonsj committed
18
19
20
        "observationSpace": {
          "type": "array",
          "items": {
Stefan Wiedemann's avatar
Stefan Wiedemann committed
21
            "$ref": "http://localhost:8090/schema/Entity.json#/definitions/GeoProperty"
canterafonsj's avatar
canterafonsj committed
22
23
          },
          "minItems": 1
canterafonsj's avatar
canterafonsj committed
24
        },
canterafonsj's avatar
canterafonsj committed
25
26
27
        "operationSpace": {
          "type": "array",
          "items": {
Stefan Wiedemann's avatar
Stefan Wiedemann committed
28
            "$ref": "http://localhost:8090/schema/Entity.json#/definitions/GeoProperty"
canterafonsj's avatar
canterafonsj committed
29
30
          },
          "minItems": 1
canterafonsj's avatar
canterafonsj committed
31
        },
32
        "id": {
canterafonsj's avatar
canterafonsj committed
33
34
35
36
          "type": "string",
          "format": "uri"
        },
        "type": {
Stefan Wiedemann's avatar
Stefan Wiedemann committed
37
          "$ref": "http://localhost:8090/schema/common.json#/definitions/Name"
canterafonsj's avatar
canterafonsj committed
38
39
        },
        "createdAt": {
Stefan Wiedemann's avatar
Stefan Wiedemann committed
40
          "$ref": "http://localhost:8090/schema/common.json#/definitions/createdAt"
canterafonsj's avatar
canterafonsj committed
41
42
        },
        "modifiedAt": {
Stefan Wiedemann's avatar
Stefan Wiedemann committed
43
          "$ref": "http://localhost:8090/schema/common.json#/definitions/modifiedAt"
canterafonsj's avatar
canterafonsj committed
44
45
46
        }
      },
      "additionalProperties": {
Stefan Wiedemann's avatar
Stefan Wiedemann committed
47
        "oneOf": [
canterafonsj's avatar
canterafonsj committed
48
49
50
          {
            "type": "array",
            "items": {
Stefan Wiedemann's avatar
Stefan Wiedemann committed
51
              "$ref": "http://localhost:8090/schema/Entity.json#/definitions/Property"
canterafonsj's avatar
canterafonsj committed
52
53
54
55
56
57
            },
            "minItems": 1
          },
          {
            "type": "array",
            "items": {
Stefan Wiedemann's avatar
Stefan Wiedemann committed
58
              "$ref": "http://localhost:8090/schema/Entity.json#/definitions/Relationship"
canterafonsj's avatar
canterafonsj committed
59
60
61
62
63
64
            },
            "minItems": 1
          },
          {
            "type": "array",
            "items": {
Stefan Wiedemann's avatar
Stefan Wiedemann committed
65
              "$ref": "http://localhost:8090/schema/Entity.json#/definitions/GeoProperty"
canterafonsj's avatar
canterafonsj committed
66
67
68
69
            },
            "minItems": 1
          }
        ]
canterafonsj's avatar
canterafonsj committed
70
      }
canterafonsj's avatar
canterafonsj committed
71
72
73
    },
    "EntityTemporal": {
      "allOf": [
Stefan Wiedemann's avatar
Stefan Wiedemann committed
74
75
76
        {
          "$ref": "#/definitions/EntityTemporalFragment"
        },
canterafonsj's avatar
canterafonsj committed
77
78
79
        {
          "type": "object",
          "required": [
Stefan Wiedemann's avatar
Stefan Wiedemann committed
80
81
            "type",
            "id"
canterafonsj's avatar
canterafonsj committed
82
83
84
85
          ]
        }
      ]
    }
canterafonsj's avatar
canterafonsj committed
86
  },
canterafonsj's avatar
canterafonsj committed
87
88
89
90
91
  "allOf": [
    {
      "$ref": "#/definitions/EntityTemporal"
    }
  ]
Stefan Wiedemann's avatar
Stefan Wiedemann committed
92
}