Package tech.oxfordsemantic.jrdfox.logic
Class Query
java.lang.Object
tech.oxfordsemantic.jrdfox.logic.Formula
tech.oxfordsemantic.jrdfox.logic.Query
- All Implemented Interfaces:
java.io.Serializable
public class Query extends Formula
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Query.OrderBy
-
Field Summary
Fields Modifier and Type Field Description static long
QUERY_NO_LIMIT
static long
QUERY_NO_OFFSET
-
Method Summary
Modifier and Type Method Description <E> E
accept(LogicVisitor<E> visitor)
static Query
create(QueryType queryType, boolean distinct, java.util.List<Variable> answerVariables, Formula queryFormula)
static Query
create(QueryType queryType, boolean distinct, java.util.List<Variable> answerVariables, Formula queryFormula, java.util.List<Query.OrderBy> orderVariables, long offset, long limit)
static Query
create(QueryType queryType, boolean distinct, java.util.List<Variable> answerVariables, Formula queryFormula, java.util.List<Query.OrderBy> orderVariables, long offset, long limit, java.util.List<Atom> deletePattern, java.util.List<Atom> insertPattern)
static Query
create(QueryType queryType, boolean distinct, Variable[] answerVariables, Formula queryFormula)
static Query
create(QueryType queryType, boolean distinct, Variable[] answerVariables, Formula queryFormula, Query.OrderBy[] orderVariables, long offset, long limit)
static Query
create(QueryType queryType, boolean distinct, Variable[] answerVariables, Formula queryFormula, Query.OrderBy[] orderVariables, long offset, long limit, Atom[] deletePattern, Atom[] insertPattern)
Variable
getAnswerVariable(int index)
java.util.List<Variable>
getAnswerVariables()
Atom
getDeleteAtom(int index)
java.util.List<Atom>
getDeletePattern()
Atom
getInsertAtom(int index)
java.util.List<Atom>
getInsertPattern()
long
getLimit()
int
getNumberOfAnswerVariables()
int
getNumberOfDeleteAtoms()
int
getNumberOfInsertAtoms()
int
getNumberOfOrderVariables()
long
getOffset()
Query.OrderBy
getOrderVariable(int index)
java.util.List<Query.OrderBy>
getOrderVariables()
Formula
getQueryFormula()
QueryType
getQueryType()
boolean
isAskQuery()
boolean
isDistinct()
void
toString(Prefixes prefixes, java.util.function.Consumer<java.lang.String> consumer, LogicFormat logicFormat)
-
Field Details
-
QUERY_NO_OFFSET
public static final long QUERY_NO_OFFSET- See Also:
- Constant Field Values
-
QUERY_NO_LIMIT
public static final long QUERY_NO_LIMIT- See Also:
- Constant Field Values
-
-
Method Details
-
getQueryType
-
isDistinct
public boolean isDistinct() -
isAskQuery
public boolean isAskQuery() -
getAnswerVariables
-
getNumberOfAnswerVariables
public int getNumberOfAnswerVariables() -
getAnswerVariable
-
getQueryFormula
-
getOrderVariables
-
getNumberOfOrderVariables
public int getNumberOfOrderVariables() -
getOrderVariable
-
getOffset
public long getOffset() -
getLimit
public long getLimit() -
getDeletePattern
-
getNumberOfDeleteAtoms
public int getNumberOfDeleteAtoms() -
getDeleteAtom
-
getInsertPattern
-
getNumberOfInsertAtoms
public int getNumberOfInsertAtoms() -
getInsertAtom
-
accept
-
toString
public void toString(Prefixes prefixes, java.util.function.Consumer<java.lang.String> consumer, LogicFormat logicFormat) -
create
-
create
-
create
public static Query create(QueryType queryType, boolean distinct, java.util.List<Variable> answerVariables, Formula queryFormula, java.util.List<Query.OrderBy> orderVariables, long offset, long limit) -
create
public static Query create(QueryType queryType, boolean distinct, Variable[] answerVariables, Formula queryFormula, Query.OrderBy[] orderVariables, long offset, long limit) -
create
-
create
-