Package org.apache.jena.graph.impl
Interface TripleStore
-
- All Known Implementing Classes:
GraphTripleStore
,GraphTripleStoreBase
,GraphTripleStoreMem
public interface TripleStore
TripleStore - interface for bulk storage of triples used in composed graphs.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
add(Triple t)
Add a triple to this triple store.void
clear()
Clear this store, ie remove all triples from it.void
close()
Destroy this triple store - discard the indexes.boolean
contains(Triple t)
Answer true iff this triple store contains the (concrete) triplet
.void
delete(Triple t)
Remove a triple from this triple store.ExtendedIterator<Triple>
find(Triple t)
Answer an ExtendedIterator returning all the triples from this store that match the patternm = (S, P, O)
.boolean
isEmpty()
Answer true iff this triple store is empty.ExtendedIterator<Node>
listObjects()
Answer an setwise iterator over all the objects of triples in this store.ExtendedIterator<Node>
listPredicates()
Answer an iterator over all the predicates of triples in this store.ExtendedIterator<Node>
listSubjects()
Answer an setwise iterator over all the subjects of triples in this store.int
size()
Answer the size (number of triples) of this triple store.
-
-
-
Method Detail
-
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) triplet
.
-
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
ExtendedIterator<Triple> find(Triple t)
Answer an ExtendedIterator returning all the triples from this store that match the patternm = (S, P, O)
.
-
clear
void clear()
Clear this store, ie remove all triples from it.
-
-