public class SimpleStore extends java.util.HashSet<RdfTriple> implements TripleStore
Constructor and Description |
---|
SimpleStore()
Create an empty TripleStore
|
SimpleStore(java.util.Collection<RdfTriple> triples)
Create a TripleStore from the collection of RDF triples
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<RdfTriple> |
getTriples(RdfTriple query)
Get the triples from the triple store that match a particular query
|
void |
storeTriples(java.util.Set<RdfTriple> triples)
Store new RDF triples into the triple store
|
add, clear, clone, contains, isEmpty, iterator, remove, size
addAll, containsAll, retainAll, toArray, toArray, toString
public SimpleStore()
public SimpleStore(java.util.Collection<RdfTriple> triples)
triples
- the set of RDF triplespublic java.util.Set<RdfTriple> getTriples(RdfTriple query)
getTriples
in interface TripleStore
query
- RdfTriple specifying the querypublic void storeTriples(java.util.Set<RdfTriple> triples)
storeTriples
in interface TripleStore
triples
- RDF triples to store