[oslc-core] How do I get the shape from a resource?
Arthur Ryman
ryman at ca.ibm.com
Mon Apr 26 11:56:50 EDT 2010
Steve,
The rdf:type should be the OSLC type defined by the appropriate domain
spec, e.g. CM. It belongs to the OSLC domain, http://open-services.net, so
GETing it would NOT reflect any new properties added by a service
provider.
I agree that it would be handy to be able to easily find the shape of a
resource. There are really two major use cases:
1. Schema-based information, e.g. to design a report. You need to find the
shape from the service provider. This is what oslc:shape is for.
2. Instance-based information, e.g. you are given the URL of an instance
resource and you want to find its shape, e.g. to modify the instance via
PUT. There is no property defined yet. Using oslc:shape might be
confusing. In XML Schema, they introduced a special namespace for instance
level information such as type, xsi:
http://www.w3.org/2001/XMLSchema-instance.
To avoid confusion I suggest we use a different property, e.g.
oslc:instanceShape
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:
Steve K Speicher <sspeiche at us.ibm.com>
To:
oslc-core at open-services.net
Date:
04/24/2010 03:06 PM
Subject:
[oslc-core] How do I get the shape from a resource?
Sent by:
oslc-core-bounces at open-services.net
I had assumed that every OSLC defined resource would have an rdf:type
property that references either the spec defined Type URI OR is it a
gettable URI that references the service provider's hosted version of the
resource shape.
Here's my example, I have a OSLC-CM Change Request resource that looks
like:
<oslc_cm:ChangeRequest rdf:about="http://example.com/bugs/2314">
<rdf:type rdf:reference="
http://open-services.net/xmlns/cm/2.0#ChangeRequest">
</oslc_cm:ChangeRequest>
Is it required for rdf:type to point to the OSLC defined Type URI? How
do I get to the resource shape of this resource?
I would instead think that we'd want an OSLC Common Property called
"oslc:shape" which points to a gettable OSLC shape resource. Any
objections to adding this? Any need use dc:type here instead (or clarify
how it could be used) ?
Thanks,
Steve Speicher | IBM Rational Software | (919) 254-0645
_______________________________________________
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