public class CollectionGraph extends GraphBase
This implementation:
TOSTRING_TRIPLE_BASE, TOSTRING_TRIPLE_LIMIT
emptyGraph
Constructor and Description |
---|
CollectionGraph()
Construct an empty graph using an empty HashSet.
|
CollectionGraph(Collection<Triple> triples)
Construct a graph from a collection.
|
CollectionGraph(Collection<Triple> triples,
boolean iteratorDeleteAllowed)
Construct a graph from a collection.
|
Modifier and Type | Method and Description |
---|---|
Capabilities |
getCapabilities()
Answer the capabilities of this graph; the default is an AllCapabilities object
(the same one each time, not that it matters - Capabilities should be
immutable).
|
void |
performAdd(Triple t)
Add a triple to the triple store.
|
void |
performDelete(Triple t)
Remove a triple from the triple store.
|
add, clear, close, contains, contains, delete, dependsOn, find, find, forTestingOnly_graphBaseFind, getEventManager, getPrefixMapping, getStatisticsHandler, getTransactionHandler, isClosed, isEmpty, isIsomorphicWith, notifyAdd, notifyDelete, remove, size, toString, toString
public CollectionGraph()
public CollectionGraph(Collection<Triple> triples)
triples
- The collection of triples.public CollectionGraph(Collection<Triple> triples, boolean iteratorDeleteAllowed)
triples
- The collection of triples.iteratorDeleteAllowed
- if true iterator on triple supports deletion and we want to enable iterator deletion.public void performAdd(Triple t)
GraphBase
performAdd
in interface GraphWithPerform
performAdd
in class GraphBase
public void performDelete(Triple t)
GraphBase
performDelete
in interface GraphWithPerform
performDelete
in class GraphBase
public Capabilities getCapabilities()
GraphBase
getCapabilities
in interface Graph
getCapabilities
in class GraphBase
Licenced under the Apache License, Version 2.0