HTTP Example:GET /{BASE}/ldpath/program?program=…&uri=…
| API Example: LDPathWebService.evaluateProgramQuery({'program': , 'uri': }); |
Evaluate a LDPath program using the program string passed as argument and starting at the resource identified
by the uri. Returns a map from field names to lists of RDF nodes using the same syntax as RDF/JSON, i.e.
-
{ "type": "uri", "value": "..." } for resources
{ "type": "literal", "value": "...", "language": "...", "datatype": "..."} for literals (datatype and language optional)
- Output:
- javax.ws.rs.core.Response - a map from field names to lists of rdf nodes in rdf/json format
- Query parameters:
- program - the program to evaluate
- uri - the URI of the resource where to start
- Produces:
- application/json
- HTTP return codes:
- 404 - in case the resource with the given URI does not exist
- 400 - in case the path could not be parsed or the resource is not a valid URI
- 200 - in case the query was evaluated successfully
|