Class GraphMem

All Implemented Interfaces:
Graph, GraphWithPerform

@Deprecated public class GraphMem extends GraphMemBase
Deprecated.
This implementation of GraphMem will be replaced by a new implementation. Applications should be using GraphMemFactory.createDefaultGraph() for a general purpose graph or GraphMemFactory.createGraphMem() to specific this style of implementation.
In-memory, non-thread-safe, non-transactional graph.
  • Field Details

    • store

      public final TripleStore store
      Deprecated.
      This Graph's TripleStore. Visible for read-only purposes only.
  • Constructor Details

    • GraphMem

      public GraphMem()
      Deprecated.
  • Method Details

    • performAdd

      public void performAdd(Triple t)
      Deprecated.
      Description copied from class: GraphBase
      Add 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:
      performAdd in interface GraphWithPerform
      Overrides:
      performAdd in class GraphBase
    • performDelete

      public void performDelete(Triple t)
      Deprecated.
      Description copied from class: GraphBase
      Remove 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:
      performDelete in interface GraphWithPerform
      Overrides:
      performDelete in class GraphBase
    • graphBaseSize

      public int graphBaseSize()
      Deprecated.
    • graphBaseFind

      public ExtendedIterator<Triple> graphBaseFind(Triple m)
      Deprecated.
      Answer an ExtendedIterator over all the triples in this graph that match the triple-pattern m. Delegated to the store.
    • graphBaseContains

      public boolean graphBaseContains(Triple t)
      Deprecated.
      Answer true iff this graph contains t. If t happens 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).
      Specified by:
      clear in interface Graph
      Overrides:
      clear in class GraphBase
    • stream

      public Stream<Triple> stream(Node s, Node p, Node o)
      Deprecated.
      Description copied from interface: Graph
      Returns a Stream of 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

      public Capabilities getCapabilities()
      Deprecated.
      Description copied from interface: Graph
      returns this Graph's capabilities
      Specified by:
      getCapabilities in interface Graph
      Overrides:
      getCapabilities in class GraphBase