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
a950217d
Commit
a950217d
authored
Nov 14, 2018
by
canterafonsj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refining Examples
parent
ccfa79f0
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
4 deletions
+36
-4
EntityTemporal-example_C5.5.3.json
examples/EntityTemporal-example_C5.5.3.json
+0
-0
OffStreetParking_C2.3.json
examples/OffStreetParking_C2.3.json
+1
-1
Vehicle_C2.2.json
examples/Vehicle_C2.2.json
+1
-1
Entity.json
schema/Entity.json
+1
-1
Entity_keyValues.json
schema/Entity_keyValues.json
+1
-1
validate_examples.sh
scripts/validate_examples.sh
+32
-0
No files found.
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
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