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
Commits
d0db8a43
Commit
d0db8a43
authored
Sep 05, 2019
by
canterafonsj
Browse files
Refactor schemas. Allow prefixes. Example with prefixes
parent
027d7c8c
Changes
6
Hide whitespace changes
Inline
Side-by-side
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
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