My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Graph  
The base class for graphs in a store.
Autogenerated
Updated Jan 13, 2010 by innovat...@gmail.com

note: this page is automatically generated from embedded documentation in the PHP source.

Overview

Constructors

  • Graph - Create a new instance of this class

Methods

Constructor Detail

Graph

public Graph(mixed uri, mixed credentials, mixed request_factory)

Create a new instance of this class

Param:
string uri URI of the graph
Credentials credentials the credentials to use for authenticated requests (optional)

Method Detail

apply_changeset

public void apply_changeset(mixed cs)

Apply a changeset to the graph

Param:
ChangeSet cs the changeset to apply
Return:
HttpResponse

apply_changeset_rdfxml

public void apply_changeset_rdfxml(mixed rdfxml)

Apply a changeset to the graph

Param:
string rdfxml the changeset to apply, serialised as RDF/XML
Return:
HttpResponse

apply_versioned_changeset

public void apply_versioned_changeset(mixed cs)

Apply a changeset in a versioned manner to the graph

Param:
ChangeSet cs the changeset to apply
Return:
HttpResponse

apply_versioned_changeset_rdfxml

public void apply_versioned_changeset_rdfxml(mixed rdfxml)

Apply a changeset in a versioned manner to the graph

Param:
string rdfxml the changeset to apply, serialised as RDF/XML
Return:
HttpResponse

describe

public void describe(mixed uri, mixed output)

Obtain the graph's bounded description of a given resource

See:
http://n2.talis.com/wiki/Metabox#Describing_a_Resource
Param:
string uri the URI of the resource to be described
string output the desired output format of the response (e.g. rdf, xml, json, ntriples, turtle)
Return:
HttpResponse

describe_to_simple_graph

public void describe_to_simple_graph(mixed uri)

Obtain the graph's bounded description of a given resource. This is designed to be fast since it uses RDF/JSON which requires no parsing by the SimpleGraph class. This method always returns a SimpleGraph, which will be empty if any HTTP errors occured.

See:
http://n2.talis.com/wiki/Metabox#Describing_a_Resource
Param:
string uri the URI of the resource to be described
Return:
SimpleGraph

describe_to_triple_list

public void describe_to_triple_list(mixed uri)

Obtain the graph's bounded description of a given resource

Deprecated:
triple lists are deprecated

has_description

public void has_description(mixed uri)

Tests whether the graph contains a bounded description of a given resource. This uses a conditional GET.

See:
http://n2.talis.com/wiki/Metabox#Describing_a_Resource
Param:
string uri the URI of the resource to be described
Return:
boolean true if the graph contains triples with the resource as a subject, false otherwise

submit_rdfxml

public void submit_rdfxml(mixed rdfxml)

Submit some RDF/XML to be added to the graph

Param:
string rdfxml the RDF to be submitted, serialised as RDF/XML
Return:
HttpResponse

submit_turtle

public void submit_turtle(mixed turtle)

Submit some Turtle to be added to the graph

Param:
string turtle the RDF to be submitted, serialised as Turtle
Return:
HttpResponse

Generated by PHPDoctor 2RC2


Sign in to add a comment
Powered by Google Project Hosting