[oslc-core] Using OSLC Resource Shapes

Ian Green1 ian.green at uk.ibm.com
Thu Oct 27 04:10:40 EDT 2011


Hello Parham,

The RmSpecificationV2Shapes page to which you refer is in error. I've 
fixed this page so that each oslc:Property has exactly one oslc:valueType, 
as required.  (I created an entry in the issue page at [1].)

On your other point concerning expressing the Ecore model in RDF.  In 
general, this is not possible since Ecore and RDF have different 
expressive powers.  The additional meaning that OSLC Resource Shape brings 
(in addition to RDF) is not adequate either, as your example illustrates.

best wishes,
    -ian

[1] http://open-services.net/bin/view/Main/RmSpecificationV2Issues

ian.green at uk.ibm.com (Ian Green1/UK/IBM at IBMGB)
Chief Software Architect, Requirements Definition and Management
IBM Rational



From:
"Vasaiely, Parham" <parham.vasaiely at eads.com>
To:
<oslc-core at open-services.net>
Date:
26/10/2011 17:17
Subject:
[oslc-core] Using OSLC Resource Shapes
Sent by:
oslc-core-bounces at open-services.net



Hi all,
 
We are trying to implement OSCL in an existing project by defining first 
ResourceShapes to represent an existing MetaModel (Ecore).
 
We are facing now the following problem:
1)
By trying to specify a property for a Resource with multiple possible 
types (oslc:range) the ResourceShape Spec. denies the specification of 
multiple Shapes for the resource. However, since our property can have the 
type FormalAssertion and InformalAssertion it should provide different 
shapes. Is our statement correct?
 
<oslc:Property>
<oslc:name>weakAssumption</oslc:name>
<oslc:propertyDefinition rdf:resource="
http://www.sample.eu/rtp/2.0/CMM/OSLC/attributeDefinitions/weakAssumption" 
/>
                                <dcterms:title 
rdf:parseType="Literal">weakAssumption</dcterms:title>
<dcterms:description 
rdf:parseType="Literal">CMM.Requirements.SystemRequirement.weakAssumption</dcterms:description>
                                <oslc:representation rdf:resource="
http://open-services.net/ns/core#Reference" />
                                <oslc:valueType rdf:resource="
http://open-services.net/ns/core#Resource" />
                                <oslc:valueShape rdf:resource="
http://www.sample.eu/rtp/2.0/CMM/OSLC/shapes/Assertion" />
                                <oslc:range rdf:resource="
http://www.sample.eu/rtp/2.0/CMM/OSLC/types/FormalAssertion" />
                                <oslc:range rdf:resource="
http://www.sample.eu/rtp/2.0/CMM/OSLC/types/InformalAssertion" />
                                <oslc:occurs rdf:resource="
http://open-service.net/ns/core#Zero-or-many" />
</oslc:Property>
</oslc:property>
 
2)
In the example shape provided by at 
http://open-services.net/bin/view/Main/RmSpecificationV2Shapes one can see 
that the property description has two value-types. However the shape spec. 
is defining that a property must have exactly one value-type. But the core 
also allows multiple types for a property as you can see in the part 
“Defining OSLC Properties: Value-types: A property MAY allow multiple 
value-types and a value MUST satisfy one of them…”
 
Is there something we have missed in the specification? 
Can we specify a property shape like the one below?
 
<oslc:property>
                <oslc:Property>
                                <oslc:name>description</oslc:name>
                                <oslc:propertyDefinition rdf:resource="
http://purl.org/dc/terms/description" />
                                <dcterms:title 
rdf:parseType="Literal">Description
                                </dcterms:title>
                                <dcterms:description 
rdf:parseType="Literal">CMM.NamedElement.comment</dcterms:description>
                                <!-- Use XMLLiteral String Representation 
-->
                                <oslc:valueType rdf:resource="
http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral" />
                                <!-- Zero-or-one defined by RMv2Spec -->
                                <oslc:occurs rdf:resource="
http://open-service.net/ns/core#Zero-or-many" />
                </oslc:Property>
</oslc:property>
 
Many thanks!
 
Kind Regards,
Parham Vasaiely
---------------------------------------------------------------------------------------
EADS Innovation Works
Engineering & Architecture, Software and Systems Engineering

Quadrant Campus, Celtic Springs, Cleppa Park, Coedkernew, Newport, NP10 
8FZ
Phone: + 44 1633 71 4588
Mobile UK: + 44 7851 194277
Mobile GER: + 49 176 2121 4203
parham.vasaiely at eads.com
 _______________________________________________
Oslc-Core mailing list
Oslc-Core at open-services.net
http://open-services.net/mailman/listinfo/oslc-core_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-core_open-services.net/attachments/20111027/a9e390fe/attachment-0003.html>


More information about the Oslc-Core mailing list