Hi all, Tovias is ill today, so I fear we will need some more time to answer. - Ernö From: fiware-ngsi-bounces at lists.fi-ware.eu [mailto:fiware-ngsi-bounces at lists.fi-ware.eu] On Behalf Of Bisztray, Denes (NSN - HU/Budapest) Sent: Donnerstag, 1. März 2012 08:48 To: ext Haller, Stephan; Tobias Jacobs; Martin Bauer; Farkas, Lorant (NSN - HU/Budapest); Zamani Farahani, Armin; fiware-ngsi at lists.fi-ware.eu; Tschirschnitz, Fabian Subject: [Fiware-ngsi] QueryContext proposal Hi all, Here is my proposal for the queryContext semantics. PLEASE READ CAREFULLY before replying. Attribute mass replace scenario (either contextElements or /{contextElement}) level. Note: the input as per page 22/sec.5.4.6.1 we assume only a set of ContextElements with the contained attributes and the update action type. Note: in case the input ContextAttribute set of a ContextElement contains a set of ContextAttributes of the same name, then that ContextElement will fail in the ContextElementResponse structure with 400 Bad Request. (this is why the multiple value input with no metadata is not considered) 1. Replace (update action), (PUT) Input -> One Attribute Multiple Attibutes with same name no metadata at all exact metadata match (one result) partial metadata match (one result) multiple result match exact metadata match (one result per attribute value) partial metadata match (one result per attribute value) multiple result match One Attribute replace replace Fail 409 / ? Fail 409 Replace the matched ones Fail 409 / ? Fail 409 Multiple Attributes with same name Fail 409 replace Fail 409 / ? Fail 409 Replace the matched ones Fail 409 / ? Fail 409 Open question: what should happen to the Multiple Attribute Same Name input case with those attributes that are not matched? 2. Append (append action), (POST) Input -> One Attribute Multiple Attibutes with same name no metadata at all exact metadata match (one result) partial metadata match (one result) Multiple result partial match exact metadata match (one result per attribute value) partial metadata match (one result per attribute value) multiple result partial match One Attribute Fail 400 Fail 409 Add new Add new Fail the matched ones with Fail 409, add the others Add all Add all Multiple Attributes with same name Fail 400 Fail 409 Add new Add new Fail the matched ones with Fail 409, add the others Add all Add all 3. Delete (delete action), (DELETE) Input -> One Attribute Multiple Attibutes with same name no metadata at all exact metadata match (one result) partial metadata match (one result) Multiple result partial match exact metadata match (one result per attribute value) partial metadata match (one result per attribute value) multiple result partial match One Attribute Delete Delete Fail 409 / ? Fail 409 Delete the matched ones Fail 409 / ? Fail 409 Multiple Attributes with same name Fail 409 Delete Fail 409 / ? Add new Delete the matched ones Fail 409 / ? Fail 409 -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.fiware.org/private/fiware-ngsi/attachments/20120301/425acddf/attachment.html>
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy