- 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 TypeMethodDescriptionvoid
Add a triple to the map.void
clear()
Remove all triples from the map.boolean
Answer true if the graph contains any triple matchingt
.int
Return the number of triples in the map.Returns anExtendedIterator
of all triples in the graph matching the given triple match.boolean
isEmpty()
Return true if the map is empty.void
Remove a triple from the map.stream()
Returns aStream
of all triples in the graph.Returns aStream
of 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 aStream
of all triples in the graph. Note:BaseStream.parallel()
is supported.- Returns:
- a stream of triples in this graph.
-
stream
Returns aStream
of 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 anExtendedIterator
of all triples in the graph matching the given triple match.
-