Class EasyRdf_GraphStore

Description

A class for fetching, saving and deleting graphs to a Graph Store.

Implementation of the SPARQL 1.1 Graph Store HTTP Protocol.

Located in /EasyRdf/GraphStore.php (line 47)


	
			
Method Summary
EasyRdf_GraphStore __construct (string $uri)
object EasyRdf_Graph get (string $uriRef)
string getUri ()
object EasyRdf_Http_Response insert (object EasyRdfGraph $graph, [string $uriRef = null], [string $format = 'ntriples'])
object EasyRdf_Http_Response replace (object EasyRdfGraph $graph, [string $uriRef = null], [string $format = 'ntriples'])
string __toString ()
Methods
Constructor __construct (line 58)

Create a new SPARQL Graph Store client

  • access: public
EasyRdf_GraphStore __construct (string $uri)
  • string $uri: The address of the graph store endpoint
delete (line 178)

Delete a graph from the graph store

The URI can either be a full absolute URI or a URI relative to the URI of the graph store.

  • return: The response from the graph store
  • access: public
object EasyRdf_Http_Response delete (string $uriRef)
  • string $uriRef: The URI of graph to be added to
get (line 81)

Fetch a named graph from the graph store

The URI can either be a full absolute URI or a URI relative to the URI of the graph store.

  • return: The graph requested
  • access: public
object EasyRdf_Graph get (string $uriRef)
  • string $uriRef: The URI of graph desired
getUri (line 68)

Get the URI of the graph store

  • return: The URI of the graph store
  • access: public
string getUri ()
insert (line 165)

Add data to a graph in the graph store

The $graph parameter is the EasyRdf_Graph object to be sent to the graph store. Alternatively it can be a string, already serialised.

The URI can either be a full absolute URI or a URI relative to the URI of the graph store.

The $format parameter can be given to specify the serialisation used to send the graph data to the graph store.

  • return: The response from the graph store
  • access: public
object EasyRdf_Http_Response insert (object EasyRdfGraph $graph, [string $uriRef = null], [string $format = 'ntriples'])
  • object EasyRdfGraph $graph: The URI of graph desired
  • string $uriRef: The URI of graph to be added to
  • string $format: The format of the data to send to the graph store
replace (line 144)

Replace the contents of a graph in the graph store with new data

The $graph parameter is the EasyRdf_Graph object to be sent to the graph store. Alternatively it can be a string, already serialised.

The URI can either be a full absolute URI or a URI relative to the URI of the graph store.

The $format parameter can be given to specify the serialisation used to send the graph data to the graph store.

  • return: The response from the graph store
  • access: public
object EasyRdf_Http_Response replace (object EasyRdfGraph $graph, [string $uriRef = null], [string $format = 'ntriples'])
  • object EasyRdfGraph $graph: The URI of graph desired
  • string $uriRef: The URI of graph to be replaced
  • string $format: The format of the data to send to the graph store
__toString (line 212)

Magic method to return URI of the graph store when casted to string

  • return: The URI of the graph store
  • access: public
string __toString ()

Documentation generated on Wed, 16 Jan 2013 19:16:37 +0000 by phpDocumentor 1.4.4