OSLC namespaces

OSLC defines common namespaces. The prefixDefinition property shows all the prefix-to-namespace mappings that the service provider uses to describe the resources that it manages.

The namespace for a property must end with a # or /. For example, http://yourserver/ns/property#.

The following table shows a sample of OSLC namespaces:

Prefix Namespace
rdf http://www.w3.org/1999/02/22-rdf-syntax-ns#
oslc http://open-services.net/ns/core#
dcterms http://purl.org/dc/terms/
asset http://open-services.net/ns#
foaf http://xmlns.com/foaf/0.1/
rdfs http://www.w3.org/2000/01/rdf-schema#
rr http://jazz.net/ns/ism/registry#
spi http://jazz.net/ns/tririga
The following excerpt from the service section of the service provider document shows the OSLC and RDF namespaces:
  <oslc:ServiceProvider rdf:about="http://yourserver/oslc/sp/WorkTask">
    <oslc:prefixDefinition>
      <oslc:PrefixDefinition>
        <oslc:prefixBase rdf:resource="http://open-services.net/ns/core#"/>
        <oslc:prefix>oslc</oslc:prefix>
      </oslc:PrefixDefinition>
    </oslc:prefixDefinition>

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