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)
TripleQuery
select
in interface TripleQuery
public List<Triple> select(Triple select)
select
- public boolean same(Object object, Object other)
TripleQuery
same
in interface TripleQuery
public TripleQueryImpl query(Object subject, Object predicate, Object object)
TripleQuery
query
in interface TripleQuery
public Triple selectSingle(Object subject, Object predicate, Object object)
TripleQuery
selectSingle
in interface TripleQuery
public TripleQueryImpl queryTriple(Triple select)
TripleQuery
queryTriple
in interface TripleQuery
select
- - 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)
TripleQuery
union
in interface TripleQuery
public TripleQuery intersect(TripleQuery otherQuery)
TripleQuery
intersect
in interface TripleQuery
public TripleQuery complement(TripleQuery otherQuery)
TripleQuery
complement
in interface TripleQuery
public int size()
TripleQuery
size
in interface TripleQuery
public List<Triple> getTriples()
TripleQuery
getTriples
in interface TripleQuery
public TripleStore getTripleStore()
TripleQuery
getTripleStore
in interface TripleQuery
Copyright © 2017. All Rights Reserved.