Retrieve RMap Agent referenced in the URL path.
GET /agents/{uri}
uri = HTTP encoded URI of Agent to retrieve.
Example URL: https://test.rmap-hub.org/api/agents/rmap%3At1g1jwt916
| Header | Value |
|---|---|
| Accept (choose one) |
text/turtle (default) application/vnd.rmap-project.agent+rdf+turtle application/rdf+xml application/vnd.rmap-project.agent+rdf+xml application/ld+json application/vnd.rmap-project.agent+ld+json |
none
Below are the possible response headers. Note that the link for status is "active". So long as an Agent exists, it is active. Currently Agents are never inactivated or deleted in RMap.
| Header | Value |
|---|---|
| Location * | https://{api-path}/agents/{agent-uri} |
| Link * | <http://purl.org/ontology/rmap#active>;rel="http://purl.org/ontology/rmap#hasStatus" |
| Content-Type* | Depends on request Accept header: - text/vnd.rmap-project.agent+turtle (default) - text/vnd.rmap-project.agent+rdf+xml - text/vnd.rmap-project.agent+ld+json |
* Appears on every OK response.
An RDF serialization of the RMap Agent requested. The serialization will depend on the Accept type defined in the Request Header. For more information on what an Agent looks like, view the Agent Media Type document. Also view the example at the bottom of this page.
| Code | Description |
|---|---|
| 200 | OK |
| 404 | Not found |
| 406 | Not acceptable (if incorrect accept type defined) |
| 500 | Internal server error |
| 503 | Service unavailable |
- RMap searches for the Agent ID provided in the URL path.
- If no matching Agent is found, an HTTP Not Found response is returned with a basic default header.
- If a matching Agent is found, the status is returned as "active" and an RDF serialization of the Agent is provided in the body of the response.
- If any other errors result in this process not being completed successfully, the user will receive the appropriate error message
curl -i
--header "Accept:application/rdf+xml"
https://test.rmap-hub.org/api/agents/rmap%3At1g1jwt916
HTTP/1.1 200 OK
Location: https://test.rmap-hub.org/api/agents/rmap%3At1g1jwt916
Link: <http://purl.org/ontology/rmap#active>;rel="http://purl.org/ontology/rmap#hasStatus"
Content-Type: application/vnd.rmap-project.agent+rdf+xml; version=1.0
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="rmap:t1g1jwt916">
<rdf:type rdf:resource="http://purl.org/ontology/rmap#Agent"/>
<name xmlns="http://xmlns.com/foaf/0.1/">RMap IEEE Loader</name>
<identityProvider xmlns="http://purl.org/ontology/rmap#" rdf:resource="https://dev.rmap-hub.org#Administrator"/>
<userAuthId xmlns="http://purl.org/ontology/rmap#" rdf:resource="rmap:/authid/8e57baa6dd134f65b7a5bbd16ffd8e82ded84053fbefe36278df2835681ce46"/>
</rdf:Description>
</rdf:RDF>