java.lang.Object
org.apache.jena.graph.impl.GraphBase
org.apache.jena.graph.impl.CollectionGraph
- All Implemented Interfaces:
Graph,GraphWithPerform
Deprecated, for removal: This API element is subject to removal in a future version.
To be removed.
A simple graph implementation that wraps a collection of triples.
This is intended to be used in places where a graph is required but
iteration is the only expected operation. All graph operations are supported
but many are not efficient and will be slow on large collections. In these
cases a memory based graph will be more efficient.
This implementation:
- Does not support deleting triples from the iterator
-
Field Summary
Fields inherited from class org.apache.jena.graph.impl.GraphBase
TOSTRING_TRIPLE_BASE, TOSTRING_TRIPLE_LIMITFields inherited from interface org.apache.jena.graph.Graph
emptyGraph -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Construct an empty graph using an empty HashSet.CollectionGraph(Collection<Triple> triples) Deprecated, for removal: This API element is subject to removal in a future version.Construct a graph from a collection. -
Method Summary
Modifier and TypeMethodDescriptionvoidperformAdd(Triple t) Deprecated, for removal: This API element is subject to removal in a future version.Add a triple to the triple store.voidDeprecated, for removal: This API element is subject to removal in a future version.Remove a triple from the triple store.Methods inherited from class org.apache.jena.graph.impl.GraphBase
add, clear, close, contains, contains, delete, dependsOn, find, find, forTestingOnly_graphBaseFind, getEventManager, getPrefixMapping, getTransactionHandler, isClosed, isEmpty, isIsomorphicWith, notifyAdd, notifyDelete, remove, size, toString, toString
-
Constructor Details
-
CollectionGraph
public CollectionGraph()Deprecated, for removal: This API element is subject to removal in a future version.Construct an empty graph using an empty HashSet. Iterator deletion is supported. -
CollectionGraph
Deprecated, for removal: This API element is subject to removal in a future version.Construct a graph from a collection. Iterator deletion is not supported.- Parameters:
triples- The collection of triples.
-
-
Method Details
-
performAdd
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:GraphBaseAdd a triple to the triple store. The default implementation throws an AddDeniedException; subclasses must override if they want to be able to add triples.- Specified by:
performAddin interfaceGraphWithPerform- Overrides:
performAddin classGraphBase
-
performDelete
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:GraphBaseRemove a triple from the triple store. The default implementation throws a DeleteDeniedException; subclasses must override if they want to be able to remove triples.- Specified by:
performDeletein interfaceGraphWithPerform- Overrides:
performDeletein classGraphBase
-