Class EasyRdf_GraphStore

Description
Description | Methods (details)

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: www.opensource.org/licenses/bsd-license.php

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


	
			
Method Summary
Description | Methods (details)
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
Description | Methods (details)
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:59:45 +0100 by phpDocumentor 1.4.3

gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.