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 |
protected java.util.Map<java.lang.String,SparqlTime> |
owltimes |
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,PropertyRef>> |
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.Set<WhereType> |
whereTypes |
parentRequestTYPE_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 in the WHERE part of the request.
|
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.
|
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 |
addGeometry(java.lang.String var,
java.lang.String varLat,
java.lang.String varLon,
boolean isExact,
boolean optional)
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 |
addLabel(VariableOrIRI varOrIRI,
TripleElement type)
Add a rdfs:label matching declaration in the WHERE part of the request.
|
boolean |
addProperty(TripleElement object,
TripleElement property,
TripleElement target,
boolean optional)
Add an object property reference declaration in the OPTIONAL construct.
|
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 |
addPropertyIRIValue(java.lang.String iri,
TripleElement type,
java.lang.Object propertyValue,
boolean optional)
Add a property value 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 |
addPropertyRef(VariableOrIRI varOrIRI,
TripleElement type,
java.lang.String varRef,
boolean optional)
Add an object property reference declaration in the OPTIONAL construct.
|
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 |
addPropertyValue(VariableOrIRI varOrIRI,
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 rdfs:subClassOf matching declaration in the WHERE part of the request.
|
boolean |
addSubClassOf(VariableOrIRI varOrIRI,
TripleElement type)
Add a rdfs: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 |
addSubClassOfStar(VariableOrIRI varOrIRI,
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 |
addTime(java.lang.String var,
java.lang.String varTime,
boolean isDateTime,
boolean optional)
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 |
addType(VariableOrIRI varOrIRI,
short exprKind,
TripleElement type)
Add a matching declaration in the WHERE part of the request.
|
boolean |
addType(VariableOrIRI varOrIRI,
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 typeVar)
Add a rdfs:subClassOf matching declaration in the WHERE part of the request.
|
boolean |
addVariableSubClassOfStar(java.lang.String var,
TripleElement typeVar)
Add a rdfs:subClassOf* matching declaration in the WHERE part of the request.
|
boolean |
addVariableType(java.lang.String var,
short exprKind,
TripleElement typeVar)
Add a matching declaration in the WHERE part of the request.
|
boolean |
addVariableType(java.lang.String var,
TripleElement element)
Add a rdf:type matching declaration in the WHERE part of the request.
|
boolean |
addVariableTypeSubClassOf(java.lang.String var,
TripleElement typeVar)
Add a rdf:type/rdfs:subClassOf matching declaration in the WHERE part of the request.
|
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.
|
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.
|
java.util.Set<WhereType> |
getWhereTypes() |
getSparqlRequestclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddProperty, addPropertyIndividualRef, addPropertyIndividualRef, addPropertyIRIValue, addPropertyRef, addPropertyRef, addPropertyRef, addPropertyRef, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValues, addPropertyValues, addPropertyValuesformExpressionTypeAsString, getFormExpressionType, getSparqlRequestprotected 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,PropertyRef>> 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.Set<WhereType> whereTypes
public AbstractSparqVariableFormExpression(ISparqlRequestGroup parentRequest)
public java.util.Set<WhereType> getWhereTypes()
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,PropertyRef>> 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 boolean addSubClassOf(java.lang.String var,
TripleElement type)
addSubClassOf in interface ISparqVariableFormExpressionvar - the variable nametype - the typepublic boolean addSubClassOf(VariableOrIRI varOrIRI, TripleElement type)
addSubClassOf in interface ISparqVariableFormExpressionvarOrIRI - the variable or IRItype - the typepublic boolean addLabel(java.lang.String var,
TripleElement type)
addLabel in interface ISparqVariableFormExpressionvar - the variable nametype - the typepublic boolean addLabel(VariableOrIRI varOrIRI, TripleElement type)
addLabel in interface ISparqVariableFormExpressionvarOrIRI - the variable or IRItype - the typepublic boolean addSubClassOfStar(java.lang.String var,
TripleElement type)
addSubClassOfStar in interface ISparqVariableFormExpressionvar - the variable nametype - the typepublic boolean addSubClassOfStar(VariableOrIRI varOrIRI, TripleElement type)
addSubClassOfStar in interface ISparqVariableFormExpressionvarOrIRI - the variable or IRItype - the typepublic boolean addTypeSubClassOf(java.lang.String var,
TripleElement type)
addTypeSubClassOf in interface ISparqVariableFormExpressionvar - 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 ISparqVariableFormExpressionvar - the variable nameexprKind - the expression kindtype - the typepublic boolean 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 boolean addType(java.lang.String var,
TripleElement type)
addType in interface ISparqVariableFormExpressionvar - the variable nametype - the typepublic boolean addType(VariableOrIRI varOrIRI, TripleElement type)
addType in interface ISparqVariableFormExpressionvarOrIRI - the variable or IRItype - the typepublic boolean addVariableSubClassOf(java.lang.String var,
TripleElement typeVar)
addVariableSubClassOf in interface ISparqVariableFormExpressionvar - the variable nametypeVar - the type variablepublic boolean addVariableSubClassOfStar(java.lang.String var,
TripleElement typeVar)
addVariableSubClassOfStar in interface ISparqVariableFormExpressionvar - the variable nametypeVar - the type variablepublic boolean addVariableTypeSubClassOf(java.lang.String var,
TripleElement typeVar)
addVariableTypeSubClassOf in interface ISparqVariableFormExpressionvar - the variable nametypeVar - the type variablepublic boolean 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 boolean addVariableType(java.lang.String var,
TripleElement element)
addVariableType in interface ISparqVariableFormExpressionvar - the variable nameelement - the triple elementpublic 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 boolean 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 boolean 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 boolean addPropertyValue(VariableOrIRI varOrIRI, TripleElement type, java.lang.Object propertyValue, boolean optional)
addPropertyValue in interface ISparqVariableFormExpressionvarOrIRI - the variable or IRItype - the propertypropertyValue - the property valueoptional - true for an optional patternpublic boolean addPropertyValue(java.lang.String var,
TripleElement type,
java.lang.Object propertyValue,
boolean optional)
addPropertyValue in interface ISparqVariableFormExpressionvar - 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 ISparqVariableFormExpressionvar - the variable nametype - the typepropValues - the property valuesoptional - true for an optional patternpublic boolean 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 boolean 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 boolean 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 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence