This wiki is locked. Future workgroup activity and specification development must take place at our new wiki. For more information, see this blog post about the new governance model and this post about changes to the website.

Traceable Resource Definition

In this specification we refer to the RDF model as the canonical definition of the resource, and speak in terms of the vocabularies that are of interest in these models. RDF/XML will be used to illustrate examples since that is one of the supported representation formats required by this specification.

Namespaces

This specification is giving a description of the " http://open-services.net/xmlns/oslc/common/1.0/" namespace by describing the meaning of the terms of that namespace and the way in which those terms are to be use with the terms of other vocabularies in order to describe a requirement. We will abbreviate this namespace to "oslc_rm" and will typically use that as a XML namespace prefix in RDF/XML documents. Other namespaces are also references as part of this specification:

Traceable Resource

A traceable resource is a resource having rdf:type "oslc:TraceableResource". The following table describes the RDF properties whose meaning is defined by this specification:

Property Required on Read Required on Write Read-only Represents
dc:title Yes Yes No The title of the resource.
dc:description Yes Yes No A description of the resource.
dc:creator No No Yes The entity that created the resource. The value of this element is free form text, or may a FOAF Person element. If the entity has a URI it should be represented as a rdf:resource attribute of this element.
dc:contributor No No Yes The entity that last modified the resource. The value of this element is free form text, or may a FOAF Person element. If the entity has a URI it should be represented as a rdf:resource attribute of this element.
dc:created Yes No Yes Date of creation of the resource. Can be expressed as free form text, or in a standard form. When in a form that can be automated, the rdf:datatype attribute with a public date time URI should be present to assist the client in parsing the value (i.e. http://www.w3.org/2001/XMLSchema#dateTime).
dc:modified Yes No Yes Date of the last modification of the resource. Can be expressed as free form text, or in a standard form. When in a form that can be automated, the rdf:datatype attribute with a public date time URI should be present to assist the client in parsing the value (i.e. http://www.w3.org/2001/XMLSchema#dateTime).
oslc:associatedLinks Yes No Yes Collection resource for traceability links associated with this resource.

Properties from other vocabularies may be present in the representation of an <oslc:TraceableResource/> element, but the meaning of those properties is not defined by this specification. The dc:description and dc:title are provided inline (by an RDF literal value) and MAY contain XHTML markup, indicated by rdf:parseType="Literal" on the RDF property element. This XHTML markup, if present, MUST be valid XHTML and MUST be wholly contained within a single XHTML div element.

A GET on the links resource fetches a collection of all links whose source is that requirement, and a POST is used to create new links whose source is that requirement. More information on link collections can be found in the Link resource? .

The media type for such representations MUST be "x-oslc-rdm-requirement-1.0+xml", which is an RDF/XML representation of a requirement resource.

Example Traceable in RDF/XML representation

Here is an example showing the RDF/XML of a requirement. Notice that properties from other vocabularies are present in this representation. In this example, the dc:description is provided inline as plain text; the dc:title contains some XHTML markup and is modelled by an XML Literal in the RDF.
GET http://rrc.example.com/requirements/24
with Accept header application/x-oslc-rdm-requirement-1.0+xml

<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:oslc_rm="http://open-services.net/xmlns/rm/1.0/"
    xmlns:calm="http://jazz.net/xmlns/prod/jazz/calm/1.0/"
    xmlns:acme="http://acme.example.com/xmlns/"
    xmlns:dc="http://purl.org/dc/terms/">

    <oslc:Traceable rdf:about="http://rrc.example.com/requirements/24">
        <dc:creator>Ian Green</dc:creator>
        <dc:created>17 July 1900</dc:created>
        <dc:modified>1 August 2009</dc:modified>
        <dc:title rdf:parseType="Literal">
          <xhtml:div xmlns:xhtml="http://http://www.w3.org/1999/xhtml">
           Signal frequency <xhtml:b>triggering</xhtml:b> shall be modulation-exempt
          </xhtml:div>
        </dc:title>
        <dc:description>Signal frequency triggering shall be compliant with ISO-7488-II Part 4.</dc:description>        
        <oslc_rm:links rdf:resource="http://rrc.example.com/requirements/24/linkCollection" />

        <!-- Some properties whose meaning is not defined by OSLC RM -->
        <acme:processLinkage rdf:resource="urn:process-id:6363" />
        <calm:implementedByCollection
             rdf:resource="http://rrc.example.com/requirements/24/implementedByCollection" />             
        <calm:validatedByCollection
            rdf:resource="http://rrc.example.com/requirements/24/validatedByCollection" />
    </oslc:Traceable>
</rdf:RDF>
Topic revision: r1 - 03 Nov 2009 - 15:44:06 - IanGreen
 
This site is powered by the TWiki collaboration platform Copyright � by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Contributions are governed by our Terms of Use
Ideas, requests, problems regarding this site? Send feedback