public class SparqlWhere extends SparqlElement
Modifier and Type | Field and Description |
---|---|
protected SparqlSelect |
select
Select description for this where clause, can be null.
|
protected SparqlService |
service
Service description to execute statement on, can be null.
|
protected java.util.ArrayList<SparqlElement> |
subClauses
List of sub-clause statements.
|
Constructor and Description |
---|
SparqlWhere()
Create a new instance of SparqlWhere
|
Modifier and Type | Method and Description |
---|---|
void |
addClause(SparqlSubWhere thisWhere)
Add a new sub-where statement.
|
void |
addClause(SparqlTriple thisTriple)
Add a new triple statement.
|
java.lang.String |
addSelect(SparqlTriple thisSelect)
Add a select statement projection.
|
void |
addService(java.lang.String thisService)
Set the service field.
|
java.util.ArrayList<SparqlElement> |
getClauses()
Get the full list of sub-clause statements.
|
SparqlElement |
getElement(java.lang.String elemID)
Get the element with the specified unique ID.
|
SparqlSelect |
getSelect()
Get the select statement, to add condition or other to it.
|
SparqlService |
getService()
Get the sparql Service field.
|
java.lang.String |
getValue()
Get a string-based value for this element.
|
java.lang.String |
partToString()
Get a string-based description of this query component for info purposes only.
|
java.lang.String |
queryString()
Get a string-based description of this query component, with add type as true.
|
java.lang.String |
queryString(boolean addType)
Get a string-based description of this query component.
|
void |
reset()
Reset the values
|
getType, getUuid, setFilter, setFunction, setNot, setType, setUuid, setValue
protected SparqlSelect select
protected SparqlService service
protected java.util.ArrayList<SparqlElement> subClauses
public void reset()
reset
in class SparqlElement
public SparqlElement getElement(java.lang.String elemID)
getElement
in class SparqlElement
elemID
- the element id.public java.lang.String addSelect(SparqlTriple thisSelect)
thisSelect
- the projection statement to add.public SparqlSelect getSelect()
public void addService(java.lang.String thisService)
thisService
- the service uri value.public SparqlService getService()
public void addClause(SparqlTriple thisTriple)
thisTriple
- the triple statement.public void addClause(SparqlSubWhere thisWhere)
thisWhere
- the sub-where statement.public java.util.ArrayList<SparqlElement> getClauses()
public java.lang.String getValue()
getValue
in class SparqlElement
public java.lang.String queryString()
queryString
in class SparqlElement
public java.lang.String queryString(boolean addType)
addType
- if true add additional type info.public java.lang.String partToString()
partToString
in class SparqlElement