Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CIM - Context Information Management
NGSI-LD API
Commits
a950217d
Commit
a950217d
authored
Nov 14, 2018
by
canterafonsj
Browse files
Refining Examples
parent
ccfa79f0
Changes
6
Hide whitespace changes
Inline
Side-by-side
examples/EntityTempor
t
al-example_C5.5.3.json
→
examples/EntityTemporal-example_C5.5.3.json
View file @
a950217d
File moved
examples/OffStreetParking_C2.3.json
View file @
a950217d
...
...
@@ -8,7 +8,7 @@
"availableSpotNumber"
:
{
"type"
:
"Property"
,
"value"
:
121
,
"observedAt"
:
"2017-07-29T12:05:02"
,
"observedAt"
:
"2017-07-29T12:05:02
Z
"
,
"reliability"
:
{
"type"
:
"Property"
,
"value"
:
0.7
...
...
examples/Vehicle_C2.2.js
→
examples/Vehicle_C2.2.js
on
View file @
a950217d
...
...
@@ -8,7 +8,7 @@
"isParked"
:
{
"type"
:
"Relationship"
,
"object"
:
"urn:ngsi-ld:OffStreetParking:Downtown1"
,
"
observedAt
"
:
"
2017-07-29T12:00:04
"
,
"observedAt"
:
"2017-07-29T12:00:04
Z
"
,
"providedBy"
:
{
"type"
:
"Relationship"
,
"object"
:
"urn:ngsi-ld:Person:Bob"
...
...
schema/Entity.json
View file @
a950217d
...
...
@@ -184,6 +184,6 @@
},
"propertyNames"
:
{
"type"
:
"string"
,
"pattern"
:
"^((
\\
d|[a-zA-Z]|_)+(#
\\
d+)?)$"
"pattern"
:
"^((
\\
d|[a-zA-Z]|_)+(#
\\
d+)?)$
|^(@context)$
"
}
}
schema/Entity_keyValues.json
View file @
a950217d
...
...
@@ -46,6 +46,6 @@
},
"propertyNames"
:
{
"type"
:
"string"
,
"pattern"
:
"^((
\\
d|[a-zA-Z]|_)+(#
\\
d+)?)$"
"pattern"
:
"^((
\\
d|[a-zA-Z]|_)+(#
\\
d+)?)$
|^(@context)$
"
}
}
scripts/validate_examples.sh
0 → 100755
View file @
a950217d
#!/bin/bash
ajv validate
-s
$SCHEMAS
/Entity.json
-d
$EXAMPLES
/Entity-example.json
-r
$SCHEMAS
/common.json
-r
$SCHEMAS
/geometry-schema.json
ajv validate
-s
$SCHEMAS
/Entity.json
-d
$EXAMPLES
/Vehicle_C2.2.json
-r
$SCHEMAS
/common.json
-r
$SCHEMAS
/geometry-schema.json
ajv validate
-s
$SCHEMAS
/Entity.json
-d
$EXAMPLES
/OffStreetParking_C2.3.json
-r
$SCHEMAS
/common.json
-r
$SCHEMAS
/geometry-schema.json
ajv validate
-s
$SCHEMAS
/Entity_keyValues.json
-d
-d
$EXAMPLES
/Vehicle_keyValues_C2.2.json
-r
$SCHEMAS
/common.json
-r
$SCHEMAS
/geometry-schema.json
ajv compile
-s
$SCHEMAS
/subscriptions/Subscription.json
-r
$SCHEMAS
/common.json
-r
$SCHEMAS
/geometry-schema.json
ajv compile
-s
$SCHEMAS
/temporal/EntityTemporal.json
-r
$SCHEMAS
/common.json
-r
$SCHEMAS
/geometry-schema.json
-r
$SCHEMAS
/Entity.json
ajv compile
-s
$SCHEMAS
/registrations/ContextSourceRegistration.json
-r
$SCHEMAS
/common.json
-r
$SCHEMAS
/geometry-schema.json
ajv compile
-s
$SCHEMAS
/subscriptions/Notification.json
-r
$SCHEMAS
/common.json
-r
$SCHEMAS
/geometry-schema.json
-r
$SCHEMAS
/Entity.json
ajv compile
-s
$SCHEMAS
/registrations/ContextSourceNotification.json
-r
$SCHEMAS
/common.json
-r
$SCHEMAS
/geometry-schema.json
-r
$SCHEMAS
/registrations/ContextSourceRegistration.json
ajv compile
-s
$SCHEMAS
/EntityList.json
-r
$SCHEMAS
/common.json
-r
$SCHEMAS
/geometry-schema.json
-r
$SCHEMAS
/Entity.json
ajv compile
-s
$SCHEMAS
/temporal/EntityTemporalList.json
-r
$SCHEMAS
/temporal/EntityTemporal.json
-r
$SCHEMAS
/Entity.json
-r
$SCHEMAS
/common.json
-r
$SCHEMAS
/geometry-schema.json
ajv compile
-s
$SCHEMAS
/BatchOperationResult.json
-r
$SCHEMAS
/common.json
ajv compile
-s
$SCHEMAS
/UpdateResult.json
ajv compile
-s
$SCHEMAS
/temporal/Entity_temporalValues.json
-r
$SCHEMAS
/common.json
-r
$SCHEMAS
/geometry-schema.json
-r
$SCHEMAS
/Entity.json
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