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
.
TWiki
>
Main Web
>
AmHome
>
AmScenarios
>
AmScenarioDetailGetLinkTypes
(04 Mar 2010,
JimConallen
)
(raw view)
---+ 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 [[AmScenarioDetailObtainServiceDocument][discovered]] the [[AmLinkTypeManagementV1][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 | <verbatim>GET https://am.acme.com/linktypes/project1 Accept: application/atom+xml</verbatim> | | Response | <verbatim>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> </verbatim> |
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r4 - 04 Mar 2010 - 15:30:03 -
JimConallen
Main
Main Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
Webs
Main
Sandbox
TWiki
Български
Cesky
Dansk
Deutsch
English
Español
Français
Italiano
日本語
Nederlands
Polski
Português
Русский
Svenska
简体中文
簡體中文
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