Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
NGSI Linked Data
NGSI-LD API
Commits
6cfb8973
Commit
6cfb8973
authored
Nov 20, 2018
by
canterafonsj
Browse files
Entity now is a definition
parent
0fa762bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
schema/Entity.json
View file @
6cfb8973
...
...
@@ -20,7 +20,13 @@
"const"
:
"Property"
},
"value"
:
{
"type"
:
[
"string"
,
"number"
,
"boolean"
,
"array"
,
"object"
]
"type"
:
[
"string"
,
"number"
,
"boolean"
,
"array"
,
"object"
]
},
"observedAt"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/observedAt"
...
...
@@ -135,55 +141,62 @@
}
]
}
}
},
"type"
:
"object"
,
"properties"
:
{
"id"
:
{
"type"
:
"string"
,
"format"
:
"uri"
},
"type"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/Name"
},
"@context"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/LdContext"
},
"location"
:
{
"$ref"
:
"#/definitions/GeoProperty"
},
"observationSpace"
:
{
"$ref"
:
"#/definitions/GeoProperty"
},
"operationSpace"
:
{
"$ref"
:
"#/definitions/GeoProperty"
},
"createdAt"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/createdAt"
},
"modifiedAt"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/modifiedAt"
}
},
"required"
:
[
"id"
,
"type"
],
"additionalProperties"
:
{
"anyOf"
:
[
{
"$ref"
:
"#/definitions/Property"
"Entity"
:
{
"type"
:
"object"
,
"properties"
:
{
"id"
:
{
"type"
:
"string"
,
"format"
:
"uri"
},
"type"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/Name"
},
"@context"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/LdContext"
},
"location"
:
{
"$ref"
:
"#/definitions/GeoProperty"
},
"observationSpace"
:
{
"$ref"
:
"#/definitions/GeoProperty"
},
"operationSpace"
:
{
"$ref"
:
"#/definitions/GeoProperty"
},
"createdAt"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/createdAt"
},
"modifiedAt"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/modifiedAt"
}
},
{
"$ref"
:
"#/definitions/Relationship"
"required"
:
[
"id"
,
"type"
],
"additionalProperties"
:
{
"anyOf"
:
[
{
"$ref"
:
"#/definitions/Property"
},
{
"$ref"
:
"#/definitions/Relationship"
},
{
"$ref"
:
"#/definitions/GeoProperty"
}
]
},
"propertyNames"
:
{
"type"
:
"string"
,
"pattern"
:
"^((
\\
d|[a-zA-Z]|_)+(#
\\
d+)?)$|^(@context)$"
}
}
},
"allOf"
:
[
{
"$ref"
:
"#/definitions/
GeoProper
ty"
"$ref"
:
"#/definitions/
Enti
ty"
}
]
},
"propertyNames"
:
{
"type"
:
"string"
,
"pattern"
:
"^((
\\
d|[a-zA-Z]|_)+(#
\\
d+)?)$|^(@context)$"
}
}
}
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment