[oslc-core] Example of a self-subject query capability representation?

Dave snoopdave at gmail.com
Wed Apr 28 11:33:17 EDT 2010


On Wed, Apr 28, 2010 at 10:03 AM, Arthur Ryman <ryman at ca.ibm.com> wrote:
> 3. * If you define a single-subject query must you also define the
> "shape" of the resulting response And specifically, how did we know,
> in Tack's example, that the root element would be <ems:ProjectList>?
>
> In the definition of a query capability, the oslc:shape property SHOULD
> give the Resource Shape of the subject resources.

A query capability can have zero-or-more shapes which reflect the
different types of resources that can be queried via the capability,
not the shape of the resulting query response.

Based on what I understand about single-subject queries so far, it
appears that we need to use shapes in two different ways in a query
capability:
1) One shape defines the query response that comes back from a query
2) Another set of shapes define the shapes of resource that you query over

Is that correct? If so, that's not what we cover in the spec.

Seems like the shape for use #1 above should be defined in the Core
spec and the shapes used in #2 should be defined by various domain
specs.


> I think the current design does not allow top-level Resource Shape
> resources. It would make more sense if we could define top-level Resource
> Shape and then refer to them via URLs for the other resources.

Actually, it does. Resource Shapes each exist at a URI.

- Dave




More information about the Oslc-Core mailing list