- All Known Implementing Classes:
FastTripleStore,LegacyTripleStore,RoaringTripleStore
public interface TripleStore
A triple store is a collection of triples that supports access to
triples matching a triple pattern.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a triple to the map.voidclear()Remove all triples from the map.booleanAnswer true if the graph contains any triple matchingt.intReturn the number of triples in the map.Returns anExtendedIteratorof all triples in the graph matching the given triple match.booleanisEmpty()Return true if the map is empty.voidRemove a triple from the map.stream()Returns aStreamof all triples in the graph.Returns aStreamof Triples matching the given pattern.
-
Method Details
-
add
Add a triple to the map.- Parameters:
triple- to add
-
remove
Remove a triple from the map.- Parameters:
triple- to remove
-
clear
void clear()Remove all triples from the map. -
countTriples
int countTriples()Return the number of triples in the map. -
isEmpty
boolean isEmpty()Return true if the map is empty. -
contains
Answer true if the graph contains any triple matchingt.- Parameters:
tripleMatch- triple match pattern, which may be contained
-
stream
Returns aStreamof all triples in the graph. Note:BaseStream.parallel()is supported.- Returns:
- a stream of triples in this graph.
-
stream
Returns aStreamof Triples matching the given pattern. Note:BaseStream.parallel()is supported.- Parameters:
tripleMatch- triple match pattern- Returns:
- a stream of triples in this graph matching the pattern.
-
find
Returns anExtendedIteratorof all triples in the graph matching the given triple match.
-