[oslc-core] Fw: Questions on Query in Core Spec.
Arthur Ryman
ryman at ca.ibm.com
Fri Apr 30 16:22:52 EDT 2010
Tack,
1) I suggested we define an oslc:instanceShape property that a resource
could use to point to its shape. You could retrieve that via a query like
http://example.com/resource/1234?oslc.properties=oslc:instanceShape
2) Yes, you can nest to any depth.
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
Twitter | Facebook | YouTube
From:
Tack Tong/Toronto/IBM at IBMCA
To:
oslc-core at open-services.net
Date:
04/26/2010 12:37 PM
Subject:
[oslc-core] Fw: Questions on Query in Core Spec.
Sent by:
oslc-core-bounces at open-services.net
Arthur,
Thanks for the response.
1. "GET the service provider and look for the shape resources. Find the
one for the rdf:type of the initial resource." In the Core Spec.,
oslc:shape only got defined within the context of Creation Factory and
Query Capability. There is no way to relate a rdf:type of the initial
resource with a Creation Factory. Just looking at a Creation Factory,
there is no way to tell which resource type it is for. One have to look
into the oslc:shape it refers to find out the type of the resource. It is
not practical to get all resource shapes in all Creation Factory and
figure out which one matches. Also, we should not assume a shape for
creation is the same as the shape for query. Similar situation for
oslc:shape in Query Capability. It looks like we need either 1) be able to
specify resource shape of all resources (outside context of Creation
Factory and Query Capability) in the Service Provider Resource, or 2)
specify the shape in the original resource itself.
2. So, oslc.properties=*{*{*}} would get me all properties to 2 level deep
nested, right?
Tack Tong
IBM Rational software
tacktong at ca.ibm.com
905-413-3232
tie line 313-3232
----- Forwarded by Tack Tong/Toronto/IBM on 04/26/2010 12:19 PM -----
From:
Arthur Ryman/Toronto/IBM
To:
Tack Tong/Toronto/IBM at IBMCA
Cc:
oslc-core at open-services.net, oslc-core-bounces at open-services.net
Date:
04/26/2010 10:25 AM
Subject:
Re: [oslc-core] Questions on Query in Core Spec.
Tack,
1. Correct - you don't create a Query Capability for every resource since
there are an unbounded number of them. You'd only create Query
Capabilities for a few "root" resources. You'd query those to find other
resources. To discover the shape of a resource do the following:
1. GET the resource and look at its rdf:type and other properties.
One of them should link back to the service provider, directly e.g.
oslc:serviceProvider, or indirectly.
2. GET the service provider and look for the shape resources. Find
the one for the rdf:type of the initial resource.
2. Correct, oslc.properties=*{*} matches all the properties of a resource,
and all of its nested properties (to depth 1).
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
Twitter | Facebook | YouTube
Tack Tong---04/25/2010 10:15:52 PM---1. One can use oslc.properties to
query on an OSLC resource. e.g. http://example.com/bugs/4242?oslc.
From:
Tack Tong/Toronto/IBM at IBMCA
To:
oslc-core at open-services.net
Date:
04/25/2010 10:15 PM
Subject:
[oslc-core] Questions on Query in Core Spec.
Sent by:
oslc-core-bounces at open-services.net
1. One can use oslc.properties to query on an OSLC resource. e.g.
http://example.com/bugs/4242?oslc.properties=dc:title,dc:creator
{foaf:givenName,foaf:familyName}
If I was given the URL of a resource (such as http://example.com/bugs/4242
), how do I find out its Resource Shape so that I know what are the
properties to query on. I don't think I can create a self subject Query
Capability of every individual resource.
2. The wildcard oslc.properties=* and oslc.select=* should return all
properties of the resource and all properties of the members in the list.
How do I specify to return all properties including properties of all
nested properties? Do I use oslc.properties=*{*} or something similar?
Tack Tong
IBM Rational software
tacktong at ca.ibm.com
905-413-3232
tie line 313-3232_______________________________________________
Oslc-Core mailing list
Oslc-Core at open-services.net
http://open-services.net/mailman/listinfo/oslc-core_open-services.net
_______________________________________________
Oslc-Core mailing list
Oslc-Core at open-services.net
http://open-services.net/mailman/listinfo/oslc-core_open-services.net
More information about the Oslc-Core
mailing list