- All Superinterfaces:
org.apache.jena.atlas.lib.Copyable<TripleStore>
- All Known Implementing Classes:
FastTripleStore
,LegacyTripleStore
,RoaringTripleStore
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
.copy()
Return a new triple store that is a copy of this one.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. -
copy
TripleStore copy()Return a new triple store that is a copy of this one. Since Nodes and Triples are immutable and shared, the copy can share the same Nodes and Triples.- Specified by:
copy
in interfaceorg.apache.jena.atlas.lib.Copyable<TripleStore>
- Returns:
- an independent copy of this store
-