java.lang.Object
org.apache.jena.graph.impl.GraphBase
org.apache.jena.memvalue.GraphMemValue
- All Implemented Interfaces:
Graph,GraphWithPerform
Deprecated.
In-memory, non-thread-safe, non-transactional graph.
This specialised graph has same-value semantics for literals.
It is used in the ModelAPI : see
GraphMemFactory.createGraphMemForModel().-
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
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).booleanDeprecated.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.graph.impl.GraphBase
add, close, contains, contains, delete, find, find, forTestingOnly_graphBaseFind, getEventManager, getPrefixMapping, getTransactionHandler, isClosed, isEmpty, isIsomorphicWith, notifyAdd, notifyDelete, remove, size, toString, toString
-
Constructor Details
-
GraphMemValue
public GraphMemValue()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).
-
GraphMemFactory.createDefaultGraph()for a general purpose graph orGraphMemFactory.createDefaultGraphSameValue()if necessary implementation.