public class SparqlTriple extends SparqlPrefix
| Modifier and Type | Field and Description |
|---|---|
protected SparqlElement |
object
RDF object
|
protected SparqlElement |
predicate
RDF predicate
|
protected SparqlElement |
subject
RDF subject
|
protected SparqlTriple |
subQuery
A sub-query of this query
|
prefixIDuri| Constructor and Description |
|---|
SparqlTriple()
Create a new instance of SparqlTriple
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
funcQueryString(java.lang.String functionType)
Get a string-based description of this query component for a function.
|
SparqlElement |
getElement(java.lang.String elemID)
Get the element with the specified unique ID.
|
SparqlElement |
getObject()
Get the full triple object field.
|
SparqlElement |
getPredicate()
Get the full triple predicate field.
|
SparqlElement |
getSubject()
Get the full triple subject field.
|
SparqlTriple |
getSubQuery()
Get the sub-query 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
|
void |
setObject(SparqlElement thisObject)
Set the full triple object field.
|
void |
setObject(java.lang.String thisObject)
Set the triple object field.
|
void |
setObject(java.lang.String thisObject,
java.lang.String thisType)
Set the triple object field.
|
void |
setPredicate(SparqlElement thisPredicate)
Set the full triple predicate field.
|
void |
setPredicate(java.lang.String thisPredicate)
Set the triple predicate field.
|
void |
setPredicate(java.lang.String thisPredicate,
java.lang.String thisType)
Set the triple predicate field.
|
void |
setSubject(SparqlElement thisSubject)
Set the triple subject field.
|
void |
setSubject(java.lang.String thisSubject)
Set the triple subject field.
|
void |
setSubject(java.lang.String thisSubject,
java.lang.String thisType)
Set the triple subject field.
|
void |
setSubQuery(SparqlTriple thisSubQuery)
Set a sub-query field to this query element.
|
formatPrefix, getPrefixID, setPrefixIDgetUri, setUrigetType, getUuid, setFilter, setFunction, setNot, setType, setUuid, setValueprotected SparqlElement subject
protected SparqlElement predicate
protected SparqlElement object
protected SparqlTriple subQuery
public void reset()
reset in class SparqlPrefixpublic SparqlElement getElement(java.lang.String elemID)
getElement in class SparqlEndpointelemID - the element id.public void setSubject(java.lang.String thisSubject)
thisSubject - the subject name value.public void setSubject(java.lang.String thisSubject,
java.lang.String thisType)
thisSubject - the subject name value.thisType - the additional type description. Can be null.public void setSubject(SparqlElement thisSubject)
thisSubject - the full subject value.public SparqlElement getSubject()
public void setPredicate(java.lang.String thisPredicate)
thisPredicate - the predicate name value.public void setPredicate(java.lang.String thisPredicate,
java.lang.String thisType)
thisPredicate - the predicate name value.thisType - the additional type description. Can be null.public void setPredicate(SparqlElement thisPredicate)
thisPredicate - the predicate value.public SparqlElement getPredicate()
public void setObject(java.lang.String thisObject)
thisObject - the object name value.public void setObject(java.lang.String thisObject,
java.lang.String thisType)
thisObject - the object name value.thisType - the additional type description. Can be null.public void setObject(SparqlElement thisObject)
thisObject - the object value.public SparqlElement getObject()
public void setSubQuery(SparqlTriple thisSubQuery)
thisSubQuery - the sub-query.public SparqlTriple getSubQuery()
public java.lang.String getValue()
getValue in class SparqlPrefixpublic java.lang.String queryString()
queryString in class SparqlPrefixpublic java.lang.String queryString(boolean addType)
addType - if true add additional type info.protected java.lang.String funcQueryString(java.lang.String functionType)
functionType - the function type as different formats are required.public java.lang.String partToString()
partToString in class SparqlPrefix