Interface TripleStore

All Known Implementing Classes:
GraphTripleStoreBase, GraphTripleStoreMem

public interface TripleStore
TripleStore - interface for bulk storage of triples used in composed graphs.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Add a triple to this triple store.
    void
    Clear this store, ie remove all triples from it.
    void
    Destroy this triple store - discard the indexes.
    boolean
    Answer true iff this triple store contains the (concrete) triple t.
    boolean
    Answer true iff this triple store contains the triple match t.
    void
    Remove a triple from this triple store.
    Answer an ExtendedIterator returning all the triples from this store that match the pattern m = (S, P, O).
    boolean
    Answer true iff this triple store is empty.
    Answer an setwise iterator over all the objects of triples in this store.
    Answer an iterator over all the predicates of triples in this store.
    Answer an setwise iterator over all the subjects of triples in this store.
    int
    Answer the size (number of triples) of this triple store.
    stream(Node sm, Node pm, Node om)
    Answer an ExtendedIterator returning all the triples from this store that match the pattern m = (S, P, O).
  • Method Details

    • close

      void close()
      Destroy this triple store - discard the indexes.
    • add

      void add(Triple t)
      Add a triple to this triple store.
    • delete

      void delete(Triple t)
      Remove a triple from this triple store.
    • size

      int size()
      Answer the size (number of triples) of this triple store.
    • isEmpty

      boolean isEmpty()
      Answer true iff this triple store is empty.
    • contains

      boolean contains(Triple t)
      Answer true iff this triple store contains the (concrete) triple t.
    • containsMatch

      boolean containsMatch(Triple t)
      Answer true iff this triple store contains the triple match t.
    • listSubjects

      ExtendedIterator<Node> listSubjects()
      Answer an setwise iterator over all the subjects of triples in this store.
    • listPredicates

      ExtendedIterator<Node> listPredicates()
      Answer an iterator over all the predicates of triples in this store.
    • listObjects

      ExtendedIterator<Node> listObjects()
      Answer an setwise iterator over all the objects of triples in this store.
    • find

      Answer an ExtendedIterator returning all the triples from this store that match the pattern m = (S, P, O).
    • stream

      Stream<Triple> stream(Node sm, Node pm, Node om)
      Answer an ExtendedIterator returning all the triples from this store that match the pattern m = (S, P, O).
    • clear

      void clear()
      Clear this store, ie remove all triples from it.