[OSLC-Configuration] What should the rdf resouce response <rdf:about> URI be when responding to GET on versionedResourceURI

Jing Qian jqian at us.ibm.com
Fri May 30 11:08:18 EDT 2014



Hi,

If I'm trying to do a GET on a concept resource URI with a configuration
context.
	<conceptURL>?oslc.configuration=<globalConfigURL>

for example:
https://rqmple2.rtp.raleigh.ibm.com:9443/rm/resources/_69CXguBIEeOyRtgLWFJxJg?oslc.configuration=https://rqmple2.rtp.raleigh.ibm.com:9443/vvc/globalConfigurations/8

request Headers:
	accept=application/rdf+xml
	OSLC-Core-Version=2.0


I want to clarify what URI should be used as <rdf:about> subject for RDF
statement,
Should it be concept URI or versioned URI?

As I found the following from the spec language, based on this.  Seems the
recommended way would be using the concept URI, as it would be more
consistent within the OSLC domain.


   A GET on the URI of a concept resource resolves that URI to an
   appropriate state of (version of) that concept resource for the
   appropriate configuration context (see later). The returned resource may
   contain RDF statements about both the version resource and the concept
   resource; most statements should use the concept resource as the
   subject, because a version resource reflects the state of (properties
   of) the concept resource as it appeared at some time. Using the concept
   resource URI as the subject of RDF statements is more consistent with
   the handling of non-versioned resources; using the versioned resource
   URI as the subject of RDF statements requires more client knowledge of
   versioning.


The following is an example RDF response for the GET on concept URI with
configuration context <conceptURL>?oslc.configuration=<globalConfigURL>

<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:dc="http://purl.org/dc/terms/"
    xmlns:public_rm_10="http://www.ibm.com/xmlns/rm/public/1.0/"
    xmlns:calm="http://jazz.net/xmlns/prod/jazz/calm/1.0/"
    xmlns:rm="http://www.ibm.com/xmlns/rdm/rdf/"
    xmlns:jazz_rm="http://jazz.net/ns/rm#"
    xmlns:acp="http://jazz.net/ns/acp#"
    xmlns:rm_property="https://rqmple2.rtp.raleigh.ibm.com:9443/rm/types/"
    xmlns:oslc="http://open-services.net/ns/core#"
    xmlns:nav="http://jazz.net/ns/rm/navigation#"
    xmlns:oslc_rm="http://open-services.net/ns/rm#" >
  <rdf:Description rdf:about="
https://rqmple2.rtp.raleigh.ibm.com:9443/rm/resources/_69CXguBIEeOyRtgLWFJxJg?oslc.configuration=https%3A%2F%2Frqmple2.rtp.raleigh.ibm.com%3A9443%2Fvvc%2FglobalConfigurations%2F8
">
    <rm_property:_iJ3MEuA4EeOyRtgLWFJxJg rdf:resource="
https://rqmple2.rtp.raleigh.ibm.com:9443/rm/types/_h6XXgeA4EeOyRtgLWFJxJg#b83f7b68-e1dc-445a-811d-e3cd6d5449fd
"/>
    <nav:parent rdf:resource="
https://rqmple2.rtp.raleigh.ibm.com:9443/rm/folders/_ynuSYuBIEeOyRtgLWFJxJg
"/>
    <oslc:instanceShape rdf:resource="
https://rqmple2.rtp.raleigh.ibm.com:9443/rm/types/_idiV-OA4EeOyRtgLWFJxJg
"/>
    <dc:contributor rdf:resource="
https://rqmple2.rtp.raleigh.ibm.com:9443/jts/users/qmuser"/>
    <dc:identifier rdf:datatype="http://www.w3.org/2001/XMLSchema#string
">18</dc:identifier>
    <dc:title rdf:parseType="Literal">req2_onlyWS2</dc:title>
    <dc:created rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime
">2014-05-20T18:02:34.983Z</dc:created>
    <dc:description rdf:parseType="Literal"></dc:description>
    <rdf:type rdf:resource="http://open-services.net/ns/rm#Requirement"/>
    <dc:creator rdf:resource="
https://rqmple2.rtp.raleigh.ibm.com:9443/jts/users/qmuser"/>
    <dc:modified rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime
">2014-05-20T18:02:34.983Z</dc:modified>
    <acp:accessControl rdf:resource="
https://rqmple2.rtp.raleigh.ibm.com:9443/rm/accessControl/_glufwuA4EeOyRtgLWFJxJg
"/>
    <jazz_rm:primaryText rdf:parseType="Literal"><div xmlns="
http://www.w3.org/1999/xhtml">
<p>req2 only in WS2</p>
</div></jazz_rm:primaryText>
    <rdf:type rdf:resource="http://jazz.net/ns/rm#Text"/>
    <oslc:serviceProvider rdf:resource="
https://rqmple2.rtp.raleigh.ibm.com:9443/rm/oslc_rm/_glufwuA4EeOyRtgLWFJxJg/services.xml
"/>
  </rdf:Description>
</rdf:RDF>

Jing J. Qian

Development, Rational Quality Manager
Rational Software
IBM Software Group
4205 S. Miami Blvd.
Durham, NC 27703

Tel: 919-254-9455 T/L: 444-9455
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://open-services.net/pipermail/oslc-configuration_open-services.net/attachments/20140530/18f4df11/attachment-0003.html>


More information about the Oslc-Configuration mailing list