Path: / {BASE} / ldpath / debug

Evaluate 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:


Method Summary
ResourceDescription
POST /{BASE}/ldpath/debug?context[]=…&context=…Evaluate the LDPath program send as byte stream in the POST body of the request starting at the contexts (array) given as URL query arguments.

Method Detail
HTTP Example:
POST /{BASE}/ldpath/debug?context[]=…&context=…

API Example:

LDPathWebService.testProgram({'context[]': /* contextURIarr an array of URIs to use as contexts to evaluate the program against */,
  'context': /* contextURI the URI of a single context to evaluate the program against */});

Evaluate 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)

Output:
javax.ws.rs.core.Response - a JSON map with an entry for each context pointing to its evaluation result (another map with field/value pairs)
Query parameters:
context[] - an array of URIs to use as contexts to evaluate the program against
context - the URI of a single context 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