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()
Deprecated.
|
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)
Graphpublic TransactionHandler getTransactionHandler()
GraphgetTransactionHandler in interface Graph@Deprecated public GraphStatisticsHandler getStatisticsHandler()
GraphgetStatisticsHandler in interface Graphpublic Capabilities getCapabilities()
GraphgetCapabilities in interface Graphpublic GraphEventManager getEventManager()
GraphgetEventManager in interface Graphpublic PrefixMapping getPrefixMapping()
GraphgetPrefixMapping in interface Graphpublic void add(Triple t)
Graphpublic void delete(Triple t)
Graphpublic void clear()
Graphpublic void remove(Node s, Node p, Node o)
Graphpublic ExtendedIterator<Triple> find(Triple m)
Graphpublic ExtendedIterator<Triple> find(Node s, Node p, Node o)
Graphpublic boolean isIsomorphicWith(Graph g)
GraphisIsomorphicWith in interface Graphg - Compare against this.public boolean contains(Node s, Node p, Node o)
Graphpublic boolean contains(Triple t)
Graphpublic void close()
Graphpublic boolean isClosed()
Graphpublic boolean isEmpty()
Graphpublic int size()
Graphpublic void performAdd(Triple t)
GraphWithPerformt to this graph, but do not generate any eventperformAdd in interface GraphWithPerformpublic void performDelete(Triple t)
GraphWithPerformt from this graph, but do not generate any eventperformDelete in interface GraphWithPerformLicenced under the Apache License, Version 2.0