Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
NGSI Linked Data
NGSI-LD
Commits
3d223c5e
Commit
3d223c5e
authored
Nov 07, 2018
by
canterafonsj
Browse files
Getting even closer
parent
b2d625ae
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
36 deletions
+34
-36
schema/Entity.json
schema/Entity.json
+15
-23
schema/Subscription.json
schema/Subscription.json
+6
-0
schema/common.json
schema/common.json
+13
-13
No files found.
schema/Entity.json
View file @
3d223c5e
...
...
@@ -4,18 +4,6 @@
"title"
:
"NGSI-LD Entity"
,
"description"
:
"NGSI-LD Entity"
,
"definitions"
:
{
"observedAt"
:
{
"type"
:
"string"
,
"format"
:
"date-time"
},
"createdAt"
:
{
"type"
:
"string"
,
"format"
:
"date-time"
},
"modifiedAt"
:
{
"type"
:
"string"
,
"format"
:
"date-time"
},
"datasetId"
:
{
"type"
:
"string"
,
"format"
:
"uri"
...
...
@@ -35,13 +23,13 @@
"type"
:
"any"
},
"observedAt"
:
{
"$ref"
:
"#/definitions/observedAt"
"$ref"
:
"
https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json
#/definitions/observedAt"
},
"createdAt"
:
{
"$ref"
:
"#/definitions/createdAt"
"$ref"
:
"
https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json
#/definitions/createdAt"
},
"modifiedAt"
:
{
"$ref"
:
"#/definitions/modifiedAt"
"$ref"
:
"
https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json
#/definitions/modifiedAt"
},
"datasetId"
:
{
"$ref"
:
"#/definitions/datasetId"
...
...
@@ -77,13 +65,13 @@
"format"
:
"uri"
},
"observedAt"
:
{
"$ref"
:
"#/definitions/observedAt"
"$ref"
:
"
https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json
#/definitions/observedAt"
},
"createdAt"
:
{
"$ref"
:
"#/definitions/createdAt"
"$ref"
:
"
https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json
#/definitions/createdAt"
},
"modifiedAt"
:
{
"$ref"
:
"#/definitions/modifiedAt"
"$ref"
:
"
https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json
#/definitions/modifiedAt"
},
"datasetId"
:
{
"$ref"
:
"#/definitions/datasetId"
...
...
@@ -117,11 +105,14 @@
"value"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/geometry-schema.json#"
},
"observedAt"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/observedAt"
},
"createdAt"
:
{
"$ref"
:
"#/definitions/createdAt"
"$ref"
:
"
https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json
#/definitions/createdAt"
},
"modifiedAt"
:
{
"$ref"
:
"#/definitions/modifiedAt"
"$ref"
:
"
https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json
#/definitions/modifiedAt"
},
"datasetId"
:
{
"$ref"
:
"#/definitions/datasetId"
...
...
@@ -154,7 +145,8 @@
},
"type"
:
{
"type"
:
"string"
,
"description"
:
"NGSI Entity type"
"description"
:
"NGSI Entity type"
,
"minLength"
:
1
},
"@context"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/LdContext"
...
...
@@ -169,10 +161,10 @@
"$ref"
:
"#/definitions/GeoProperty"
},
"createdAt"
:
{
"$ref"
:
"#/definitions/createdAt"
"$ref"
:
"
https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json
#/definitions/createdAt"
},
"modifiedAt"
:
{
"$ref"
:
"#/definitions/modifiedAt"
"$ref"
:
"
https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json
#/definitions/modifiedAt"
}
},
"required"
:
[
...
...
schema/Subscription.json
View file @
3d223c5e
...
...
@@ -174,6 +174,12 @@
"type"
:
"string"
}
},
"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"
...
...
schema/common.json
View file @
3d223c5e
...
...
@@ -4,6 +4,18 @@
"title"
:
"NGSI-LD Common Definitions"
,
"description"
:
"NGSI-LD Common"
,
"definitions"
:
{
"observedAt"
:
{
"type"
:
"string"
,
"format"
:
"date-time"
},
"createdAt"
:
{
"type"
:
"string"
,
"format"
:
"date-time"
},
"modifiedAt"
:
{
"type"
:
"string"
,
"format"
:
"date-time"
},
"LdContext"
:
{
"anyOf"
:
[
{
...
...
@@ -30,19 +42,6 @@
}
]
},
"Dates"
:
{
"type"
:
"object"
,
"properties"
:
{
"createdAt"
:
{
"type"
:
"string"
,
"format"
:
"date-time"
},
"modifiedAt"
:
{
"type"
:
"string"
,
"format"
:
"date-time"
}
}
},
"Endpoint"
:
{
"type"
:
"object"
,
"required"
:
[
...
...
@@ -79,4 +78,5 @@
}
}
}
}
}
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