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.

OSLC Change Management 2.0 Appendix A: Samples

An appendix of the OSLC Change Management 2.0 Specification

(this document is informative)

Overview

This a collection of various CM resources in a variety of formats to better illustrate their usage. These are samples only and not intended to show every permutation of the various formats.

Service Provider Samples

ServiceProviderCatalog as application/rdf+xml or application/xml

This example shows usage of content type application/rdf+xml or application/xml. When requesting application/rdf+xml you may not assume this same format may be used.

Request

GET /bugs/cat1
Accept: application/rdf+xml
OSLC-Core-Version: 2.0

Response

HTTP/1.1 200 OK
OSLC-Core-Version: 2.0
Content-Type: application/rdf+xml
ETag: "_87e52ce291112"
Content-Length: nnn

<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:oslc="http://open-services.net/ns/core#" 
  xmlns:dcterms="http://purl.org/dc/terms/"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
   <oslc:ServiceProviderCatalog rdf:about="http://example.com/bugs/cat1">
      <dcterms:title>Product Grouping</dcterms:title>
      <dcterms:description>Lists various bug trackers by Product Grouping</dcterms:description>
      <oslc:domain rdf:resource="http://open-services.net/ns/cm#" />
      <dcterms:publisher>
         <oslc:Publisher>
            <dcterms:title>OSLC CM Working Group</dcterms:title>
            <dcterms:identifier>com.example.oslc.cm</dcterms:identifier>
            <oslc:icon rdf:resource="http://example.com/icons/bugs.ico" />
         </oslc:Publisher>
      </dcterms:publisher>
      <oslc:serviceProvider>
         <oslc:ServiceProvider rdf:about="http://example.com/bugs/sp/f">
            <dcterms:title>France region</dcterms:title>
            <oslc:details rdf:resource="http://example.com/bugs/sp/f" />
         </oslc:ServiceProvider>
      </oslc:serviceProvider>
      <oslc:serviceProvider>
         <oslc:ServiceProvider rdf:about="http://example.com/bugs/sp/b">
            <dcterms:title>Brazil region</dcterms:title>
            <oslc:details rdf:resource="http://example.com/bugs/sp/bWeb" />
         </oslc:ServiceProvider>
      </oslc:serviceProvider>
      <oslc:serviceProviderCatalog>
         <oslc:ServiceProviderCatalog rdf:about="http://example.com/bugs/cat2">
            <dcterms:title>Product Grouping - Asia/Pacific</dcterms:title>
            <dcterms:publisher>
               <oslc:Publisher>
                  <dcterms:title>OSLC CM Working Group</dcterms:title>
                  <dcterms:identifier>com.example.oslc.cm</dcterms:identifier>
                  <oslc:icon rdf:resource="http://example.com/icons/bugs.ico" />
               </oslc:Publisher>
            </dcterms:publisher>
            <oslc:serviceProvider>
               <oslc:ServiceProvider rdf:about="http://example.com/sp/a">
                  <dcterms:title>China region</dcterms:title>
                  <oslc:details rdf:resource="http://example.com/sp/a" />
               </oslc:ServiceProvider>
            </oslc:serviceProvider>
         </oslc:ServiceProviderCatalog>
      </oslc:serviceProviderCatalog>
      <oslc:oauthConfiguration>
         <oslc:OAuthConfiguration>
            <oslc:oauthRequestTokenURI rdf:resource="http://example.com/bugs/oauth-request-token" />
            <oslc:authorizationURI rdf:resource="http://example.com/bugs/oauth-authorization" />
            <oslc:oauthAccessTokenURI rdf:resource="http://example.com/bugs/oauth-access-token" />
         </oslc:OAuthConfiguration>
      </oslc:oauthConfiguration>
   </oslc:ServiceProviderCatalog>
</rdf:RDF>

ServiceProvider as application/rdf+xml or application/xml

This example shows usage of content type application/rdf+xml or application/xml. When requesting application/rdf+xml you may not assume this same format may be used.

Request

GET /bugs/sp/b
Accept: application/rdf+xml
OSLC-Core-Version: 2.0

Response

HTTP/1.1 200 OK
OSLC-Core-Version: 2.0
Content-Type: application/rdf+xml
ETag: "_2146ef2d234"
Content-Length: nnn

<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:dcterms="http://purl.org/dc/terms/" xmlns:oslc="http://open-services.net/ns/core#"
   xml:lang="en">

   <oslc:ServiceProvider rdf:about="http://example.com/bugs/sp/b">

      <dcterms:title>Brazil region bug tracker</dcterms:title>
      <dcterms:description>Example OSLC CM Service</dcterms:description>
      <oslc:details rdf:resource="http://example.com/bugs/sp/bWeb" />

      <dcterms:publisher>
         <oslc:Publisher>
            <dcterms:title>OSLC CM Working Group</dcterms:title>
            <dcterms:identifier>com.example.oslc.cm</dcterms:identifier>
            <oslc:icon rdf:resource="http://example.com/icons/bugs.ico" />
         </oslc:Publisher>
      </dcterms:publisher>

      <oslc:prefixDefinition>
         <oslc:PrefixDefinition>
            <oslc:prefix>rdf</oslc:prefix>
            <oslc:prefixBase rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#" />
         </oslc:PrefixDefinition>
      </oslc:prefixDefinition>

      <oslc:prefixDefinition>
         <oslc:PrefixDefinition>
            <oslc:prefix>dcterms</oslc:prefix>
            <oslc:prefixBase rdf:resource="http://purl.org/dc/terms/" />
         </oslc:PrefixDefinition>
      </oslc:prefixDefinition>

      <oslc:prefixDefinition>
         <oslc:PrefixDefinition>
            <oslc:prefix>oslc</oslc:prefix>
            <oslc:prefixBase rdf:resource="http://open-services.net/ns/core#" />
         </oslc:PrefixDefinition>
      </oslc:prefixDefinition>

      <oslc:prefixDefinition>
         <oslc:PrefixDefinition>
            <oslc:prefix>oslc_cm</oslc:prefix>
            <oslc:prefixBase rdf:resource="http://open-services.net/ns/cm#" />
         </oslc:PrefixDefinition>
      </oslc:prefixDefinition>

      <oslc:service>
         <oslc:Service>
            <oslc:domain rdf:resource="http://open-services.net/ns/cm#" />

            <oslc:creationFactory>
               <oslc:CreationFactory>
                  <dcterms:title>Default Bug factory</dcterms:title>
                  <oslc:label>Bug</oslc:label>
                  <oslc:creation rdf:resource="http://example.com/bugs/factory" />
                  <oslc:resourceShape rdf:resource="http://example.com/shapes/bugs" />
                  <oslc:resourceType rdf:resource="http://open-services.net/ns/cm#ChangeRequest" />
                  <oslc:usage rdf:resource="http://open-services.net/ns/core#default" />
                  <oslc:usage rdf:resource="http://open-services.net/ns/cm#defect" />
               </oslc:CreationFactory>
            </oslc:creationFactory>

            <oslc:creationFactory>
               <oslc:CreationFactory>
                  <dcterms:title>Optional factory for Bug Comments</dcterms:title>
                  <oslc:label>Bug Comments</oslc:label>
                  <oslc:creation rdf:resource="http://example.com/bugs/comments" />
                  <oslc:resourceShape rdf:resource="http://example.com/shapes/comments" />
                  <oslc:resourceType rdf:resource="http://open-services.net/ns/core#Comment" />
               </oslc:CreationFactory>
            </oslc:creationFactory>

            <oslc:queryCapability>
               <oslc:QueryCapability>
                  <dcterms:title>Blog Entry and Comment Query</dcterms:title>
                  <oslc:label>blogquery</oslc:label>
                  <oslc:queryBase rdf:resource="http://example.com/query" />
                  <oslc:resourceShape rdf:resource="http://example.com/shapes/blogquery" />
               </oslc:QueryCapability>
            </oslc:queryCapability>

            <oslc:creationDialog>
               <oslc:Dialog>
                  <dcterms:title>New Bug</dcterms:title>
                  <dcterms:description>Web dialog for creating new Bug report</dcterms:description>
                  <oslc:label>Bug</oslc:label>
                  <oslc:dialog rdf:resource="http://example.com/bugs/dialogs/newbug" />
                  <oslc:hintWidth>651px</oslc:hintWidth>
                  <oslc:hintHeight>294px</oslc:hintHeight>
                  <oslc:resourceType rdf:resource="http://open-services.net/ns/cm#ChangeRequest" />
                  <oslc:usage rdf:resource="http://open-services.net/ns/core#default" />
                  <oslc:usage rdf:resource="http://open-services.net/ns/cm#defect" />
               </oslc:Dialog>
            </oslc:creationDialog>

            <oslc:selectionDialog>
               <oslc:Dialog>
                  <dcterms:title>Pick Bug</dcterms:title>
                  <dcterms:description>Web dialog for picking an existing Bug</dcterms:description>
                  <oslc:label>Bug</oslc:label>
                  <oslc:dialog rdf:resource="http://example.com/bugs/dialogs/pickbug" />
                  <oslc:hintWidth>500px</oslc:hintWidth>
                  <oslc:hintHeight>250px</oslc:hintHeight>
                  <oslc:resourceType rdf:resource="http://open-services.net/ns/cm#ChangeRequest" />
                  <oslc:usage rdf:resource="http://open-services.net/ns/core#default" />
                  <oslc:usage rdf:resource="http://open-services.net/ns/cm#defect" />
               </oslc:Dialog>
            </oslc:selectionDialog>

         </oslc:Service>
      </oslc:service>

   </oslc:ServiceProvider>
</rdf:RDF>

ChangeRequest Samples

Request with no parameters as application/rdf+xml or application/xml

This is a simple ChangeRequest resource who's request format is identified as application/xml. This example is also a valid application/rdf+xml response format, though when receiving application/rdf+xml the consumer should make no assumptions about the format.

Request

GET /bugs/2314
Accept: application/xml
OSLC-Core-Version: 2.0

Response

HTTP/1.1 200 OK
OSLC-Core-Version: 2.0
Content-Type: application/xml
ETag: "_172190-a702b13"
Content-Length: nnn

<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:dcterms="http://purl.org/dc/terms/" xmlns:oslc="http://open-services.net/ns/core#"
   xmlns:oslc_cm="http://open-services.net/ns/cm#" xmlns:ex="http://example.com/bugtracker">

   <oslc_cm:ChangeRequest rdf:about="http://example.com/bugs/2314">
     <rdf:type rdf:resource="http://open-services.net/ns/cm#ChangeRequest" />
      <dcterms:identifier> 00002314 </dcterms:identifier>
      <oslc:shortTitle>Bug 2314</oslc:shortTitle>
      <dcterms:title> Invalid installation instructions </dcterms:title>
      <dcterms:type> Defect </dcterms:type>
      <oslc:instanceShape rdf:resource="http://example.com/shapes/defect" />
      <dcterms:description>
         Invalid installation instructions indicating invalid patches to be applied.
      </dcterms:description>
      <dcterms:subject> doc </dcterms:subject>
      <dcterms:subject> install </dcterms:subject>
      <dcterms:creator rdf:resource="http://myserver/mycmapp/users/joe" />
      <dcterms:contributor rdf:resource="http://myserver/mycmapp/users/bob" />
      <dcterms:modified> 2008-09-16T08:42:11.265Z </dcterms:modified>
      <dcterms:created> 2008-07-04T11:00:00.000Z </dcterms:created>
      <oslc_cm:status> InProgress </oslc_cm:status>
      <oslc:discussedBy rdf:resource="http://example.com/bugs/2314/discussion" />
      <oslc_cm:relatedChangeRequest
         rdf:resource="http://myserver/mycmapp/bugs/1235" />
      <oslc_cm:relatedChangeRequest
         rdf:resource="http://remoteserver/mycmapp/defects/abc123" />
      <oslc_cm:tracksRequirement rdf:resource="http://myserver/reqtool/req/34ef31af" />
      <oslc_cm:tracksRequirement rdf:resource="http://remoteserver/reqrepo/project1/req456" />
      <!-- Servicer provider specific properties -->
      <ex:priority> Medium </ex:priority>
      <ex:severity> Normal </ex:severity>
   </oslc_cm:ChangeRequest>
</rdf:RDF>

Request with no parameters as JSON

This is a simple ChangeRequest resource who's format could be identified as application/json.

Request

GET /bugs/2314
Accept: application/json
OSLC-Core-Version: 2.0

Response

HTTP/1.1 200 OK
OSLC-Core-Version: 2.0
Content-Type: application/json
ETag: "_172190-a702b13"
Content-Length: nnn

{
  "prefixes" : {
    "dcterms" : "http://purl.org/dc/terms/",
    "oslc"     : "http://open-services.net/ns/core#",
    "oslc_cm" : "http://open-services.net/ns/cm#",
    "ex"       : "http://example.com/bugtracker"
  },
  "rdf:about"           : "http://example.com/bugs/2314",
  "rdf:type" : [{
    "rdf:resource" : "http://open-services.net/ns/cm#ChangeRequest"
  }],
  "dcterms:identifier"  : "00002314",
  "oslc:shortTitle"     : "Bug 2314",
  "dcterms:title"       : "Invalid installation instructions",
  "dcterms:type"        : "Defect",
  "oslc:instanceShape" : {
    "rdf:resource" : "http://example.com/shapes/defect"
  },
  "dcterms:description" : "Invalid installation instructions indicating invalid patches to be applied.",
  "dcterms:subject" : ["doc", "install"],
  "dcterms:creator" : [{
    "rdf:resource" : "http://myserver/mycmapp/users/joe"
  }],
  "dcterms:contributor" : [{
    "rdf:resource" : "http://myserver/mycmapp/users/bob"
  }],
  "dcterms:modified" : "2008-09-16T08:42:11.265Z",
  "dcterms:created" : "2008-07-04T11:00:00.000Z",
  "oslc_cm:status" : "InProgress",
  "oslc:discussedBy" : {
    "rdf:resource" : "http://example.com/bugs/2314/discussion"
  },
  "oslc_cm:relatedChangeRequest" : [{
    "rdf:resource" : "http://myserver/mycmapp/bugs/1235"
  },
  {  "rdf:resource" : "http://remoteserver/mycmapp/defects/abc123"
  }],
  "oslc_cm:tracksRequirement" : [{
    "rdf:resource" : "http://myserver/reqtool/req/34ef31af"
  },
  { "rdf:resource" : "http://remoteserver/reqrepo/project1/req456"
  }],
  "ex:priority" : "Medium",
  "ex:severity" : "Normal"
}

Request with no parameters as Turtle

This is a simple ChangeRequest resource who's format could be identified as text/turtle.

Request

GET /bugs/2314
Accept: text/turtle
OSLC-Core-Version: 2.0

Response

HTTP/1.1 200 OK
OSLC-Core-Version: 2.0
Content-Type: text/turtle
ETag: "_172190-a702b13"
Content-Length: nnn

@prefix ex: <http://example.com/bugtracker> .
@prefix oslc: <http://open-services.net/ns/core#> .
@prefix oslc_cm: <http://open-services.net/ns/cm#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix dcterms: <http://purl.org/dc/terms/> .

<http://example.com/bugs/2314>
   a oslc_cm:ChangeRequest ;
   dcterms:identifier " 00002314 " ;
   oslc:shortTitle "Bug 2314" ;
   dcterms:title " Invalid installation instructions " ;
   dcterms:type " Defect " ;
   oslc:instanceShape <http://example.com/shapes/defect> ;
   dcterms:description "Invalid installation instructions indicating invalid patches to be applied." ;
   dcterms:subject " doc " ,
      " install " ;
   dcterms:creator <http://myserver/mycmapp/users/joe> ;
   dcterms:contributor <http://myserver/mycmapp/users/bob> ;
   dcterms:modified " 2008-09-16T08:42:11.265Z " ;
   dcterms:created " 2008-07-04T11:00:00.000Z " ;
   oslc_cm:status " InProgress " ;
   oslc:discussedBy <http://example.com/bugs/2314/discussion> ;
   oslc_cm:relatedChangeRequest <http://myserver/mycmapp/bugs/1235> ,
      <http://remoteserver/mycmapp/defects/abc123> ;
   oslc_cm:tracksRequirement <http://myserver/reqtool/req/34ef31af> ,
      <http://remoteserver/reqrepo/project1/req456> ;
   ex:priority " Medium " ;
   ex:severity " Normal " .

Query results as application/rdf+xml or application/xml

Note this example shows usage of content type application/rdf+xml or application/xml. When using application/rdf+xml consumers should not make any assumptions about the format of the RDF/XML.

Simple

Returns 5 results, no paging and no request for inline/selected properties. There is no associated query resource shape definition.

Request

GET /query?oslc.where=oslc_cm.inprogress=true
Accept: application/rdf+xml
OSLC-Core-Version: 2.0

Response

HTTP/1.1 200 OK
OSLC-Core-Version: 2.0
Content-Type: application/rdf+xml
ETag: "_a729e62bd4"
Content-Length: nnn

<rdf:RDF      
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
   xmlns:dcterms="http://purl.org/dc/terms/"
   xmlns:oslc="http://open-services.net/ns/core#">

     <oslc:ResponseInfo rdf:about="http://example.com/query?oslc.where=oslc_cm.inprogress=true">
         <dcterms:title>Bug query service</dcterms:title>
     </oslc:ResponseInfo>
    
     <rdf:Description rdf:about="http://example.com/query">
        <rdfs:member rdf:resource="http://example.com/bugs/5" />
        <rdfs:member rdf:resource="http://example.com/bugs/4" />
        <rdfs:member rdf:resource="http://example.com/bugs/1" />
        <rdfs:member rdf:resource="http://example.com/bugs/2" />
        <rdfs:member rdf:resource="http://example.com/bugs/3" />
     </rdf:Description>
</rdf:RDF>

With oslc.select

Returns 5 results, no paging and request for inline/selected properties.

Request

GET /query?oslc.where=oslc_cm.inprogress=true&oslc.select=dcterms:title
Accept: application/rdf+xml
OSLC-Core-Version: 2.0

Response

HTTP/1.1 200 OK
OSLC-Core-Version: 2.0
Content-Type: application/rdf+xml
ETag: "_a729e62bd3"
Content-Length: nnn

<rdf:RDF      
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
   xmlns:dcterms="http://purl.org/dc/terms/"
   xmlns:oslc_cm="http://open-services.net/ns/cm#"
   xmlns:oslc="http://open-services.net/ns/core#">

     <oslc:ResponseInfo rdf:about="http://example.com/query?oslc.where=oslc_cm.inprogress=true&amp;oslc.select=dcterms:title">
         <dcterms:title>Bug query service</dcterms:title>
     </oslc:ResponseInfo>
    
     <rdf:Description rdf:about="http://example.com/query">
        <rdfs:member>
           <oslc_cm:ChangeRequest rdf:about="http://example.com/bugs/5">
             <dcterms:title>Error in install instructions</dcterms:title>
           </oslc_cm:ChangeRequest>
        </rdfs:member>
        <rdfs:member>
           <oslc_cm:ChangeRequest rdf:about="http://example.com/bugs/4">
             <dcterms:title>Help showing in wrong language</dcterms:title>
           </oslc_cm:ChangeRequest>
        </rdfs:member>
        <rdfs:member>
           <oslc_cm:ChangeRequest rdf:about="http://example.com/bugs/1">
             <dcterms:title>Fix misplelings in help</dcterms:title>
           </oslc_cm:ChangeRequest>
        </rdfs:member>
        <rdfs:member>
           <oslc_cm:ChangeRequest rdf:about="http://example.com/bugs/2">
             <dcterms:title>Define all acronyms in help</dcterms:title>
           </oslc_cm:ChangeRequest>
        </rdfs:member>
        <rdfs:member>
           <oslc_cm:ChangeRequest rdf:about="http://example.com/bugs/3">
             <dcterms:title>Remove references to invalid references</dcterms:title>
           </oslc_cm:ChangeRequest>
        </rdfs:member>
     </rdf:Description>
</rdf:RDF>

Query results as application/json

Note this example shows usage of content type application/json

Simple

Returns 5 results, no paging and no request for inline/selected properties. There is no associated query resource shape definition.

Request

GET /query?oslc.where=oslc_cm.inprogress=true
Accept: application/json
OSLC-Core-Version: 2.0

Response

HTTP/1.1 200 OK
OSLC-Core-Version: 2.0
Content-Type: application/json
ETag: "_e279ba32"
Content-Length: nnn

{
   "prefixes" : {
      "oslc": "http://open-services.net/ns/core#",
      "oslc_cm" : "http://open-services.net/ns/cm#",
      "rdf" : "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
      "dcterms" : "http://purl.org/dc/terms/"
   },
   "rdf:about" : "http://example.com/query",
   "oslc:responseInfo" : {
      "dcterms:title" : "Bug Service Query Results", 
      "rdf:about" : "http://example.com/query?oslc.where=oslc_cm.inprogress=true",
      "rdf:type" : [ { "rdf:resource" : "http://open-services.net/ns/core#ResponseInfo" } ]
   }, 
   "oslc:results" : [
      { "rdf:resource" : "http://example.com/bugs/5" },
      { "rdf:resource" : "http://example.com/bugs/4" },
      { "rdf:resource" : "http://example.com/bugs/1" },
      { "rdf:resource" : "http://example.com/bugs/2" },
      { "rdf:resource" : "http://example.com/bugs/3" 
   }]
}

Query results as application/atom+xml

Note this example shows usage of content type application/atom+xml

Simple

Returns 5 results, no paging and no request for inline/selected properties. There is no associated query resource shape definition.

Click HERE to see Atom Syndication Format validation.

Request

GET /query?oslc.where=oslc_cm.inprogress%3Dtrue
Accept: application/atom+xml
OSLC-Core-Version: 2.0

Response 1 (with referenced application/rdf+xml content)

HTTP/1.1 200 OK
OSLC-Core-Version: 2.0
Content-Type: application/atom+xml
ETag: "_d32348ef2"
Content-Length: nnn

<feed 
   xmlns="http://www.w3.org/2005/Atom"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:dcterms="http://purl.org/dc/terms/"
   xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
   xmlns:foaf="http://xmlns.com/foaf/0.1/"
   xmlns:oslc_cm="http://open-services.net/ns/cm#"
   xmlns:oslc="http://open-services.net/ns/core#">

<id>http://example.com/query?oslc.where=oslc...</id>
<title>Bug query service</title>
<updated>2009-10-10T12:00:00-05:00</updated>
<author><name>Bug Service</name></author>

<link rel="self" 
   href="http://example.com/query?oslc.where=oslc_cm.inprogress%3Dtrue" /> 

<entry> 
   <id>http://example.com/bugs/5</id>
   <title>Bug 5</title>
   <updated>2009-10-10T12:00:00-05:00</updated>
   <summary>Link to matching resource</summary>
   <content type="application/rdf+xml" src="http://example.com/bugs/5" />
</entry>
<entry> 
   <id>http://example.com/bugs/4</id>
   <title>Bug 4</title>
   <updated>2009-10-10T12:00:00-04:45</updated>
   <summary>Link to matching resource</summary>
   <content type="application/rdf+xml" src="http://example.com/bugs/4" />
</entry>
<entry> 
   <id>http://example.com/bugs/1</id>
   <title>Bug 1</title>
   <updated>2009-10-10T12:00:00-04:37</updated>
   <summary>Link to matching resource</summary>
   <content type="application/rdf+xml" src="http://example.com/bugs/1" />
</entry>
<entry> 
   <id>http://example.com/bugs/2</id>
   <title>Bug 2</title>
   <updated>2009-10-10T12:00:00-04:20</updated>
   <summary>Link to matching resource</summary>
   <content type="application/rdf+xml" src="http://example.com/bugs/2" />
