[OSLC-Configuration] Clarification needed for VersionedResource and ConceptResource

David Honey david.honey at uk.ibm.com
Tue Feb 18 10:47:03 EST 2014


Hi Wilma,

The representation intentionally represents properties and artifact links 
using a subject URI that is of the concept resource and not a versioned 
resource. So if you ask the question, what is the color of 
conceptResourceA, you get two answers - one says "blue", the other says 
"red". It is the graph URI that tells you that version 23 of that concept 
resource is "blue" and that version 17 is "red". So if you want to know 
version specific information in the results of a sparql query, you should 
use a GRAPH ?graph {...} construct in the query.

Best regards,
David.




From:   Jun Li Wang <wangjunl at cn.ibm.com>
To:     oslc-configuration at open-services.net, 
Date:   2014-02-18 15:32
Subject:        [OSLC-Configuration] Clarification needed for 
VersionedResource and   ConceptResource
Sent by:        "Oslc-Configuration" 
<oslc-configuration-bounces at open-services.net>



Hi folks, I have a question about VersionedResource and ConceptResource
http://open-services.net/wiki/configuration-management/Configuration-Management-Resource-Definitions/#Concept-resources-and-version-resources

gives an example of 2 VersionedResource

 :conceptResourceA-version23
       dcterms:isVersionOf :conceptResourceA .
   :conceptResourceA
       a :someType ;
       dcterms:title "Concept Resource A" ;
       :color "blue" ;
       dcterms:description "Concept resource A as it appears in the state 
with the URI :conceptResourceA-version23" .

:conceptResourceA-version17
       dcterms:isVersionOf :conceptResourceA .
   :conceptResourceA
       a :someType ;
       dcterms:title "Concept Resource A" ;
       :color "red" ;
       dcterms:description "Concept resource A as it appears in the state 
with the URI :conceptResourceA-version17" .


the predicate :color in "Concept Resource A" has different value, does 
that mean these 2 "Concept Resource A" are different or the 2 versioned 
resources are different?
My understanding is if the 2 versioned resources have different color, the 
predicate :color should belong to the versioned resource not the concept 
resource, the rdf presentation should look like 

 :conceptResourceA-version23
       dcterms:isVersionOf :conceptResourceA ;
 dcterms:title "Versioned Resource Version 23" ;
 :color "blue".
   :conceptResourceA
       a :someType ;
       dcterms:title "Concept Resource A" ;
       :color "blue" ;
       dcterms:description "Concept resource A as it appears in the state 
with the URI :conceptResourceA-version23" .

:conceptResourceA-version17
       dcterms:isVersionOf :conceptResourceA ;
 dcterms:title "Versioned Resource Version 17" ;
 :color "red" . 
   :conceptResourceA
       a :someType ;
       dcterms:title "Concept Resource A" ;
       :color "blue" ;
       dcterms:description "Concept resource A as it appears in the state 
with the URI :conceptResourceA-version17" .


VersionedResource should have a full set of predicates no matter they are 
the same or different with related ConceptResource. 
Is my understanding correct? 
Appreciate your clarification!


Best regards, 
Wilma Wang(王君丽)

Rational Quality Manager,
IBM China Software Development Lab, Beijing
Tel: 86-10-82453980
Tie line: 9053980
Cellphone: 13641387399
E-mail: wangjunl at cn.ibm.com_______________________________________________
Oslc-Configuration mailing list
Oslc-Configuration at open-services.net
http://open-services.net/mailman/listinfo/oslc-configuration_open-services.net



Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://open-services.net/pipermail/oslc-configuration_open-services.net/attachments/20140218/8e8e9058/attachment-0003.html>


More information about the Oslc-Configuration mailing list