Dragos, I described the formal meaning of queries by giving their equivalent expression in SPARQL. See [1].
The meaning of the oslc.where clause is given by translating it into a corresponding WHERE clause. The example you give is like Example 2 [2]. SPARQL is based on graph pattern matching, so if a property is absent there is no match and the resource won't be included in the result. You also asked about oslc.orderBy. If you specify sort keys that are not present then the behavior is undefined [3]. The spec recommends that you use single-valued, required properties when sorting. [1] http://open-services.net/bin/view/Main/OslcSimpleQuerySparqlV1 [2] http://open-services.net/bin/view/Main/OslcSimpleQuerySparqlV1#Example_2_Searching_for_Resource [3] http://open-services.net/bin/view/Main/OSLCCoreSpecQuery#oslc_orderBy Regards, ___________________________________________________________________________ Arthur Ryman, PhD, DE Chief Architect, Project and Portfolio Management IBM Software, Rational Markham, ON, Canada | Office: 905-413-3077, Cell: 416-939-5063 From: Dragos Cojocari <[email protected]> To: [email protected] Date: 01/12/2011 08:12 AM Subject: [oslc-core] Behavior of oslc.where and oslc.sort if resources are not managed by the service provider Sent by: [email protected] Hey everyone, and a Happy new year. I'd like to understand what is the defined behaviour if a query specifies in its where/orderBy clause and the collection of resources contains resources not managed by the service provider and the serviceprovider cannot filter/sort them. What should the provider do: - reject the response with an error - include only the resources for which the filter/sort can be calculated - undefined Example data: So for the data above what is the expected result for the following query: http://<server>:<post>/defects?oslc.select=*&oslc.where=oslc:shortTitle="Some defect" Regards, Dragos Exceptand situatiile in care partile au convenit in alt mod: / Unless stated otherwise above: IBM România S.R.L. Bucharest Business Park, Corp A2, Şos. Bucureşti-Ploieşti Nr. 1A, 013681 Bucureşti 1, ROMANIA CIF RO378660, RC J/40/5106/1991 Cap.Soc. 41.670 Lei_______________________________________________ Oslc-Core mailing list [email protected] http://open-services.net/mailman/listinfo/oslc-core_open-services.net
