public abstract class AbstractSparqVariableFormExpression extends AbstractSparqFormExpression implements ISparqVariableFormExpression
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,SparqlDistance> |
distances |
protected java.util.Map<java.lang.String,SparqlGeometry> |
geometries |
protected java.util.List<GraphPattern> |
graphPatterns |
static java.lang.String |
NO_TYPE |
protected java.util.Map<java.lang.String,SparqlTime> |
owltimes |
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,Individual>> |
propertyIndRefs |
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Set<PropertyRef>>> |
propertyRefs |
protected java.util.Map<java.lang.String,java.util.List<Property>> |
propertyValues |
protected java.util.List<WhereExpression> |
whereTypes |
parentRequestTYPE_ASK, TYPE_DELETE, TYPE_INSERT, TYPE_INSERT_DATA, TYPE_SELECT, TYPE_WHERE| Constructor and Description |
|---|
AbstractSparqVariableFormExpression(ISparqlRequestGroup parentRequest) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addDistance(java.lang.String var,
java.lang.String fromVar,
java.lang.String varDist,
short unit,
boolean isExact)
Add a distance property reference declaration.
|
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.
|
boolean |
addGeometry(java.lang.String var,
java.lang.String varLat,
java.lang.String varLon,
boolean isExact)
Add a geometry declaration.
|
boolean |
addGeometry(java.lang.String var,
java.lang.String varLat,
java.lang.String varLon,
boolean isExact,
boolean optional)
Add a geometry declaration.
|
OperationResult<WhereExpression> |
addLabel(java.lang.String var,
TripleElement type)
Add a rdfs:label matching declaration.
|
OperationResult<WhereExpression> |
addLabel(VariableOrIRI varOrIRI,
TripleElement type)
Add a rdfs:label matching declaration.
|
OperationResult<GraphPattern> |
addProperty(TripleElement object,
TripleElement property,
TripleElement target,
boolean optional)
Add an object property reference declaration in the OPTIONAL construct.
|
OperationResult<? extends SparqlElement> |
addPropertyIndividualRef(java.lang.String var,
TripleElement type,
java.lang.String individual,
boolean optional)
Add an object property individual declaration.
|
OperationResult<Property> |
addPropertyIRIValue(java.lang.String iri,
TripleElement type,
java.lang.Object propertyValue,
boolean optional)
Add a property value declaration.
|
OperationResult<PropertyRef> |
addPropertyRef(java.lang.String var,
TripleElement type,
java.lang.String varRef,
boolean optional)
Add an object property reference declaration.
|
OperationResult<PropertyRef> |
addPropertyRef(VariableOrIRI varOrIRI,
TripleElement type,
java.lang.String varRef,
boolean optional)
Add an object property reference declaration in the OPTIONAL construct.
|
OperationResult<PropertyRef> |
addPropertyRef(VariableOrIRI varOrIRI,
TripleElement type,
VariableOrIRI varOrIRIRef,
boolean optional)
Add an object property reference declaration.
|
OperationResult<? extends SparqlElement> |
addPropertyValue(java.lang.String var,
TripleElement type,
java.lang.Object propertyValue,
IRI valueType,
boolean optional)
Add a property value declaration.
|
OperationResult<? extends SparqlElement> |
addPropertyValue(java.lang.String var,
TripleElement type,
java.lang.Object propertyValue,
java.lang.Object valueType,
boolean optional)
Add a property value declaration.
|
OperationResult<? extends SparqlElement> |
addPropertyValue(VariableOrIRI varOrIRI,
TripleElement type,
java.lang.Object propertyValue,
java.lang.Object valueType,
boolean optional)
Add a property value declaration.
|
OperationResult<Property> |
addPropertyValues(java.lang.String var,
TripleElement type,
java.util.List<? extends java.lang.Object> propValues,
boolean optional)
Add a property value declaration, for several values.
|
OperationResult<WhereExpression> |
addSubClassOf(java.lang.String var,
TripleElement type)
Add a rdfs:subClassOf matching declaration.
|
OperationResult<WhereExpression> |
addSubClassOf(VariableOrIRI varOrIRI,
TripleElement type)
Add a rdfs:subClassOf matching declaration.
|
OperationResult<WhereExpression> |
addSubClassOfStar(java.lang.String var,
TripleElement type)
Add a rdfs:subClassOf* matching declaration.
|
OperationResult<WhereExpression> |
addSubClassOfStar(VariableOrIRI varOrIRI,
TripleElement type)
Add a rdfs:subClassOf* matching declaration.
|
boolean |
addTime(java.lang.String var,
java.lang.String varTime,
boolean isDateTime)
Add a time declaration.
|
boolean |
addTime(java.lang.String var,
java.lang.String varTime,
boolean isDateTime,
boolean optional)
Add a time declaration.
|
OperationResult<WhereExpression> |
addType(java.lang.String var,
short exprKind,
TripleElement type)
Add a matching declaration.
|
OperationResult<WhereExpression> |
addType(java.lang.String var,
TripleElement type)
Add a rdf:type matching declaration.
|
OperationResult<WhereExpression> |
addType(VariableOrIRI varOrIRI,
short exprKind,
TripleElement type)
Add a matching declaration.
|
OperationResult<WhereExpression> |
addType(VariableOrIRI varOrIRI,
TripleElement type)
Add a rdf:type matching declaration.
|
OperationResult<WhereExpression> |
addType(VariableOrIRI varOrIRI,
TripleElement type,
short exprType,
boolean isVar)
Add a type matching declaration.
|
OperationResult<WhereExpression> |
addType(VariableOrIRI varOrIRI,
TripleElement type,
short exprType,
boolean isVar,
java.lang.String comment)
Add a type matching declaration.
|
OperationResult<WhereExpression> |
addTypeSubClassOf(java.lang.String var,
TripleElement type)
Add a rdf:type/rdfs:subClassOf matching declaration.
|
OperationResult<WhereExpression> |
addVariableSubClassOf(java.lang.String var,
TripleElement typeVar)
Add a rdfs:subClassOf matching declaration.
|
OperationResult<WhereExpression> |
addVariableSubClassOfStar(java.lang.String var,
TripleElement typeVar)
Add a rdfs:subClassOf* matching declaration.
|
OperationResult<WhereExpression> |
addVariableType(java.lang.String var,
short exprKind,
TripleElement typeVar)
Add a matching declaration.
|
OperationResult<WhereExpression> |
addVariableType(java.lang.String var,
TripleElement element)
Add a rdf:type matching declaration.
|
OperationResult<WhereExpression> |
addVariableTypeSubClassOf(java.lang.String var,
TripleElement typeVar)
Add a rdf:type/rdfs:subClassOf matching declaration.
|
boolean |
checkValidity()
Check the validity of the SPARQL expression.
|
java.util.Map<java.lang.String,SparqlDistance> |
getDistances()
Return the geosparql distances.
|
java.util.Map<java.lang.String,SparqlGeometry> |
getGeometries()
Return the geosparql geometries.
|
java.util.List<GraphPattern> |
getGraphPatterns()
Return the graph patterns.
|
java.util.Map<java.lang.String,SparqlTime> |
getOwlTimes()
Return the owl-time expressions.
|
SparqlRequest |
getParentRequest()
Return the parent request.
|
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.
|
java.util.List<WhereExpression> |
getWhereExpressions()
Return the WHERE types.
|
getLevel, getSparqlRequestclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddProperty, addPropertyIndividualRef, addPropertyIndividualRef, addPropertyIRIValue, addPropertyRef, addPropertyRef, addPropertyRef, addPropertyRef, addPropertyRef, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValues, addPropertyValues, addPropertyValues, getFilters, getUnions, hasFilters, hasUnionsformExpressionTypeAsString, getFormExpressionType, getSparqlRequestgetLevel, indent, indentMore, indentParentpublic static final java.lang.String NO_TYPE
protected final java.util.Map<java.lang.String,java.util.List<Property>> propertyValues
protected final java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Set<PropertyRef>>> propertyRefs
protected final java.util.Map<java.lang.String,java.util.Map<java.lang.String,Individual>> propertyIndRefs
protected final java.util.List<GraphPattern> graphPatterns
protected final java.util.Map<java.lang.String,SparqlDistance> distances
protected final java.util.Map<java.lang.String,SparqlGeometry> geometries
protected final java.util.Map<java.lang.String,SparqlTime> owltimes
protected final java.util.List<WhereExpression> whereTypes
public AbstractSparqVariableFormExpression(ISparqlRequestGroup parentRequest)
public SparqlRequest getParentRequest()
ISparqVariableFormExpressiongetParentRequest in interface ISparqVariableFormExpressionpublic java.util.List<WhereExpression> getWhereExpressions()
public java.util.Map<java.lang.String,java.util.List<Property>> getPropertyValues()
getPropertyValues in interface ISparqVariableFormExpressionpublic java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Set<PropertyRef>>> getPropertyRefs()
getPropertyRefs in interface ISparqVariableFormExpressionpublic java.util.Map<java.lang.String,java.util.Map<java.lang.String,Individual>> getPropertyIndRefs()
getPropertyIndRefs in interface ISparqVariableFormExpressionpublic java.util.List<GraphPattern> getGraphPatterns()
getGraphPatterns in interface ISparqVariableFormExpressionpublic java.util.Map<java.lang.String,SparqlDistance> getDistances()
getDistances in interface ISparqVariableFormExpressionpublic java.util.Map<java.lang.String,SparqlGeometry> getGeometries()
getGeometries in interface ISparqVariableFormExpressionpublic java.util.Map<java.lang.String,SparqlTime> getOwlTimes()
getOwlTimes in interface ISparqVariableFormExpressionpublic OperationResult<WhereExpression> addSubClassOf(java.lang.String var, TripleElement type)
addSubClassOf in interface ISparqVariableFormExpressionvar - the variable nametype - the typepublic OperationResult<WhereExpression> addSubClassOf(VariableOrIRI varOrIRI, TripleElement type)
addSubClassOf in interface ISparqVariableFormExpressionvarOrIRI - the variable or IRItype - the typepublic OperationResult<WhereExpression> addLabel(java.lang.String var, TripleElement type)
addLabel in interface ISparqVariableFormExpressionvar - the variable nametype - the typepublic OperationResult<WhereExpression> addLabel(VariableOrIRI varOrIRI, TripleElement type)
addLabel in interface ISparqVariableFormExpressionvarOrIRI - the variable or IRItype - the typepublic OperationResult<WhereExpression> addSubClassOfStar(java.lang.String var, TripleElement type)
addSubClassOfStar in interface ISparqVariableFormExpressionvar - the variable nametype - the typepublic OperationResult<WhereExpression> addSubClassOfStar(VariableOrIRI varOrIRI, TripleElement type)
addSubClassOfStar in interface ISparqVariableFormExpressionvarOrIRI - the variable or IRItype - the typepublic OperationResult<WhereExpression> addTypeSubClassOf(java.lang.String var, TripleElement type)
addTypeSubClassOf in interface ISparqVariableFormExpressionvar - the variable nametype - the typepublic OperationResult<WhereExpression> 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 ISparqVariableFormExpressionvar - the variable nameexprKind - the expression kindtype - the typepublic OperationResult<WhereExpression> addType(VariableOrIRI varOrIRI, 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 ISparqVariableFormExpressionvarOrIRI - the variable or IRIexprKind - the expression kindtype - the typepublic OperationResult<WhereExpression> addType(java.lang.String var, TripleElement type)
addType in interface ISparqVariableFormExpressionvar - the variable nametype - the typepublic OperationResult<WhereExpression> addType(VariableOrIRI varOrIRI, TripleElement type)
addType in interface ISparqVariableFormExpressionvarOrIRI - the variable or IRItype - the typepublic OperationResult<WhereExpression> addVariableSubClassOf(java.lang.String var, TripleElement typeVar)
addVariableSubClassOf in interface ISparqVariableFormExpressionvar - the variable nametypeVar - the type variablepublic OperationResult<WhereExpression> addVariableSubClassOfStar(java.lang.String var, TripleElement typeVar)
addVariableSubClassOfStar in interface ISparqVariableFormExpressionvar - the variable nametypeVar - the type variablepublic OperationResult<WhereExpression> addVariableTypeSubClassOf(java.lang.String var, TripleElement typeVar)
addVariableTypeSubClassOf in interface ISparqVariableFormExpressionvar - the variable nametypeVar - the type variablepublic OperationResult<WhereExpression> addVariableType(java.lang.String var, short exprKind, TripleElement typeVar)
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 ISparqVariableFormExpressionvar - the variable nameexprKind - the expression kindtypeVar - the type variablepublic OperationResult<WhereExpression> addVariableType(java.lang.String var, TripleElement element)
addVariableType in interface ISparqVariableFormExpressionvar - the variable nameelement - the triple elementpublic OperationResult<WhereExpression> addType(VariableOrIRI varOrIRI, TripleElement type, short exprType, boolean isVar)
varOrIRI - the variable or IRItype - the type elementexprType - the expression typeisVar - true if this is for a variablepublic OperationResult<WhereExpression> addType(VariableOrIRI varOrIRI, TripleElement type, short exprType, boolean isVar, java.lang.String comment)
varOrIRI - the variable or IRItype - the type elementexprType - the expresscomment - the comment of the expression (may be null)isVar - true if this is for a variablepublic boolean 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 patternpublic OperationResult<GraphPattern> addProperty(TripleElement object, TripleElement property, TripleElement target, boolean optional)
addProperty in interface ISparqVariableFormExpressionobject - the objectproperty - the propertytarget - the targetoptional - true for an optional patternpublic boolean addDistance(java.lang.String var,
java.lang.String fromVar,
java.lang.String varDist,
short unit,
boolean isExact)
addDistance in interface ISparqVariableFormExpressionvar - the variable namefromVar - the other elment variable namevarDist - the distance variable nameunit - the unitisExact - the name for an exact geometrypublic boolean addTime(java.lang.String var,
java.lang.String varTime,
boolean isDateTime,
boolean optional)
addTime in interface ISparqVariableFormExpressionvar - the variable namevarTime - the time variable nameisDateTime - true for a dateTime propertyoptional - true for an optional patternpublic boolean addTime(java.lang.String var,
java.lang.String varTime,
boolean isDateTime)
addTime in interface ISparqVariableFormExpressionvar - 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 ISparqVariableFormExpressionvar - the variable namevarLat - the latitude variable namevarLon - the longitude variable nameisExact - the name for an exact geometrypublic boolean addGeometry(java.lang.String var,
java.lang.String varLat,
java.lang.String varLon,
boolean isExact,
boolean optional)
var - the variable namevarLat - the latitude variable namevarLon - the longitude variable nameisExact - the name for an exact geometryoptional - true for an optional patternpublic OperationResult<Property> addPropertyIRIValue(java.lang.String iri, TripleElement type, java.lang.Object propertyValue, boolean optional)
addPropertyIRIValue in interface ISparqVariableFormExpressioniri - the iritype - the propertypropertyValue - the property valueoptional - true for an optional patternpublic OperationResult<? extends SparqlElement> addPropertyValue(VariableOrIRI varOrIRI, TripleElement type, java.lang.Object propertyValue, java.lang.Object valueType, boolean optional)
addPropertyValue in interface ISparqVariableFormExpressionvarOrIRI - the variable or IRItype - the propertypropertyValue - the property valueoptional - true for an optional patternvalueType - the value typepublic OperationResult<? extends SparqlElement> addPropertyValue(java.lang.String var, TripleElement type, java.lang.Object propertyValue, java.lang.Object valueType, boolean optional)
addPropertyValue in interface ISparqVariableFormExpressionvar - the variable nametype - the typepropertyValue - the property valueoptional - true for an optional patternvalueType - the value typepublic OperationResult<? extends SparqlElement> addPropertyValue(java.lang.String var, TripleElement type, java.lang.Object propertyValue, IRI valueType, boolean optional)
addPropertyValue in interface ISparqVariableFormExpressionvar - the variable nametype - the typepropertyValue - the property valueoptional - true for an optional patternvalueType - the value typepublic OperationResult<Property> addPropertyValues(java.lang.String var, TripleElement type, java.util.List<? extends java.lang.Object> propValues, boolean optional)
addPropertyValues in interface ISparqVariableFormExpressionvar - the variable nametype - the typepropValues - the property valuesoptional - true for an optional patternpublic OperationResult<PropertyRef> addPropertyRef(VariableOrIRI varOrIRI, TripleElement type, java.lang.String varRef, boolean optional)
addPropertyRef in interface ISparqVariableFormExpressionvarOrIRI - the variable or IRItype - the propertyvarRef - the variable to use for the referenceoptional - true for an optional propertypublic OperationResult<PropertyRef> addPropertyRef(java.lang.String var, TripleElement type, java.lang.String varRef, boolean optional)
addPropertyRef in interface ISparqVariableFormExpressionvar - the variable nametype - the typevarRef - the variable to use for the referenceoptional - true for an optional patternpublic OperationResult<PropertyRef> addPropertyRef(VariableOrIRI varOrIRI, TripleElement type, VariableOrIRI varOrIRIRef, boolean optional)
addPropertyRef in interface ISparqVariableFormExpressionvarOrIRI - the variable or IRItype - the typevarOrIRIRef - the variable or IRI to use for the referenceoptional - true for an optional patternpublic OperationResult<? extends SparqlElement> addPropertyIndividualRef(java.lang.String var, TripleElement type, java.lang.String individual, boolean optional)
addPropertyIndividualRef in interface ISparqVariableFormExpressionvar - the variable nametype - the typeindividual - the individual nameoptional - true for an optional patternpublic boolean checkValidity()
Copyright © 2025, 2026 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence