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.

Purpose

This specification describes how the XML format is used to represent OSLC resources and collection of resources.

Notation and Conventions

The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in this document are to be interpreted as described in RFC2119. Domain name examples use RFC2606.

Terminology

TBD

Intro

Overall Structure

The XML format follows these RDF conventions so that it can be parsed by RDF-XML parsers:

  • rdf.about on root element (which references itself),
  • instead of the "href" attribute the "rdf.resource" attribute is used,
  • when inlining resources, an intermediate "Type" attribute is introduced.

Collections

Collections of resources like the result set returned from a query are represented as an JSON array of JSON dictionaries. To allow for the next and previous links used in paged query result, the array is embedded in one additional JSON dictionary.

Examples

The following examples were produced by RTC 2.0 M3D1? . The corresponding JSON version is shown at the bottom of this page? .

This example shows a non-inlined RTC work item in XML format.

For the second example inlining was requested for all first level reference attributes.

-- AndreWeinand - 24 Mar 2009

Topic attachments
I Attachment Action Size Date Who Comment
xmlxml workitem-1level.xml manage 5.3 K 24 Mar 2009 - 16:00 AndreWeinand  
xmlxml workitem-2levels.xml manage 12.5 K 24 Mar 2009 - 16:00 AndreWeinand  
Edit | Attach | Print version | History: r9 | r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r5 - 15 Apr 2009 - 12:09:40 - AndreWeinand
Main.CmXmlFormat moved from Main.XmlFormat on 24 Mar 2009 - 18:31 by SteveSpeicher - put it back
 
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