Path: / {BASE} / resource

Returns a link to a remote resource (data or content) with the given uri and an accepted return type


Sub-Resources
Resources
NameDescription
{uuid}Returns a link to a local resource (data or content) with the given uuid and an accepted return type

Resource Methods
Method Summary
NameDescription
POST /{BASE}/resource?uri=…Creates new resource with given uri.
GET /{BASE}/resource?uri=…&genid=…&format=…Returns a link to a remote resource (data or content) with the given uri and an accepted return type
PUT /{BASE}/resource?uri=…Returns a Link where the given data (metadata or content) can be put to the remote resource
DELETE /{BASE}/resource?uri=…Delete remote resource with given uri

Method Detail

POST /{BASE}/resource

Creates new resource with given uri. If no uri is defined it creates a local uri with random uuid

HTTP Example:
POST /{BASE}/resource?uri=…
API Example:

ResourceWebService.postNewOrRemote({'uri': /* uri , the fully-qualified URI of the resource to create in the triple store */});

Output:
Response - HTTP response (body is a String message)
Query parameters:
uri - , the fully-qualified URI of the resource to create in the triple store
HTTP return codes:
201 - new resource created
302 - resource already exists
500 - Internal Error
HTTP response headers:
Location - the url of the new/found resource

GET /{BASE}/resource

Returns a link to a remote resource (data or content) with the given uri and an accepted return type

HTTP Example:
GET /{BASE}/resource?uri=…&genid=…&format=…
Accept: …
API Example:

ResourceWebService.getRemote({'uri': /* uri the fully-qualified URI of the resource to create in the triple store */,
  'genid': /* Returns a link to a remote resource (data or content) with the given uri and an accepted return type */,
  'format': /* format forces representation format (optional, normal content negotiation performed if empty) */,
  'Accept': /* Returns a link to a remote resource (data or content) with the given uri and an accepted return type */});

Output:
Response
Query parameters:
uri - the fully-qualified URI of the resource to create in the triple store
genid
format - forces representation format (optional, normal content negotiation performed if empty)
Header parameters:
Accept
HTTP return codes:
303 - resource can be found in the requested format under Location
400 - bad request (maybe uri is not defined)
404 - resource cannot be found
406 - resource cannot be found in the given format
500 - Internal Error
HTTP response headers:
Location - the url of the resource in the requested format
Content-Type - (for HTTP 406) a list of available types (content and meta)
HTTP request headers:
Accept - accepted mimetypes; value must follow the pattern (.+/.+(;rel=(content|meta))?,)+

PUT /{BASE}/resource

Returns a Link where the given data (metadata or content) can be put to the remote resource

HTTP Example:
PUT /{BASE}/resource?uri=…
Content-Type: …
API Example:

ResourceWebService.putRemote({'uri': /* uri , the fully-qualified URI of the resource to create in the triple store */,
  'Content-Type': /* Returns a Link where the given data (metadata or content) can be put to the remote resource */});

Output:
Response - a link where the data can be put (depends on Content-Type)
Query parameters:
uri - , the fully-qualified URI of the resource to create in the triple store
Header parameters:
Content-Type
HTTP return codes:
303 - resource in given format can be put under Location
400 - bad request (e.g. uri is null)
404 - resource cannot be found
415 - Content-Type is not supported
500 - Internal Error
HTTP response headers:
Location - (for HTTP 303) the url where data can be put
HTTP request headers:
Content-Type - type of the body; value must follow the pattern .+/.+(;rel=(content|meta))?

DELETE /{BASE}/resource

Delete remote resource with given uri

HTTP Example:
DELETE /{BASE}/resource?uri=…
API Example:

ResourceWebService.deleteResourceRemote({'uri': /* uri , the fully-qualified URI of the resource to create in the triple store */});

Output:
Response - HTTP response (success or error)
Query parameters:
uri - , the fully-qualified URI of the resource to create in the triple store
HTTP return codes:
200 - resource deleted
400 - bad request (e.g, uri is null)
404 - resource not found