java.lang.Object
org.apache.jena.graph.impl.GraphBase
org.apache.jena.mem.GraphMemBase
org.apache.jena.mem.GraphMem
- All Implemented Interfaces:
Graph,GraphWithPerform
Deprecated.
In-memory, non-thread-safe, non-transactional graph.
-
Field Summary
FieldsFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Deprecated.Clear this GraphMem, ie remove all its triples (delegated to the store).voidDeprecated.Clear this GraphMem, ie remove all its triples (delegated to the store).Deprecated.returns this Graph's capabilitiesbooleanDeprecated.Answer true iff this graph containst.Deprecated.Answer an ExtendedIterator over all the triples in this graph that match the triple-patternm.intDeprecated.voidperformAdd(Triple t) Deprecated.Add a triple to the triple store.voidDeprecated.Remove a triple from the triple store.Deprecated.Returns aStreamof Triples matching a pattern.Methods inherited from class org.apache.jena.mem.GraphMemBase
close, openAgainMethods inherited from class org.apache.jena.graph.impl.GraphBase
add, contains, contains, delete, dependsOn, find, find, forTestingOnly_graphBaseFind, getEventManager, getPrefixMapping, getTransactionHandler, isClosed, isEmpty, isIsomorphicWith, notifyAdd, notifyDelete, remove, size, toString, toString
-
Field Details
-
store
Deprecated.This Graph's TripleStore. Visible for read-only purposes only.
-
-
Constructor Details
-
GraphMem
public GraphMem()Deprecated.
-
-
Method Details
-
performAdd
Deprecated.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.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
-
graphBaseSize
public int graphBaseSize()Deprecated. -
graphBaseFind
Deprecated.Answer an ExtendedIterator over all the triples in this graph that match the triple-patternm. Delegated to the store. -
graphBaseContains
Deprecated.Answer true iff this graph containst. Ifthappens to be concrete, then we hand responsibility over to the store. Otherwise we use the default implementation. -
clear
public void clear()Deprecated.Clear this GraphMem, ie remove all its triples (delegated to the store). -
stream
Deprecated.Description copied from interface:GraphReturns aStreamof Triples matching a pattern.- Returns:
- a stream of triples in this graph matching the pattern.
-
clearStore
public void clearStore()Deprecated.Clear this GraphMem, ie remove all its triples (delegated to the store). -
getCapabilities
Deprecated.Description copied from interface:Graphreturns this Graph's capabilities
-
GraphMemFactory.createDefaultGraph()for a general purpose graph orGraphMemFactory.createGraphMem()to specific this style of implementation.