Path: / {BASE} / content / {mimetype}

Returns remote resource content with the given uri and an accepted return type (mimetype)

Path parameters:
mimetype ([^/]+/[^/]+) - , accepted mimetype follows the pattern .+/.+

Sub-Resources
Resources
NameDescription
{uuid}Returns local resource content with the given uuid and an accepted return type (mimetype)

Resource Methods
Method Summary
NameDescription
GET /{BASE}/content/{mimetype}?uri=…Returns remote resource content with the given uri and an accepted return type (mimetype)
PUT /{BASE}/content/{mimetype}?uri=…Sets content to a given remote resource

Method Detail

GET /{BASE}/content/{mimetype}

Returns remote resource content with the given uri and an accepted return type (mimetype)

HTTP Example:
GET /{BASE}/content/{mimetype}?uri=…
Range: …
API Example:

ContentWebService.getContentRemote({'uri': /* uri , the fully-qualified URI of the resource to create in the triple store */,
  'mimetype': /* mimetype , accepted mimetype follows the pattern .+/.+ */,
  'Range': /* Returns remote resource content with the given uri and an accepted return type (mimetype) */});

Output:
Response - a remote resource's content (body is the resource content in requested format)
Query parameters:
uri - , the fully-qualified URI of the resource to create in the triple store
Header parameters:
Range
HTTP return codes:
200 - resource content found and returned
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:
Content-Type - (for HTTP 406) available content type (if resource has content)

PUT /{BASE}/content/{mimetype}

Sets content to a given remote resource

HTTP Example:
PUT /{BASE}/content/{mimetype}?uri=…
API Example:

ContentWebService.putContentRemote({'uri': /* uri , the fully-qualified URI of the resource to create in the triple store */,
  'mimetype': /* mimetype content-type of the body (content) follows the pattern .+/.+ */});

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 - put was successful
400 - bad request (e.g. uri is null)
404 - resource cannot be found
415 - Content-Type is not supported
500 - Internal Error