Project

General

Profile

Actions

Graphs

Graphs can be accessed as resources on both the TQL and SPARQL endpoints. They are defined using a single default-graph-uri query parameter, or by the parameter alias graph.

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

PUT

Creates the specified graph. Returns: 201 Created.

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

DELETE

Deletes 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 the results of the query: construct { ?s ?p ?o } where { ?s ?p ?o }

POST

Uploads a graph. Returns: 200 OK.

Creates the specified graph if it does not exist. Goes through all the MIME parts in the post, and loads them all into the specified graph. The expected types are RDF/XML, N3, or RLog. These are defined in the MIME types for each part, or by filename extension if the MIME type is not available.

HEAD

Not implemented.

To Do: Return the number of statements in the graph.

Updated by Paula Gearon almost 14 years ago ยท 4 revisions