POST /{BASE}/ldpath/debugEvaluate the LDPath program send as byte stream in the POST body of the request starting at the contexts (array)
given as URL query arguments. Will return a JSON map with an entry for each context and its evaluation result.
The value of each entry will have the following format:
{ "type": "uri", "value": "..." } for resources
{ "type": "literal", "value": "...", "language": "...", "datatype": "..."} for literals (datatype and language optional)
- HTTP Example:
POST /{BASE}/ldpath/debug?context=…&context[]=… | - API Example:
LDPathWebService.testProgram({'context': , 'context[]': }); |
- Output:
- Response - a JSON map with an entry for each context pointing to its evaluation result (another map with field/value pairs)
- Query parameters:
- context - the URI of a single context to evaluate the program against
- context[] - an array of URIs to use as contexts to evaluate the program against
- Produces:
- application/json
- HTTP return codes:
- 200 - in case the evaluation was successful for all contexts
- 400 - in case the LDPath program was invalid
- 404 - in case one of the contexts passed as argument does not exist
- 500 - in case there was an error accessing the repository or reading the POST body
|
{ "type": "uri", "value": "..." }for resources{ "type": "literal", "value": "...", "language": "...", "datatype": "..."}for literals (datatype and language optional)