forked from telefonicaid/fiware-orion
-
Notifications
You must be signed in to change notification settings - Fork 44
Supporting DateTime
Jose M. Cantera edited this page Oct 4, 2018
·
7 revisions
TemporalProperty
is not allowed for user terms. So for specifying a Property which represents a DateTime there are two different options:
{
'id': 'urn:ngsi-ld:T:34567',
'type': 'T',
'P1': {
'type': 'Property',
'value': {
'@type': 'DateTime',
'@value': '2018-12-04T12:00:00'
}
},
'@context': ['https://fiware.github.io/NGSI-LD_Tests/ldContext/testFullContext.jsonld']
}
Or
{
'id': 'urn:ngsi-ld:T:34567',
'type': 'T',
'P1': {
'type': 'Property',
'value': '2018-12-04T12:00:00'
},
'@context': ['https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/coreContext/ngsi-ld-core-context.json', {
'P1': {
'@type': 'DateTime'
'@id': 'http://example.org/test/P1'
}
}],
}