public interface ISparqlRequest extends ISparqlRequestGroup
LABEL, SUBCLASS_OF, SUBCLASS_OF_STAR, TYPE, TYPE_SUBCLASS_OFDISTANCE_FT, DISTANCE_KM, DISTANCE_M, DISTANCE_NM| Modifier and Type | Method and Description |
|---|---|
boolean |
addDistance(java.lang.String var,
java.lang.String fromVar,
java.lang.String varDist,
short unit,
boolean isExact,
boolean optional)
Add a distance property reference declaration in the WHERE part of the request.
|
SparqlRequest |
addInnerQuery()
Add an inner query.
|
SparqlRequestGroup |
addOptionalConstruct()
Add an OPTIONAL construct with multiple expressions.
|
boolean |
addSelect(Expression expr,
java.lang.String asVar)
Add an expression to use for the SELECT part of the Sparql request.
|
boolean |
addSelect(SelectExpression selectExpr)
Add an expression to use for the SELECT part of the Sparql request.
|
boolean |
addSelect(java.lang.String... vars)
Add several variables to use for the SELECT part of the Sparql request.
|
boolean |
addSelect(java.lang.String var)
Add a variable to use for the SELECT part of the Sparql request.
|
Variable |
addSelectVariable(SelectExpression selectExpr)
Add a variable for a select expression.
|
Union |
addUnionConstruct()
Add an UNION construct with multiple expressions.
|
boolean |
checkValidity()
Check the validity of the SPARQL expression.
|
java.util.List<SparqlRequest> |
getInnerQueries()
Return the inner queries.
|
default java.lang.String |
getSPARQL()
Return the constructed sparql request.
|
java.lang.String |
getSPARQL(boolean includeComments)
Return the constructed sparql request.
|
boolean |
hasBinds()
Return true if there are binds in the root request of all other children requests.
|
boolean |
hasFilters()
Return true if there are filters in the root request of all other children requests.
|
boolean |
hasInnerQueries()
Return true if there are inner queries.
|
boolean |
isSelect(java.lang.String var)
Return true if a variable is in the SELECT list of variables.
|
default boolean |
isWellFormed()
Return true if the request is well-formed.
|
void |
setSelect(java.lang.String... vars)
Set the variables to use for the SELECT part of the Sparql request.
|
boolean |
setSelectAll()
Set "*" for SELECT all variables.
|
boolean |
variableExists(java.lang.String var)
Return true if a variable is defined.
|
addAdditionalVariable, addAdditionalVariable, addAsk, addAutoVariable, addAutoVariable, addBind, addBind, addCoalesce, addDelete, addDistance, addFilter, addGeometry, addHaving, addInsert, addInsertData, addIRI, addLabel, addLabel, addProperty, addProperty, addPropertyIndividualRef, addPropertyIndividualRef, addPropertyIndividualRef, addPropertyRef, addPropertyRef, addPropertyRef, addPropertyRef, addPropertyRef, addPropertyRef, addPropertyRef, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValues, addPropertyValues, addPropertyValues, addPropertyValues, addSubClassOf, addSubClassOf, addSubClassOfStar, addSubClassOfStar, addTime, addType, addType, addType, addType, addType, addTypeSubClassOf, addTypeSubClassOf, addVariable, addVariableOrIRI, addVariableSubClassOf, addVariableSubClassOf, addVariableSubClassOfStar, addVariableSubClassOfStar, addVariableType, addVariableType, addVariableType, addVariableType, addVariableTypeSubClassOf, addVariableTypeSubClassOf, checkVariableExistence, createAdditionalVariable, createIRI, createVariable, getAdditionalVars, getAllVariables, getAskForm, getBinds, getCoalesces, getDefaultPrefix, getDeleteForms, getDistances, getEffectiveWhereForm, getFilters, getGeometries, getGraphPatterns, getInsertForms, getIRI, getIRIs, getOffset, getOptionals, getOwlTimes, getPrefix, getPrefix, getPropertyIndRefs, getPropertyRefs, getPropertyValues, getRootRequest, getSelectForm, getSelectList, getSelectMap, getUnions, getVariable, getVariableOrIRI, getVariables, getVariablesIterator, getVariablesOrIRIIterator, getVariableType, getWhereExpressions, getWhereForm, hasAdditionalVariable, hasAskForm, hasDeleteForms, hasInsertForms, hasIRI, hasSelectVariable, hasUnions, hasVariable, hasVariableOrIRI, isCheckingVariablesExistence, isFlat, isLoggingErrors, isSelectAll, removeSelect, resetSPARQLResultgetLevel, indent, indentMore, indentParentdefault boolean isWellFormed()
boolean hasBinds()
boolean hasFilters()
hasFilters in interface ISparqlRequestGroupboolean isSelect(java.lang.String var)
var - the variable nameboolean setSelectAll()
void setSelect(java.lang.String... vars)
ISparqlRequestGroup.isSelectAll() property.vars - the variablesboolean addSelect(java.lang.String... vars)
vars - the variablesboolean addSelect(Expression expr, java.lang.String asVar)
expr - the expressionasVar - the AS variableboolean addSelect(SelectExpression selectExpr)
selectExpr - the select expressionboolean addSelect(java.lang.String var)
var - the variableVariable addSelectVariable(SelectExpression selectExpr)
selectExpr - the select expressionboolean addDistance(java.lang.String var,
java.lang.String fromVar,
java.lang.String varDist,
short unit,
boolean isExact,
boolean optional)
var - the variable namefromVar - the other element variable namevarDist - the distance variable nameunit - the distance unitisExact - the name for an exact geometryoptional - true for an optional patternSparqlRequestGroup addOptionalConstruct()
Union addUnionConstruct()
boolean variableExists(java.lang.String var)
var - the variable nameSparqlRequest addInnerQuery()
java.util.List<SparqlRequest> getInnerQueries()
boolean hasInnerQueries()
boolean checkValidity()
default java.lang.String getSPARQL()
java.lang.String getSPARQL(boolean includeComments)
includeComments - true if the comments should be included in the serializationCopyright © 2025, 2026 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence