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
d0db8a43
Commit
d0db8a43
authored
Sep 05, 2019
by
canterafonsj
Browse files
Refactor schemas. Allow prefixes. Example with prefixes
parent
027d7c8c
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
9 deletions
+14
-9
examples/Vehicle_C2.2.json
examples/Vehicle_C2.2.json
+5
-0
schema/Entity.json
schema/Entity.json
+1
-2
schema/Entity_keyValues.json
schema/Entity_keyValues.json
+1
-2
schema/common.json
schema/common.json
+5
-1
schema/temporal/EntityTemporal.json
schema/temporal/EntityTemporal.json
+1
-2
schema/temporal/Entity_temporalValues.json
schema/temporal/Entity_temporalValues.json
+1
-2
No files found.
examples/Vehicle_C2.2.json
View file @
d0db8a43
...
...
@@ -5,6 +5,10 @@
"type"
:
"Property"
,
"value"
:
"Mercedes"
},
"schema:image"
:
{
"type"
:
"Property"
,
"value"
:
"http://example.org/images/Mercedes-C220"
},
"isParked"
:
{
"type"
:
"Relationship"
,
"object"
:
"urn:ngsi-ld:OffStreetParking:Downtown1"
,
...
...
@@ -18,6 +22,7 @@
"http://example.org/ngsi-ld/commonTerms.jsonld"
,
"http://example.org/ngsi-ld/vehicle.jsonld"
,
"http://example.org/ngsi-ld/parking.jsonld"
,
"https://schema.org"
,
"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld"
]
}
schema/Entity.json
View file @
d0db8a43
...
...
@@ -185,8 +185,7 @@
]
},
"propertyNames"
:
{
"type"
:
"string"
,
"pattern"
:
"^((
\\
d|[a-zA-Z]|_)+(:(
\\
d|[a-zA-Z]|_)+)?(#
\\
d+)?)$|^(@context)$"
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/PropertyNames"
}
},
"Entity"
:
{
...
...
schema/Entity_keyValues.json
View file @
d0db8a43
...
...
@@ -45,7 +45,6 @@
]
},
"propertyNames"
:
{
"type"
:
"string"
,
"pattern"
:
"^((
\\
d|[a-zA-Z]|_)+(#
\\
d+)?)$|^(@context)$"
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/PropertyNames"
}
}
schema/common.json
View file @
d0db8a43
...
...
@@ -6,10 +6,14 @@
"definitions"
:
{
"Name"
:
{
"type"
:
"string"
,
"pattern"
:
"^(
\\
d|[a-zA-Z]|_)+$"
,
"pattern"
:
"^(
(
\\
d|[a-zA-Z]|_)+
(:(
\\
d|[a-zA-Z]|_)+)?(#
\\
d+)?)
$"
,
"minLength"
:
1
,
"description"
:
"NGSI-LD Name"
},
"PropertyNames"
:
{
"type"
:
"string"
,
"pattern"
:
"^((
\\
d|[a-zA-Z]|_)+(:(
\\
d|[a-zA-Z]|_)+)?(#
\\
d+)?)$|^(@context)$"
},
"observedAt"
:
{
"type"
:
"string"
,
"format"
:
"date-time"
...
...
schema/temporal/EntityTemporal.json
View file @
d0db8a43
...
...
@@ -71,8 +71,7 @@
]
},
"propertyNames"
:
{
"type"
:
"string"
,
"pattern"
:
"^((
\\
d|[a-zA-Z]|_)+(#
\\
d+)?)$|^(@context)$"
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/PropertyNames"
}
},
"EntityTemporal"
:
{
...
...
schema/temporal/Entity_temporalValues.json
View file @
d0db8a43
...
...
@@ -115,7 +115,6 @@
]
},
"propertyNames"
:
{
"type"
:
"string"
,
"pattern"
:
"^((
\\
d|[a-zA-Z]|_)+(#
\\
d+)?)$|^(@context)$"
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/PropertyNames"
}
}
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