public class TripleQueryImpl extends Object implements TripleQuery
| Modifier and Type | Class and Description |
|---|---|
static class |
TripleQueryImpl.TopicType |
| Modifier and Type | Field and Description |
|---|---|
Triple |
triple |
protected List<Triple> |
triples |
| Constructor and Description |
|---|
TripleQueryImpl(TripleQueryImpl tripleQuery)
create a new TripleQuery based on an existing one
|
TripleQueryImpl(TripleStore tripleStore)
create a TripleQuery from the given tripleStore
|
| Modifier and Type | Method and Description |
|---|---|
TripleQuery |
complement(TripleQuery otherQuery)
create a relative complement that is the triples that are in me but not in otherQuery
see https://en.wikipedia.org/wiki/Complement_%28set_theory%29#Relative_complement
|
Object |
getTopic()
get the Topic for the current topic type subject predicate or object
|
TripleStore.TripleContainer |
getTripleContainer()
get the TripleContainer
|
List<Triple> |
getTriples()
return my Triples
|
TripleStore |
getTripleStore()
get the tripleStore this query belongs to
|
TripleQuery |
intersect(TripleQuery otherQuery)
create an intersection of me and the other Triple query
that is the list of triples that are part of my triples and part ot the otherQueries triples
see https://en.wikipedia.org/wiki/Intersection_%28set_theory%29#Intersecting_and_disjoint_sets
|
TripleQueryImpl |
query(Object subject,
Object predicate,
Object object)
create a TripleQuery for the given subject, predicate and object
|
TripleQueryImpl |
queryTopic(TripleQueryImpl.TopicType topicType)
change the query topic
|
TripleQueryImpl |
queryTriple(Triple select)
select the list of Triples that "fit" the given example Triple
|
boolean |
same(Object object,
Object other)
check whether two Objects are the same
|
List<Triple> |
select(Object subject,
Object predicate,
Object object)
select the triples for the given subject, predicate and object
|
List<Triple> |
select(Triple select)
select the triples for the given "template" triple
|
Triple |
selectSingle(Object subject,
Object predicate,
Object object)
select a single triple
|
void |
setTriple()
set my triple (head triple pointer ...)
|
void |
setTriples(List<Triple> pTriples)
set my triples
|
int |
size()
return the size of my triples
|
TripleQuery |
union(TripleQuery other)
create a union of me and the other Triple query
that is the list triples of me combined with the list of triples of the other triple query
see https://en.wikipedia.org/wiki/Union_%28set_theory%29
|
public TripleQueryImpl(TripleStore tripleStore)
tripleStore - public TripleQueryImpl(TripleQueryImpl tripleQuery)
tripleQuery - public TripleQueryImpl queryTopic(TripleQueryImpl.TopicType topicType)
topicType - public TripleStore.TripleContainer getTripleContainer()
public Object getTopic()
public List<Triple> select(Object subject, Object predicate, Object object)
TripleQueryselect in interface TripleQuerypublic List<Triple> select(Triple select)
select - public boolean same(Object object, Object other)
TripleQuerysame in interface TripleQuerypublic TripleQueryImpl query(Object subject, Object predicate, Object object)
TripleQueryquery in interface TripleQuerypublic Triple selectSingle(Object subject, Object predicate, Object object)
TripleQueryselectSingle in interface TripleQuerypublic TripleQueryImpl queryTriple(Triple select)
TripleQueryqueryTriple in interface TripleQueryselect - - the Triple to use as a "query"public void setTriples(List<Triple> pTriples)
pTriples - - the triples to usepublic void setTriple()
public TripleQuery union(TripleQuery other)
TripleQueryunion in interface TripleQuerypublic TripleQuery intersect(TripleQuery otherQuery)
TripleQueryintersect in interface TripleQuerypublic TripleQuery complement(TripleQuery otherQuery)
TripleQuerycomplement in interface TripleQuerypublic int size()
TripleQuerysize in interface TripleQuerypublic List<Triple> getTriples()
TripleQuerygetTriples in interface TripleQuerypublic TripleStore getTripleStore()
TripleQuerygetTripleStore in interface TripleQueryCopyright © 2017. All Rights Reserved.