Content-Type
of application/x-oslc-cm-service-description+xml
and the service description document as the response's content body.
application/x-oslc-cm-service-description+xml.
XML namespace abbreviations used in this specification: rdf
- RDF XML namespace - http://www.w3.org/1999/02/22-rdf-syntax-ns#
dc
- The Dublin Core Metadata Terms namespace - http://purl.org/dc/terms/
oslc_cm
- The Open Services for Lifecycle Collaboration Change Management namespace - http://open-services.net/xmlns/cm/1.0
/
XML Representation Summary: ServiceDescriptor? Element | ||
<oslc_cm:ServiceDescriptor rdf:about="anyURI"> Content: {dc:title, dc:description?, dc:contributor?, oslc_cm:changeRequests} </oslc_cm:ServiceDescriptor> | ||
Property | Representation | Presentable |
dc:title | The REQUIRED title string. Note that this element comes from the DC namespace, allowing tools unaware of the change management domain to access this element. | Yes |
dc:description | The REQUIRED description string. This element comes from the DC namespace, allowing tools completely unaware of the change management domain to access this element. | Yes |
dc:contributor | The OPTIONAL contributor string. This element comes from the DC namespace, defining the contributing entity of this service implementation. | N/A |
- dc:title | The OPTIONAL title string that could be used for display. | Yes |
- dc:identifier | The REQUIRED contributor identifier. This can be of any form but recommend to either be of URN com.{company name}.{product indentifier} or URL forms. This property is to be used by a client application to identify the provider of this service. | No |
- oslc_cm:icon | The OPTIONAL URL to an icon file that represents the provider. This icon should be a favicon format and 16x16 pixels in size | Yes |
oslc_cm:changeRequests version | The REQUIRED changerequests element. | No |
- oslc_cm:home | The OPTIONAL home element when present it MUST have child elements <dc:title> and <oslc_cm:url>. This can be used by service providers to provide a URL to the main Web UI which clients may use to navigate to. There MUST only be one occurrence of this element. | Only <dc:title> |
- {oslc_cm:factory default=[true|false]}* | The REQUIRED factory element with REQUIRED child elements <dc:title> and <oslc_cm:url>. There may be an optional <oslc_cm:label> element that is intended for use in a choice list. | Only <dc:title> |
- oslc_cm:simpleQuery | The REQUIRED simple query element with REQUIRED child elements <dc:title> and <oslc_cm:url>. There MUST be only one simpleQuery element. | Only <dc:title> |
- oslc_cm:selectionDialog default={true|false} hintWidth={width} hintHeight={width} | The REQUIRED selection dialog element with REQUIRED child elements of <dc:title> and <oslc_cm:url>. There MAY be more than one selectionDialog element. There may be an optional <oslc_cm:label> element that is intended for use in a choice list. The optional hintHeight and hintWidth attributes that allow the hosting application to define an initial size of the window to host the selection dialog, the valid values for these attributes is defined by the CSS 2 width and height attributes. | <dc:title>, <oslc_cm:label> |
- oslc_cm:creationDialog default={true|false} hintWidth={width} hintHeight={width} | The REQUIRED creation dialog element with REQUIRED child elements of <dc:title> and <oslc_cm:url>, used to retrieve a web form for the creation of new change request resources. There MAY be more than one creationDialog element. There may be an optional <oslc_cm:label> element that is intended for use in a choice list. The optional hintHeight and hintWidth attributes that allow the hosting application to define an initial size of the window to host the creation dialog, the valid values for these attributes is defined by the CSS 2 width and height attributes. | <dc:title>, <oslc_cm:label> |
xml:lang
attribute.
<?xml version="1.0" encoding="UTF-8"?> <oslc_cm:ServiceDescriptor xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/terms/" xmlns:oslc_cm="http://open-services.net/xmlns/cm/1.0/" rdf:about="http://example.com/bugs/service-descriptor.xml"> <dc:title>Project X</dc:title> <dc:description>My Product Name's OSLC CM Service Description for Project X.</dc:description> <dc:contributor> <dc:title>My Company Name, My CM Product</dc:title> <dc:identifier>com.mycompany.myproduct</dc:identifier> <oslc_cm:icon>../icons/myprod.ico</oslc_cm:icon> </dc:contributor> <oslc_cm:changeRequests version="1.0"> <!-- Resource creation factory URL --> <oslc_cm:factory oslc_cm:default="true"> <dc:title>Location for creation of bugs</dc:title> <oslc_cm:url>./bug</oslc_cm:url> </oslc_cm:factory> <!-- Alternate resource creation factory URL --> <oslc_cm:factory> <dc:title>Location for creation of *HIGH PRIORITY* bugs</dc:title> <oslc_cm:url>./bug?priority=High</oslc_cm:url> </oslc_cm:factory> <!-- Simple GET-based URL-encoded query --> <oslc_cm:simpleQuery> <dc:title>Simple GET-based Bug Query</dc:title> <oslc_cm:url>./bugsquery</oslc_cm:url> </oslc_cm:simpleQuery> <!-- Resource Selection Dialog --> <oslc_cm:selectionDialog oslc_cm:hintWidth="740px" oslc_cm:hintHeight="480px"> <dc:title>Web Dialog for finding and selecting bugs.</dc:title> <oslc_cm:url>./ui/resourcePicker</oslc_cm:url> </oslc_cm:selectionDialog> <!-- Resource Creation Dialog --> <oslc_cm:creationDialog oslc_cm:hintWidth="600px" oslc_cm:hintHeight="320px"> <dc:title>Bug Submit Dialog for creating bugs.</dc:title> <oslc_cm:label>Bug</oslc_cm:label> <oslc_cm:url>./ui/submitDialog</oslc_cm:url> </oslc_cm:creationDialog> </oslc_cm:changeRequests> </oslc_cm:ServiceDescriptor>