public class TripleStore extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TripleStore.TripleContainer
a triple Container
|
Modifier and Type | Field and Description |
---|---|
TripleStore.TripleContainer |
byObject |
TripleStore.TripleContainer |
byPredicate |
TripleStore.TripleContainer |
bySubject |
Constructor and Description |
---|
TripleStore() |
Modifier and Type | Method and Description |
---|---|
Triple |
add(Object subject,
Object predicate,
Object object)
add the given subject, predicate, object triple
|
void |
add(Triple triple)
add the given triple
|
void |
add(TripleStore.TripleContainer tripleContainer)
add the triples from the given tripleContainer
|
void |
addSelect(TripleStore source,
Object subject,
Object predicate,
Object object)
add the given select from the given source TripleStore to me
|
static <T extends Comparable<? super T>> |
asSortedList(Collection<T> c)
utility function
|
TripleStore.TripleContainer |
getByObject() |
TripleStore.TripleContainer |
getByPredicate() |
TripleStore.TripleContainer |
getBySubject() |
Set<Object> |
getObjects()
get the objects of this tripleStore
|
Set<Object> |
getPredicates()
get the predicates of this tripleStore
|
Set<Object> |
getSubjects()
get the subjects of this tripleStore
|
List<Triple> |
getTriples()
get the list of all myTriples
|
TripleQueryImpl |
query()
return a default triple Query for all my triples
|
int |
size()
get the size of this triple Store
|
public TripleStore.TripleContainer bySubject
public TripleStore.TripleContainer byPredicate
public TripleStore.TripleContainer byObject
public TripleQueryImpl query()
public TripleStore.TripleContainer getBySubject()
public TripleStore.TripleContainer getByPredicate()
public TripleStore.TripleContainer getByObject()
public static <T extends Comparable<? super T>> List<T> asSortedList(Collection<T> c)
c
- public Set<Object> getSubjects()
public Set<Object> getPredicates()
public Set<Object> getObjects()
public Triple add(Object subject, Object predicate, Object object)
subject
- predicate
- object
- public void add(Triple triple)
triple
- public void add(TripleStore.TripleContainer tripleContainer)
tripleContainer
- public void addSelect(TripleStore source, Object subject, Object predicate, Object object)
source
- - the tripleStore to select triples fromsubject
- predicate
- object
- public int size()
Copyright © 2017. All Rights Reserved.