Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
N
NGSI-LD
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
NGSI Linked Data
NGSI-LD
Commits
f27a46e1
Commit
f27a46e1
authored
Nov 13, 2018
by
canterafonsj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Entity Key Values
parent
b791a119
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
60 additions
and
6 deletions
+60
-6
Entity.json
schema/Entity.json
+7
-3
EntityTemporal.json
schema/EntityTemporal.json
+1
-3
Entity_keyValues.json
schema/Entity_keyValues.json
+51
-0
validate_schema.sh
scripts/validate_schema.sh
+1
-0
No files found.
schema/Entity.json
View file @
f27a46e1
...
...
@@ -4,6 +4,12 @@
"title"
:
"NGSI-LD Entity"
,
"description"
:
"NGSI-LD Entity"
,
"definitions"
:
{
"EntityType"
:
{
"type"
:
"string"
,
"pattern"
:
"^(
\\
d|[a-zA-Z]|_)+$"
,
"minLength"
:
1
,
"description"
:
"NGSI Entity type"
},
"datasetId"
:
{
"type"
:
"string"
,
"format"
:
"uri"
...
...
@@ -144,9 +150,7 @@
"format"
:
"uri"
},
"type"
:
{
"type"
:
"string"
,
"description"
:
"NGSI Entity type"
,
"minLength"
:
1
"$ref"
:
"#/definitions/EntityType"
},
"@context"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/LdContext"
...
...
schema/EntityTemporal.json
View file @
f27a46e1
...
...
@@ -10,9 +10,7 @@
"format"
:
"uri"
},
"type"
:
{
"type"
:
"string"
,
"description"
:
"NGSI Entity type"
,
"minLength"
:
1
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/Entity.json#/definitions/EntityType"
},
"@context"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/LdContext"
...
...
schema/Entity_keyValues.json
0 → 100644
View file @
f27a46e1
{
"$schema"
:
"http://json-schema.org/schema#"
,
"id"
:
"https://uri.etsi.org/ngsi-ld/schema/Entity_keyValues.json"
,
"title"
:
"NGSI-LD Entity Key Values"
,
"description"
:
"NGSI-LD Entity Simplified Representation"
,
"type"
:
"object"
,
"properties"
:
{
"id"
:
{
"type"
:
"string"
,
"format"
:
"uri"
},
"type"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/Entity.json#/definitions/EntityType"
},
"@context"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/LdContext"
},
"location"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#"
},
"observationSpace"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#"
},
"operationSpace"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#"
},
"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"
:
[
"type"
,
"id"
],
"additionalProperties"
:
{
"type"
:
[
"string"
,
"number"
,
"boolean"
,
"array"
,
"object"
]
},
"propertyNames"
:
{
"type"
:
"string"
,
"pattern"
:
"^((
\\
d|[a-zA-Z]|_)+(#
\\
d+)?)$"
}
}
scripts/validate_schema.sh
View file @
f27a46e1
...
...
@@ -18,3 +18,4 @@ ajv compile -s $SCHEMAS/BatchOperationResult.json -r $SCHEMAS/common.json
ajv compile
-s
$SCHEMAS
/UpdateResult.json
ajv compile
-s
$SCHEMAS
/Entity_keyValues.json
-r
$SCHEMAS
/common.json
-r
$SCHEMAS
/geometry-schema.json
-r
$SCHEMAS
/Entity.json
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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