public class GraphPlain extends WrappedGraph
emptyGraph
Modifier and Type | Method and Description |
---|---|
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.
|
ExtendedIterator<Triple> |
find(Node subj,
Node pred,
Node obj)
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
|
static Graph |
plain()
Return a graph that only has term-equality.
|
static Graph |
plain(Graph base)
Return a graph that only has term-equality
and storage in the
base graph. |
void |
remove(Node s,
Node p,
Node o)
Remove all triples that match by find(s, p, o)
|
String |
toString() |
add, clear, close, delete, dependsOn, getEventManager, getPrefixMapping, getStatisticsHandler, getTransactionHandler, getWrapped, isClosed, isEmpty, isIsomorphicWith, performAdd, performDelete, size
public static Graph plain(Graph base)
base
graph.
Update affects the base graph.public static Graph plain()
public Capabilities getCapabilities()
Graph
getCapabilities
in interface Graph
getCapabilities
in class WrappedGraph
public void remove(Node s, Node p, Node o)
Graph
remove
in interface Graph
remove
in class WrappedGraph
public boolean contains(Triple t)
Graph
contains
in interface Graph
contains
in class WrappedGraph
public boolean contains(Node s, Node p, Node o)
Graph
contains
in interface Graph
contains
in class WrappedGraph
public ExtendedIterator<Triple> find(Triple m)
Graph
find
in interface Graph
find
in class WrappedGraph
m
- a Triple encoding the pattern to look forpublic ExtendedIterator<Triple> find(Node subj, Node pred, Node obj)
Graph
find
in interface Graph
find
in class WrappedGraph
Licenced under the Apache License, Version 2.0