public interface Graph
for an implementation framework.
Modifier and Type  Field and Description 

static Graph 
emptyGraph
An immutable empty graph.

Modifier and Type  Method and Description 

void 
add(Triple t)
Add the triple t (if possible) to the set belonging to this graph

void 
clear()
Remove all the statements from this graph.

void 
close()
Free all resources, any further use of this Graph is an error.

boolean 
contains(Node s,
Node p,
Node o)
Answer true iff the graph contains a triple matching (s, p, o).

boolean 
contains(Triple t)
Answer true iff the graph contains a triple that t matches; t may be
fluid.

void 
delete(Triple t)
Delete the triple t (if possible) from the set belonging to this graph

boolean 
dependsOn(Graph other)
true if this graph's content depends on the other graph.

default ExtendedIterator<Triple> 
find()
Returns an iterator over all Triples in the graph.

ExtendedIterator<Triple> 
find(Node s,
Node p,
Node o)
Returns an iterator over Triples matching a pattern.

ExtendedIterator<Triple> 
find(Triple m)
Returns an iterator over all the Triples that match the triple pattern.

Capabilities 
getCapabilities()
returns this Graph's capabilities

GraphEventManager 
getEventManager()
Answer this Graph's event manager.

PrefixMapping 
getPrefixMapping()
returns this Graph's prefix mapping.

GraphStatisticsHandler 
getStatisticsHandler()
Answer this Graph's statistics handler, or null if there isn't one.

TransactionHandler 
getTransactionHandler()
returns this Graph's transaction handler

boolean 
isClosed()
Answer true iff .close() has been called on this Graph.

boolean 
isEmpty()
Answer true iff this graph is empty.

boolean 
isIsomorphicWith(Graph g)
Compare this graph with another using the method
described in
http://www.w3.org/TR/rdfconcepts#sectionGraphsyntax

void 
remove(Node s,
Node p,
Node o)
Remove all triples that match by find(s, p, o)

int 
size()
For a concrete graph this returns the number of triples in the graph.

static final Graph emptyGraph
boolean dependsOn(Graph other)
other
 the graph this graph may depend onTransactionHandler getTransactionHandler()
Capabilities getCapabilities()
GraphEventManager getEventManager()
GraphStatisticsHandler getStatisticsHandler()
PrefixMapping getPrefixMapping()
void add(Triple t) throws AddDeniedException
t
 the triple to add to the graphAddDeniedException
 if the triple cannot be addedvoid delete(Triple t) throws DeleteDeniedException
t
 the triple to delete to the graphDeleteDeniedException
 if the triple cannot be removedExtendedIterator<Triple> find(Triple m)
m
 a Triple encoding the pattern to look forExtendedIterator<Triple> find(Node s, Node p, Node o)
default ExtendedIterator<Triple> find()
find(Node.ANY, Node.ANY, Node.ANY)
boolean isIsomorphicWith(Graph g)
g
 Compare against this.boolean contains(Node s, Node p, Node o)
boolean contains(Triple t)
void clear()
void close()
boolean isEmpty()
int size()
boolean isClosed()
Licenced under the Apache License, Version 2.0