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
ccce7170
Commit
ccce7170
authored
Nov 09, 2018
by
canterafonsj
Browse files
Add Context Source Registration
parent
b47b22a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
schema/ContextSourceRegistration.json
0 → 100644
View file @
ccce7170
{
"$schema"
:
"http://json-schema.org/schema#"
,
"id"
:
"https://uri.etsi.org/ngsi-ld/schema/ContextSourceRegistration.json"
,
"title"
:
"NGSI-LD Context Source Registration"
,
"description"
:
"NGSI-LD Context Source Registration"
,
"definitions"
:
{
"RegistrationInfo"
:
{
"type"
:
"object"
,
"required"
:
[
"entities"
],
"properties"
:
{
"entities"
:
{
"type"
:
"array"
,
"minItems"
:
1
,
"items"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/EntityInfo"
}
},
"properties"
:
{
"type"
:
"array"
,
"minItems"
:
1
,
"items"
:
{
"type"
:
"string"
},
"uniqueItems"
:
true
},
"relationships"
:
{
"type"
:
"array"
,
"minItems"
:
1
,
"items"
:
{
"type"
:
"string"
},
"uniqueItems"
:
true
}
}
},
"TimeInterval"
:
{
"type"
:
"object"
,
"required"
:
[
"start"
],
"properties"
:
{
"start"
:
{
"type"
:
"string"
,
"format"
:
"date-time"
},
"end"
:
{
"type"
:
"string"
,
"format"
:
"date-time"
}
}
}
},
"type"
:
"object"
,
"properties"
:
{
"id"
:
{
"type"
:
"string"
,
"format"
:
"uri"
},
"type"
:
{
"type"
:
"string"
,
"const"
:
"ContextSourceRegistration"
},
"@context"
:
{
"$ref"
:
"https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/schema/common.json#/definitions/LdContext"
},
"information"
:
{
"type"
:
"array"
,
"minItems"
:
1
,
"items"
:
{
"$ref"
:
"#/definitions/RegistrationInfo"
}
},
"timestamp"
:
{
"type"
:
"array"
,
"minItems"
:
1
,
"items"
:
{
"$ref"
:
"#/definitions/TimeInterval"
}
},
"location"
:
{
"$ref"
:
"http://json-schema.org/geojson/geometry.json#"
},
"expires"
:
{
"type"
:
"string"
,
"format"
:
"date-time"
},
"name"
:
{
"type"
:
"string"
,
"minLength"
:
1
},
"description"
:
{
"type"
:
"string"
,
"minLength"
:
1
},
"endpoint"
:
{
"type"
:
"string"
,
"format"
:
"uri"
},
"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"
}
},
"additionalProperties"
:
{
"type"
:
[
"string"
,
"number"
,
"boolean"
,
"array"
,
"object"
]
},
"required"
:
[
"id"
,
"type"
,
"endpoint"
,
"information"
]
}
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