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.

Scenario: Get Link Types

This scenario the client asks the service provider for a list of known or registered link types. The service provider does not define link types, those are defined externally. Rather, the service provider just provides a mechanism for registering a predicate URI with a short name and description, that can be used by clients to populate selection lists.

In this scenario the client wants to find all the AM resources that have a certain values for specific properties. This scenario requires that the client has already discovered the Link Type Service URI via the service catalog.

Example 1. Get Registered Link Types

The client has a URI reference to an AM link type service ( https://am.acme.com/linktypes/project1).

1.The client performs a GET on the link type service URI with an application/atom+xml accept header. The collection of registered link types is returned as an Atom collection..

Request
GET https://am.acme.com/linktypes/project1
Accept: application/atom+xml
Response
200 OK
Content-Type: application/atom+xml

<?xml version='1.0' encoding='UTF-8'?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">
   <title type="text">Link Types</title>
   <updated>2009-11-15T02:58:57.406Z</updated>
   <link href="https://am.acme.com/ =linktypes/project1= " rel="self" />
   <opensearch:totalResults>3</opensearch:totalResults>
   <entry>
      <link href="https://am.acme.com/linktypes/_-uhmwdF_Ed6KwZENF5babw" rel="self" />
      <oslc_am:etag>"_Txwpsfo1Ed6LKdTEwsKIAw"</oslc_am:etag>
      <content type="application/rdf+xml">
         <rdf:Description xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/terms/"
            rdf:about="http://open-services.net/xmlns/am/1.0/implements">
            <dc:title>Implements</dc:title>
            <dc:description>The subject implements the object.</dc:description>
         </rdf:Description>
      </content>
   </entry>
   <entry>
      <link href="https://am.acme.com/linktypes/_AK6FMNGAEd6KwZENF5babw" rel="self" />
      <oslc_am:etag>"_Dskfdiak3kshja9wkrskcm"</oslc_am:etag>
      <content type="application/xml">
         <oslc_am:LinkType xmlns:oslc_am="http://open-services.net/xmlns/am/1.0/"
            xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/terms/"
            rdf:about="http://purl.org/dc/terms/license">
            <dc:title>License</dc:title>
            <dc:description>The resource is governed by the referenced license.</dc:description>
         </oslc_am:LinkType>
      </content>
   </entry>
   <entry>
      <link href="https://am.acme.com/linktypes/_ALpsENGAEd6KwZENF5babw" rel="self" />
      <oslc_am:etag>"_Hsosakwidja2kas9alabdk"</oslc_am:etag>
      <content type="application/xml">
         <oslc_am:LinkType xmlns:oslc_am="http://open-services.net/xmlns/am/1.0/"
            xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/terms/"
            rdf:about="http://acme.org/linktypes/elaborates">
            <dc:title>Elaborates</dc:title>
            <dc:description>The subject elaborates the object.</dc:description>
         </oslc_am:LinkType>
      </content>
   </entry>
</feed>


 
Topic revision: r4 - 04 Mar 2010 - 15:30:03 - JimConallen
 
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