public abstract class AbstractSparqlRequest extends java.lang.Object implements ISparqlRequestGroup
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,Variable> |
additionalVars |
protected AskForm |
askForm |
protected java.util.List<Bind> |
binds |
protected java.util.List<Coalesce> |
coalesces |
protected java.util.List<DeleteForm> |
deleteForms |
protected java.util.List<Filter> |
filters |
protected java.util.List<InsertForm> |
insertForms |
protected java.util.Map<java.lang.String,IRI> |
iris |
protected SelectForm |
selectForm |
protected java.util.Map<java.lang.String,Variable> |
variables |
protected WhereForm |
whereForm |
LABEL, SUBCLASS_OF, SUBCLASS_OF_STAR, TYPE, TYPE_SUBCLASS_OFDISTANCE_FT, DISTANCE_KM, DISTANCE_M, DISTANCE_NM| Constructor and Description |
|---|
AbstractSparqlRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAdditionalVariable(java.lang.String varName)
Add an additional variable in the query.
|
boolean |
addAdditionalVariable(Variable var)
Add an additional variable in the query.
|
AskForm |
addAsk()
Add an ASK form.
|
DeleteForm |
addDelete()
Add a DELETE form.
|
InsertForm |
addInsert()
Add an INSERT form.
|
InsertForm |
addInsertData()
Add an INSERT DATA form.
|
boolean |
addIRI(IRI iri)
Add an IRI.
|
boolean |
addProperty(TripleElement object,
TripleElement property,
TripleElement target,
boolean optional)
Add an object property reference declaration in the OPTIONAL construct.
|
boolean |
addVariable(Variable var)
Add a variable.
|
boolean |
addVariableOrIRI(VariableOrIRI varOrIRI)
Add a variable or IRI.
|
protected void |
appendTypeExpression(java.lang.StringBuilder buf,
Variable elt,
WhereExpression type)
Append a type expression.
|
boolean |
checkVariableExistence(java.lang.String varName)
Check the existence of a variable.
|
Variable |
createAdditionalVariable(java.lang.String name)
Create an additional variable with a specified name.
|
IRI |
createIRI(java.lang.String name)
Create an IRI with a specified name.
|
Variable |
createVariable(java.lang.String name)
Create a variable with a specified name.
|
java.util.Map<java.lang.String,Variable> |
getAdditionalVars()
Return the additional variables.
|
AskForm |
getAskForm()
Return the ASK form.
|
java.util.List<Bind> |
getBinds()
Return the bindings.
|
java.util.List<Coalesce> |
getCoalesces()
Return the coalesce expressions.
|
java.util.List<DeleteForm> |
getDeleteForms()
Return the DELETE forms.
|
java.util.Map<java.lang.String,SparqlDistance> |
getDistances()
Return the geosparql distances.
|
java.util.List<Filter> |
getFilters()
Return the filters.
|
java.util.Map<java.lang.String,SparqlGeometry> |
getGeometries()
Return the geosparql geometries.
|
java.util.List<GraphPattern> |
getGraphPatterns()
Return the graph patterns.
|
java.util.List<InsertForm> |
getInsertForms()
Return the INSERT forms.
|
IRI |
getIRI(java.lang.String name)
Return the IRI with a specified name.
|
java.util.Map<java.lang.String,IRI> |
getIRIs()
Return the map of IRIs.
|
InsertForm |
getLastInsertForm()
Return the last INSERT form.
|
java.util.Map<java.lang.String,SparqlTime> |
getOwlTimes()
Return the owl-time expressions.
|
java.lang.String |
getPrefix(Property property)
Return the prefix of a property.
|
java.lang.String |
getPrefix(PropertyRef property)
Return the prefix of a property reference.
|
java.util.Map<java.lang.String,java.util.Map<java.lang.String,Individual>> |
getPropertyIndRefs()
Return the property individual references.
|
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Set<PropertyRef>>> |
getPropertyRefs()
Return the property references.
|
java.util.Map<java.lang.String,java.util.List<Property>> |
getPropertyValues()
Return the property values.
|
SelectForm |
getSelectForm()
Return the SELECT form.
|
Variable |
getVariable(java.lang.String name)
Return the variable with a specified name.
|
VariableOrIRI |
getVariableOrIRI(java.lang.String name)
Return the variable or IRI with a specified name.
|
java.util.Map<java.lang.String,Variable> |
getVariables()
Return the map of variables.
|
java.util.Iterator<Variable> |
getVariablesIterator()
Return an iterator on the variables.
|
java.util.Iterator<VariableOrIRI> |
getVariablesOrIRIIterator()
Return an iterator on the variables and IRIs.
|
char |
getVariableType(java.lang.String name)
Return the type of a variable.
|
java.util.List<WhereExpression> |
getWhereExpressions()
Return the where expressions in the request.
|
WhereForm |
getWhereForm()
Return the WHERE form.
|
boolean |
hasAdditionalVariable(java.lang.String var)
Return true if there is an additional variable with a specified name.
|
boolean |
hasAskForm()
Return true if there is an ASK form.
|
boolean |
hasIRI(java.lang.String name)
Return true if there is an IRI with a specified name.
|
boolean |
hasSelectVariable(java.lang.String var)
Return true if the SELECT part of the request has a specified variable.
|
boolean |
hasVariable(java.lang.String name)
Return true if there is a variable with a specified name.
|
boolean |
hasVariableOrIRI(java.lang.String name)
Return true if there is variable or IRI with a specified name.
|
boolean |
isSelectAll()
Return true if the request is a SELECT ALL (*).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAutoVariable, addAutoVariable, addBind, addBind, addCoalesce, addDistance, addFilter, addGeometry, addLabel, addLabel, 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, addVariableSubClassOf, addVariableSubClassOf, addVariableSubClassOfStar, addVariableSubClassOfStar, addVariableType, addVariableType, addVariableType, addVariableType, addVariableTypeSubClassOf, addVariableTypeSubClassOf, getAllVariables, getDefaultPrefix, getEffectiveWhereForm, getOffset, getOptionals, getRootRequest, getSelectList, getSelectMap, getUnions, hasDeleteForms, hasInsertForms, hasUnions, isCheckingVariablesExistence, isLoggingErrors, removeSelect, resetSPARQLResultprotected final SelectForm selectForm
protected WhereForm whereForm
protected final java.util.List<DeleteForm> deleteForms
protected final java.util.List<InsertForm> insertForms
protected AskForm askForm
protected final java.util.List<Filter> filters
protected final java.util.List<Bind> binds
protected final java.util.List<Coalesce> coalesces
protected final java.util.Map<java.lang.String,Variable> variables
protected final java.util.Map<java.lang.String,Variable> additionalVars
protected final java.util.Map<java.lang.String,IRI> iris
public boolean addVariable(Variable var)
addVariable in interface ISparqlRequestGroupvar - the variablepublic boolean addAdditionalVariable(java.lang.String varName)
addAdditionalVariable in interface ISparqlRequestGroupvarName - the variable namepublic boolean addAdditionalVariable(Variable var)
addAdditionalVariable in interface ISparqlRequestGroupvar - the variablepublic java.util.Map<java.lang.String,Variable> getAdditionalVars()
getAdditionalVars in interface ISparqlRequestGrouppublic boolean hasAdditionalVariable(java.lang.String var)
hasAdditionalVariable in interface ISparqlRequestGroupvar - the variable namepublic Variable createVariable(java.lang.String name)
createVariable in interface ISparqlRequestGroupname - the variable namepublic Variable createAdditionalVariable(java.lang.String name)
createAdditionalVariable in interface ISparqlRequestGroupname - the variable namepublic Variable getVariable(java.lang.String name)
getVariable in interface ISparqlRequestGroupname - the variable namepublic char getVariableType(java.lang.String name)
getVariableType in interface ISparqlRequestGroupname - the variable nameVariableTypepublic boolean hasVariable(java.lang.String name)
hasVariable in interface ISparqlRequestGroupname - the variable namepublic java.util.Map<java.lang.String,Variable> getVariables()
getVariables in interface ISparqlRequestGrouppublic boolean addIRI(IRI iri)
addIRI in interface ISparqlRequestGroupiri - the IRIpublic IRI createIRI(java.lang.String name)
createIRI in interface ISparqlRequestGroupname - the IRI namepublic IRI getIRI(java.lang.String name)
getIRI in interface ISparqlRequestGroupname - the IRI namepublic boolean hasIRI(java.lang.String name)
hasIRI in interface ISparqlRequestGroupname - the IRI namepublic java.util.Map<java.lang.String,IRI> getIRIs()
getIRIs in interface ISparqlRequestGrouppublic VariableOrIRI getVariableOrIRI(java.lang.String name)
getVariableOrIRI in interface ISparqlRequestGroupname - the variable or IRI namepublic boolean hasVariableOrIRI(java.lang.String name)
hasVariableOrIRI in interface ISparqlRequestGroupname - the variable or IRI namepublic boolean addVariableOrIRI(VariableOrIRI varOrIRI)
addVariableOrIRI in interface ISparqlRequestGroupvarOrIRI - the variable or IRIpublic boolean isSelectAll()
isSelectAll in interface ISparqlRequestGrouppublic boolean hasSelectVariable(java.lang.String var)
hasSelectVariable in interface ISparqlRequestGroupvar - the variable namepublic DeleteForm addDelete()
addDelete in interface ISparqlRequestGrouppublic java.util.List<DeleteForm> getDeleteForms()
getDeleteForms in interface ISparqlRequestGrouppublic InsertForm addInsert()
addInsert in interface ISparqlRequestGrouppublic AskForm addAsk()
addAsk in interface ISparqlRequestGrouppublic boolean hasAskForm()
hasAskForm in interface ISparqlRequestGrouppublic AskForm getAskForm()
getAskForm in interface ISparqlRequestGrouppublic InsertForm addInsertData()
addInsertData in interface ISparqlRequestGrouppublic InsertForm getLastInsertForm()
public java.util.List<InsertForm> getInsertForms()
getInsertForms in interface ISparqlRequestGrouppublic SelectForm getSelectForm()
getSelectForm in interface ISparqlRequestGrouppublic WhereForm getWhereForm()
getWhereForm in interface ISparqlRequestGrouppublic java.util.Map<java.lang.String,java.util.List<Property>> getPropertyValues()
getPropertyValues in interface ISparqlRequestGrouppublic java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Set<PropertyRef>>> getPropertyRefs()
getPropertyRefs in interface ISparqlRequestGrouppublic java.util.Map<java.lang.String,java.util.Map<java.lang.String,Individual>> getPropertyIndRefs()
getPropertyIndRefs in interface ISparqlRequestGrouppublic java.util.List<WhereExpression> getWhereExpressions()
getWhereExpressions in interface ISparqlRequestGrouppublic java.util.List<GraphPattern> getGraphPatterns()
getGraphPatterns in interface ISparqlRequestGrouppublic java.util.Map<java.lang.String,SparqlDistance> getDistances()
getDistances in interface ISparqlRequestGrouppublic java.util.Map<java.lang.String,SparqlGeometry> getGeometries()
getGeometries in interface ISparqlRequestGrouppublic java.util.List<Filter> getFilters()
getFilters in interface ISparqlRequestGrouppublic java.util.List<Bind> getBinds()
getBinds in interface ISparqlRequestGrouppublic java.util.List<Coalesce> getCoalesces()
getCoalesces in interface ISparqlRequestGrouppublic java.util.Map<java.lang.String,SparqlTime> getOwlTimes()
getOwlTimes in interface ISparqlRequestGrouppublic boolean addProperty(TripleElement object, TripleElement property, TripleElement target, boolean optional)
addProperty in interface ISparqlRequestGroupobject - the objectproperty - the propertytarget - the targetoptional - true for an optional patternpublic boolean checkVariableExistence(java.lang.String varName)
checkVariableExistence in interface ISparqlRequestGroupvarName - the variable nameprotected void appendTypeExpression(java.lang.StringBuilder buf,
Variable elt,
WhereExpression type)
buf - the String bufferelt - the variabletype - the expressionpublic java.lang.String getPrefix(Property property)
getPrefix in interface ISparqlRequestGroupproperty - the propertypublic java.lang.String getPrefix(PropertyRef property)
getPrefix in interface ISparqlRequestGroupproperty - the property referencepublic java.util.Iterator<Variable> getVariablesIterator()
getVariablesIterator in interface ISparqlRequestGrouppublic java.util.Iterator<VariableOrIRI> getVariablesOrIRIIterator()
getVariablesOrIRIIterator in interface ISparqlRequestGroupCopyright © 2025, 2026 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence