[Fiware-ngsi] QueryContext proposal

Bisztray, Denes (NSN - HU/Budapest) denes.bisztray at nsn.com
Thu Mar 1 08:47:37 CET 2012


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/80ed7aa0/attachment.html>


More information about the Fiware-ngsi mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy