public class SparqlRequestGroup extends AbstractSparqlRequest implements java.io.Serializable
binds, coalesces, deleteForms, filters, insertForms, selectForm, whereFormLABEL, SUBCLASS_OF, SUBCLASS_OF_STAR, TYPE, TYPE_SUBCLASS_OFDISTANCE_FT, DISTANCE_KM, DISTANCE_M, DISTANCE_NM| Constructor and Description |
|---|
SparqlRequestGroup(SparqlRequest parent) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
addAutoVariable()
Add an additional variable in the query with a name chosen automatically.
|
Bind |
addBind()
Add a bind.
|
Bind |
addBind(java.lang.String var)
Add a bind.
|
Coalesce |
addCoalesce()
Add a coalesce.
|
boolean |
addDistance(java.lang.String var,
java.lang.String fromVar,
java.lang.String varDist,
short unit,
boolean isExact)
Add a distance property reference declaration in the WHERE part of the request.
|
Filter |
addFilter()
Add a filter.
|
boolean |
addGeometry(java.lang.String var,
java.lang.String varLat,
java.lang.String varLon,
boolean isExact)
Add a geometry declaration in the WHERE part of the request.
|
boolean |
addLabel(java.lang.String var,
TripleElement type)
Add a rdfs:label matching declaration in the WHERE part of the request.
|
boolean |
addPropertyIndividualRef(java.lang.String var,
TripleElement type,
java.lang.String individual,
boolean optional)
Add an object property individual declaration in the WHERE part of the request.
|
boolean |
addPropertyRef(java.lang.String var,
TripleElement type,
java.lang.String varRef,
boolean optional)
Add an object property reference declaration in the WHERE part of the request.
|
boolean |
addPropertyValue(java.lang.String var,
TripleElement type,
java.lang.Object propertyValue,
boolean optional)
Add a property value declaration in the WHERE part of the request.
|
boolean |
addPropertyValues(java.lang.String var,
TripleElement type,
java.util.List<? extends java.lang.Object> propValues,
boolean optional)
Add a property value declaration in the WHERE part of the request, for several values.
|
boolean |
addSubClassOf(java.lang.String var,
TripleElement type)
Add a rdf:subClassOf matching declaration in the WHERE part of the request.
|
boolean |
addSubClassOfStar(java.lang.String var,
TripleElement type)
Add a rdfs:subClassOf* matching declaration in the WHERE part of the request.
|
boolean |
addTime(java.lang.String var,
java.lang.String varTime,
boolean isDateTime)
Add a time declaration in the WHERE part of the request.
|
boolean |
addType(java.lang.String var,
short exprKind,
TripleElement type)
Add a matching declaration in the WHERE part of the request.
|
boolean |
addType(java.lang.String var,
TripleElement type)
Add a rdf:type matching declaration in the WHERE part of the request.
|
boolean |
addTypeSubClassOf(java.lang.String var,
TripleElement type)
Add a rdf:type/rdfs:subClassOf matching declaration in the WHERE part of the request.
|
boolean |
addVariableSubClassOf(java.lang.String var,
TripleElement type)
Add a rdf:subClassOf matching declaration in the WHERE part of the request.
|
boolean |
addVariableSubClassOfStar(java.lang.String var,
TripleElement type)
Add a rdfs:subClassOf* matching declaration in the WHERE part of the request.
|
boolean |
addVariableType(java.lang.String var,
short exprKind,
TripleElement type)
Add a matching declaration in the WHERE part of the request.
|
boolean |
addVariableType(java.lang.String var,
TripleElement type)
Add a rdf:type matching declaration in the WHERE part of the request.
|
boolean |
addVariableTypeSubClassOf(java.lang.String var,
TripleElement type)
Add a rdf:type/rdfs:subClassOf matching declaration in the WHERE part of the request.
|
boolean |
checkValidity()
Check the validity of the SPARQL expression for the group expression.
|
java.util.Map<java.lang.String,Variable> |
getAdditionalVars()
Return the additional variables.
|
java.lang.String |
getDefaultSchema()
Return the schema.
|
int |
getOffset()
Return the OFFSET of the number of results.
|
java.util.List<SparqlRequestGroup> |
getOptionals() |
SparqlRequest |
getRootRequest() |
java.util.Map<java.lang.String,SelectItem> |
getSelectMap()
Return the map opf SELECT items.
|
java.util.List<Union> |
getUnions() |
java.util.Set<WhereType> |
getWhereTypes() |
boolean |
hasAdditionalVariable(java.lang.String var) |
boolean |
isCheckingVariablesExistence()
Return true if the variables existence if checked during the creation of the request.
|
boolean |
isLoggingErrors()
Return true if errors should be logged by the framework.
|
void |
resetSPARQLResult() |
void |
writeSPARQLImpl(java.lang.StringBuilder buf) |
void |
writeSPARQLImpl(java.lang.StringBuilder buf,
boolean inUnion) |
addDelete, addInsert, addInsertData, addProperty, appendTypeExpression, checkVariableExistence, getBinds, getCoalesces, getDeleteForms, getDistances, getFilters, getGeometries, getGraphPatterns, getInsertForms, getLastInsertForm, getOwlTimes, getPrefix, getPrefix, getPropertyIndRefs, getPropertyRefs, getPropertyValues, getSelectForm, getWhereForm, hasSelectVariable, isSelectAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddLabel, addProperty, addPropertyIndividualRef, addPropertyIndividualRef, addPropertyRef, addPropertyRef, addPropertyRef, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValues, addPropertyValues, addPropertyValues, addSubClassOf, addSubClassOfStar, addType, addType, addTypeSubClassOf, addVariableSubClassOf, addVariableSubClassOfStar, addVariableType, addVariableType, addVariableTypeSubClassOfpublic SparqlRequestGroup(SparqlRequest parent)
public SparqlRequest getRootRequest()
getRootRequest in interface ISparqlRequestGrouppublic java.util.List<Union> getUnions()
getUnions in interface ISparqlRequestGrouppublic java.lang.String addAutoVariable()
addAutoVariable in interface ISparqlRequestGrouppublic java.lang.String getDefaultSchema()
getDefaultSchema in interface ISparqlRequestGrouppublic java.util.Set<WhereType> getWhereTypes()
public int getOffset()
getOffset in interface ISparqlRequestGrouppublic boolean isCheckingVariablesExistence()
checkValidity() before the generation.isCheckingVariablesExistence in interface ISparqlRequestGrouppublic boolean isLoggingErrors()
isLoggingErrors in interface ISparqlRequestGrouppublic java.util.List<SparqlRequestGroup> getOptionals()
getOptionals in interface ISparqlRequestGrouppublic java.util.Map<java.lang.String,SelectItem> getSelectMap()
ISparqlRequestGroupgetSelectMap in interface ISparqlRequestGrouppublic java.util.Map<java.lang.String,Variable> getAdditionalVars()
getAdditionalVars in interface ISparqlRequestGrouppublic boolean hasAdditionalVariable(java.lang.String var)
hasAdditionalVariable in interface ISparqlRequestGrouppublic boolean addDistance(java.lang.String var,
java.lang.String fromVar,
java.lang.String varDist,
short unit,
boolean isExact)
addDistance in interface ISparqlRequestGroupvar - the variable namefromVar - the other elment variable namevarDist - the distance variable nameunit - the unitisExact - the name for an exact geometrypublic Filter addFilter()
addFilter in interface ISparqlRequestGrouppublic Bind addBind()
addBind in interface ISparqlRequestGrouppublic Bind addBind(java.lang.String var)
addBind in interface ISparqlRequestGroupvar - the variablepublic Coalesce addCoalesce()
addCoalesce in interface ISparqlRequestGrouppublic boolean addTime(java.lang.String var,
java.lang.String varTime,
boolean isDateTime)
addTime in interface ISparqlRequestGroupvar - the variable namevarTime - the time variable nameisDateTime - true for a dateTime propertypublic boolean addGeometry(java.lang.String var,
java.lang.String varLat,
java.lang.String varLon,
boolean isExact)
addGeometry in interface ISparqlRequestGroupvar - the variable namevarLat - the latitude variable namevarLon - the longitude variable nameisExact - the name for an exact geometrypublic boolean addPropertyValue(java.lang.String var,
TripleElement type,
java.lang.Object propertyValue,
boolean optional)
addPropertyValue in interface ISparqlRequestGroupvar - the variable nametype - the typepropertyValue - the property valueoptional - true for an optional patternpublic boolean addPropertyValues(java.lang.String var,
TripleElement type,
java.util.List<? extends java.lang.Object> propValues,
boolean optional)
addPropertyValues in interface ISparqlRequestGroupvar - the variable nametype - the typepropValues - the property valuesoptional - true for an optional patternpublic boolean addPropertyRef(java.lang.String var,
TripleElement type,
java.lang.String varRef,
boolean optional)
addPropertyRef in interface ISparqlRequestGroupvar - the variable nametype - the typevarRef - the variable to use for the referenceoptional - true for an optional patternpublic boolean addPropertyIndividualRef(java.lang.String var,
TripleElement type,
java.lang.String individual,
boolean optional)
addPropertyIndividualRef in interface ISparqlRequestGroupvar - the variable nametype - the typeindividual - the individual nameoptional - true for an optional patternpublic boolean addSubClassOf(java.lang.String var,
TripleElement type)
addSubClassOf in interface ISparqlRequestGroupvar - the variable nametype - the typepublic boolean addLabel(java.lang.String var,
TripleElement type)
addLabel in interface ISparqlRequestGroupvar - the variable nametype - the typepublic boolean addSubClassOfStar(java.lang.String var,
TripleElement type)
addSubClassOfStar in interface ISparqlRequestGroupvar - the variable nametype - the typepublic boolean addType(java.lang.String var,
short exprKind,
TripleElement type)
ExpressionTypes.TYPE: a rdf:type expressionExpressionTypes.SUBCLASS_OF: a rdfs:subClassOf expressionExpressionTypes.SUBCLASS_OF_STAR: a rdfs:subClassOf* expressionExpressionTypes.TYPE_SUBCLASS_OF: a rdf:type/rdfs:subClassOf expressionaddType in interface ISparqlRequestGroupvar - the variable nameexprKind - the expression kindtype - the typepublic boolean addTypeSubClassOf(java.lang.String var,
TripleElement type)
addTypeSubClassOf in interface ISparqlRequestGroupvar - the variable nametype - the typepublic boolean addType(java.lang.String var,
TripleElement type)
addType in interface ISparqlRequestGroupvar - the variable nametype - the typepublic boolean addVariableSubClassOf(java.lang.String var,
TripleElement type)
addVariableSubClassOf in interface ISparqlRequestGroupvar - the variable nametype - the typepublic boolean addVariableSubClassOfStar(java.lang.String var,
TripleElement type)
addVariableSubClassOfStar in interface ISparqlRequestGroupvar - the variable nametype - the typepublic boolean addVariableType(java.lang.String var,
short exprKind,
TripleElement type)
ExpressionTypes.TYPE: a rdf:type expressionExpressionTypes.SUBCLASS_OF: a rdfs:subClassOf expressionExpressionTypes.SUBCLASS_OF_STAR: a rdfs:subClassOf* expressionExpressionTypes.TYPE_SUBCLASS_OF: a rdf:type/rdfs:subClassOf expressionaddVariableType in interface ISparqlRequestGroupvar - the variable nameexprKind - the expression kindtype - the typepublic boolean addVariableTypeSubClassOf(java.lang.String var,
TripleElement type)
addVariableTypeSubClassOf in interface ISparqlRequestGroupvar - the variable nametype - the typepublic boolean addVariableType(java.lang.String var,
TripleElement type)
addVariableType in interface ISparqlRequestGroupvar - the variable nametype - the typepublic boolean checkValidity()
public void resetSPARQLResult()
resetSPARQLResult in interface ISparqlRequestGrouppublic void writeSPARQLImpl(java.lang.StringBuilder buf)
public void writeSPARQLImpl(java.lang.StringBuilder buf,
boolean inUnion)
Copyright © 2025 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence