Interface TripleTable

All Superinterfaces:
TransactionalComponent, TupleTable<org.apache.jena.graph.Triple>
All Known Implementing Classes:
PMapTripleTable, TriTable

public interface TripleTable extends TupleTable<org.apache.jena.graph.Triple>
A simplex or multiplex table of Triples.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Clear all tuples from this table.
    Stream<org.apache.jena.graph.Triple>
    find(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o)
    Search the table using a pattern of slots.

    Methods inherited from interface org.apache.jena.sparql.core.mem.TransactionalComponent

    begin, commit, end

    Methods inherited from interface org.apache.jena.sparql.core.mem.TupleTable

    abort, add, delete
  • Method Details

    • find

      Stream<org.apache.jena.graph.Triple> find(org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o)
      Search the table using a pattern of slots. Node.ANY or null will work as a wildcard.
      Parameters:
      s - the subject node of the pattern
      p - the predicate node of the pattern
      o - the object node of the pattern
      Returns:
      an Stream of matched triples
    • clear

      default void clear()
      Description copied from interface: TupleTable
      Clear all tuples from this table.
      Specified by:
      clear in interface TupleTable<org.apache.jena.graph.Triple>