Closed bertt closed 7 years ago
From the spec: "A request to create an entity that includes related entities, represented using the appropriate inline representation, is referred to as a "deep insert". A SensorThings service that supports entity creation SHALL support deep insert.
If the inline representation contains a value for a computed property (i.e., id), the service SHALL ignore that value when creating the related entity.
On success, the service SHALL create all entities and relate them. On failure, the service SHALL NOT create any of the entities.
[Adapted from Data 4.0-Protocol 11.4.2.2]"
At the moment, only some deep insert statements are implemented, see for examples https://github.com/gost/docs/blob/master/gost_deepinsert.md
Create Thing with Location and Datastream
Create Datastream with ObservedProperty and Sensor for Thing.@iot_id=1
Create Observation with FeatureOfInterest
I'm trying to create a Datastream with Thing in a deep-insert, but it returns an error.
sample:
response:
Questions:
Is this supposed to be working or not?
If not can the error be improved?
If not, which deep-inserts are supported and which not?