public abstract class AbstractSparqlRequest extends java.lang.Object implements ISparqlRequestGroup
| Modifier and Type | Field and Description |
|---|---|
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 SelectForm |
selectForm |
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 |
|---|---|
DeleteForm |
addDelete() |
InsertForm |
addInsert() |
InsertForm |
addInsertData() |
boolean |
addProperty(TripleElement object,
TripleElement property,
TripleElement target,
boolean optional)
Add an object property reference declaration in the OPTIONAL construct.
|
protected void |
appendTypeExpression(java.lang.StringBuilder buf,
Variable elt,
WhereType type)
Append a type expression.
|
boolean |
checkVariableExistence(java.lang.String varName)
Check the existence of a variable.
|
java.util.List<Bind> |
getBinds()
Return the bindings.
|
java.util.List<Coalesce> |
getCoalesces()
Return the coalesce expressions.
|
java.util.List<DeleteForm> |
getDeleteForms() |
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() |
InsertForm |
getLastInsertForm() |
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,PropertyRef>> |
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() |
WhereForm |
getWhereForm() |
boolean |
hasSelectVariable(java.lang.String var) |
boolean |
isSelectAll() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAutoVariable, addBind, addBind, addCoalesce, addDistance, addFilter, addGeometry, addLabel, addLabel, addProperty, addPropertyIndividualRef, addPropertyIndividualRef, addPropertyIndividualRef, addPropertyRef, addPropertyRef, addPropertyRef, addPropertyRef, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValues, addPropertyValues, addPropertyValues, addPropertyValues, addSubClassOf, addSubClassOf, addSubClassOfStar, addSubClassOfStar, addTime, addType, addType, addType, addType, addTypeSubClassOf, addTypeSubClassOf, addVariableSubClassOf, addVariableSubClassOf, addVariableSubClassOfStar, addVariableSubClassOfStar, addVariableType, addVariableType, addVariableType, addVariableType, addVariableTypeSubClassOf, addVariableTypeSubClassOf, getAdditionalVars, getDefaultSchema, getOffset, getOptionals, getRootRequest, getSelectMap, getUnions, hasAdditionalVariable, isCheckingVariablesExistence, isLoggingErrors, resetSPARQLResultprotected final SelectForm selectForm
protected final WhereForm whereForm
protected final java.util.List<DeleteForm> deleteForms
protected final java.util.List<InsertForm> insertForms
protected final java.util.List<Filter> filters
protected final java.util.List<Bind> binds
protected final java.util.List<Coalesce> coalesces
public boolean isSelectAll()
isSelectAll in interface ISparqlRequestGrouppublic boolean hasSelectVariable(java.lang.String var)
hasSelectVariable in interface ISparqlRequestGrouppublic DeleteForm addDelete()
addDelete in interface ISparqlRequestGrouppublic java.util.List<DeleteForm> getDeleteForms()
getDeleteForms in interface ISparqlRequestGrouppublic InsertForm addInsert()
addInsert 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,PropertyRef>> getPropertyIndRefs()
getPropertyIndRefs 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,
WhereType 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 referenceCopyright © 2025 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence