Docs For Class EasyRdf_GraphStore

## 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.

- copyright: Copyright (c) 2009-2011 Nicholas J Humfrey
- license: http://www.opensource.org/licenses/bsd-license.php

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

Method Summary
EasyRdf_GraphStore __construct (string $uri)
object EasyRdf_Http_Response delete (string $uriRef)
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 57)

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

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

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

Get the URI of the graph store

- return: The URI of the graph store
- access: public

string getUri ()
insert (line 163)

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

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

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, 20 Jul 2011 19:54:04 +0100 by phpDocumentor 1.4.3