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 at Jena 4.6.0. Application should be using Factory.createDefaultGraph() for a general purpose graph or Factory.createGraphMem() to specific this style of implementation.
  • 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
    • clearStore

      public void clearStore()
      Deprecated.
      Clear this GraphMem, ie remove all its triples (delegated to the store).