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
ca302206
Commit
ca302206
authored
Nov 02, 2018
by
canterafonsj
Browse files
Now GeoProperty
parent
97b290f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
schema-examples/Entity-example.json
View file @
ca302206
...
...
@@ -16,5 +16,12 @@
"closeTo"
:
{
"type"
:
"Relationship"
,
"object"
:
"urn:ngsi-ld:Building:B1234"
}
},
"location"
:
{
"type"
:
"GeoProperty"
,
"value"
:
{
"type"
:
"Point"
,
"coordinates"
:
[
-8
,
44
]
}
}
}
schema/Entity.json
View file @
ca302206
...
...
@@ -95,6 +95,39 @@
}
}
]
},
"GeoProperty"
:
{
"allOf"
:
[
{
"$ref"
:
"#/definitions/Commons"
},
{
"type"
:
"object"
,
"properties"
:
{
"type"
:
{
"type"
:
"string"
,
"const"
:
"GeoProperty"
},
"value"
:
{
"$ref"
:
"https://raw.githubusercontent.com/Fiware/dataModels/master/geometry-schema.json"
}
},
"required"
:
[
"type"
,
"value"
],
"additionalProperties"
:
{
"anyOf"
:
[
{
"$ref"
:
"#/definitions/Property"
},
{
"$ref"
:
"#/definitions/Relationship"
}
]
}
}
]
}
},
"type"
:
"object"
,
...
...
@@ -119,6 +152,9 @@
},
{
"$ref"
:
"#/definitions/Relationship"
},
{
"$ref"
:
"#/definitions/GeoProperty"
}
]
}
...
...
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