</entry>
<entry> 
   <id>http://example.com/bugs/3</id>
   <title>Bug 3</title>
   <updated>2009-10-10T12:00:00-04:07</updated>
   <summary>Link to matching resource</summary>
   <content type="application/rdf+xml" src="http://example.com/bugs/3" />
</entry>
</feed>

Response 2 (with embedded application/rdf+xml content)

Click HERE to see Atom Syndication Format validation.

HTTP/1.1 200 OK
OSLC-Core-Version: 2.0
Content-Type: application/atom+xml
ETag: "_d32348ef2"
Content-Length: nnn

<feed 
   xmlns="http://www.w3.org/2005/Atom"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:dcterms="http://purl.org/dc/terms/"
   xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
   xmlns:foaf="http://xmlns.com/foaf/0.1/"
   xmlns:oslc_cm="http://open-services.net/ns/cm#"
   xmlns:oslc="http://open-services.net/ns/core#">

<id>http://example.com/query?oslc.where=oslc_cm.inprogress%3Dtrue</id> 
<title>Bug query service</title>
<updated>2009-10-10T12:00:00-05:00</updated>
<author><name>Bug Service</name></author>

<link rel="self" 
   href="http://example.com/query?oslc.where=oslc_cm.inprogress%3Dtrue" /> 

<entry> 
   <id>http://example.com/bugs/5</id>
   <title>Bug 5</title>
   <updated>2009-10-10T12:00:00-05:00</updated>
   <content type="application/rdf+xml"> 
      <rdf:RDF>
       <rdf:Description rdf:about="http://example.com/query">
          <rdfs:member rdf:resource="http://example.com/bugs/5" />
       </rdf:Description>
     </rdf:RDF>
   </content>
</entry>
<entry> 
   <id>http://example.com/bugs/4</id>
   <title>Bug 4</title>
   <updated>2009-10-10T12:00:00-04:49</updated>
   <content type="application/rdf+xml"> 
      <rdf:RDF>
       <rdf:Description rdf:about="http://example.com/query">
          <rdfs:member rdf:resource="http://example.com/bugs/4" />
       </rdf:Description>
     </rdf:RDF>
   </content>
</entry>
<entry> 
   <id>http://example.com/bugs/3</id>
   <title>Bug 1</title>
   <updated>2009-10-10T12:00:00-04:37</updated>
   <content type="application/rdf+xml"> 
      <rdf:RDF>
       <rdf:Description rdf:about="http://example.com/query">
          <rdfs:member rdf:resource="http://example.com/bugs/1" />
       </rdf:Description>
     </rdf:RDF>
   </content>
</entry>
<entry> 
   <id>http://example.com/bugs/2</id>
   <title>Bug 2</title>
   <updated>2009-10-10T12:00:00-04:23</updated>
   <content type="application/rdf+xml"> 
      <rdf:RDF>
       <rdf:Description rdf:about="http://example.com/query">
          <rdfs:member rdf:resource="http://example.com/bugs/2" />
       </rdf:Description>
     </rdf:RDF>
   </content>
</entry>
<entry> 
   <id>http://example.com/bugs/3</id>
   <title>Bug 3</title>
   <updated>2009-10-10T12:00:00-04:20</updated>
   <content type="application/rdf+xml"> 
      <rdf:RDF>
       <rdf:Description rdf:about="http://example.com/query">
          <rdfs:member rdf:resource="http://example.com/bugs/3" />
       </rdf:Description>
     </rdf:RDF>
   </content>
</entry>
</feed>
Topic attachments
I Attachment Action Size Date Who Comment
xmlxml atom-cm-example-1.xml manage 1.8 K 23 Nov 2010 - 14:26 DaveJohnson  
xmlxml atom-cm-example-2.xml manage 2.4 K 22 Nov 2010 - 22:53 DaveJohnson  
Topic revision: r22 - 02 Dec 2011 - 16:30:34 - SteveSpeicher
 
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