public class WrappedGraph extends Object implements GraphWithPerform
emptyGraph
Constructor and Description |
---|
WrappedGraph(Graph base) |
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.
|
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
|
Graph |
getWrapped() |
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/rdf-concepts#section-Graph-syntax
|
void |
performAdd(Triple t)
add
t to this graph, but do not generate any event |
void |
performDelete(Triple t)
remove
t from this graph, but do not generate any event |
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.
|
public WrappedGraph(Graph base)
public Graph getWrapped()
public boolean dependsOn(Graph other)
Graph
public TransactionHandler getTransactionHandler()
Graph
getTransactionHandler
in interface Graph
public GraphStatisticsHandler getStatisticsHandler()
Graph
getStatisticsHandler
in interface Graph
public Capabilities getCapabilities()
Graph
getCapabilities
in interface Graph
public GraphEventManager getEventManager()
Graph
getEventManager
in interface Graph
public PrefixMapping getPrefixMapping()
Graph
getPrefixMapping
in interface Graph
public void add(Triple t)
Graph
public void delete(Triple t)
Graph
public void clear()
Graph
public void remove(Node s, Node p, Node o)
Graph
public ExtendedIterator<Triple> find(Triple m)
Graph
public ExtendedIterator<Triple> find(Node s, Node p, Node o)
Graph
public boolean isIsomorphicWith(Graph g)
Graph
isIsomorphicWith
in interface Graph
g
- Compare against this.public boolean contains(Node s, Node p, Node o)
Graph
public boolean contains(Triple t)
Graph
public void close()
Graph
public boolean isClosed()
Graph
public boolean isEmpty()
Graph
public int size()
Graph
public void performAdd(Triple t)
GraphWithPerform
t
to this graph, but do not generate any eventperformAdd
in interface GraphWithPerform
public void performDelete(Triple t)
GraphWithPerform
t
from this graph, but do not generate any eventperformDelete
in interface GraphWithPerform
Licenced under the Apache License, Version 2.0