Project

General

Profile

Actions

Statements

Statements can be accessed as resources on both the TQL and SPARQL endpoints. They are defined as "quads" (a triple with a graph) using the following query parameters in the URL:
  • subject: The subject of the triple. Aliases are: subj and s
  • predicate: The predicate of the triple. Aliases are: pred and p
  • object: The object of the triple. Aliases are: obj and o
  • default-graph-uri: The graph the triple appears in. Alias: graph

If any one of these parameters is missing, then the resource is invalid. Note that none of these parameters must appear in the URL. They will not be recognized if they appear in the request body.

The following HTTP methods may be applied to a Statement resource:

PUT

Inserts the triple into the specified graph. Returns: 201 Created.

This operation is idempotent, meaning that the operation can be repeated with no effect.

DELETE

Deletes the triple from the specified graph. Returns: 204 No Content.

This operation is idempotent, meaning that the operation can be repeated with no effect.

GET

Not implemented.

To Do: Return a 200 if the statement exists, and a 404 if it does not.

POST

Not implemented.

To Do: Accept a URI to identify the statement, and reify the statement in the database.

HEAD

Not implemented.

To Do: Return the reification ID of the statement, if one exists.

Updated by Paula Gearon over 14 years ago ยท 3 revisions