CTT - NVT - AVT - public static class TriplePatternElementFactory.ConstantRDFTerm<CTT,NVT,AVT> extends Object implements ITriplePatternElement<CTT,NVT,AVT>
| Constructor and Description |
|---|
ConstantRDFTerm(CTT term) |
| Modifier and Type | Method and Description |
|---|---|
AVT |
asAnonymousVariable()
Returns a representation of this element as a blank node (assuming
it is a specific, but non-named variable).
|
CTT |
asConstantTerm()
Returns a representation of this element as a constant RDF term (i.e.,
a URI or a literal).
|
NVT |
asNamedVariable()
Returns a representation of this element as a named variable (assuming
it is a specific variable that has a name).
|
boolean |
isAnonymousVariable()
Returns true if this element is a specific variable that does not have
a name (i.e., it is denoted by a blank node), and false if either it is
not a specific variable or it is a specific variable that has a name.
|
boolean |
isNamedVariable()
Returns true if this element is a specific variable that has a name
(i.e., it is denoted by a string that begins with a question mark),
and false if either it is not a specific variable or it is a specific
variable that is denoted by a blank node.
|
boolean |
isSpecificVariable()
Returns true if this element is a specific variable, and false if either
it is not a variable (but a URI or literal) or it is some variable that
is not specified.
|
boolean |
isVariable()
Returns true if this element is a variable (specific or unspecified).
|
String |
toString() |
protected final CTT t
public ConstantRDFTerm(CTT term)
term - public boolean isVariable()
ITriplePatternElementisVariable in interface ITriplePatternElement<CTT,NVT,AVT>public boolean isSpecificVariable()
ITriplePatternElementisSpecificVariable in interface ITriplePatternElement<CTT,NVT,AVT>public boolean isNamedVariable()
ITriplePatternElementITriplePatternElement.asNamedVariable().isNamedVariable in interface ITriplePatternElement<CTT,NVT,AVT>public NVT asNamedVariable()
ITriplePatternElementasNamedVariable in interface ITriplePatternElement<CTT,NVT,AVT>public boolean isAnonymousVariable()
ITriplePatternElementITriplePatternElement.asAnonymousVariable().isAnonymousVariable in interface ITriplePatternElement<CTT,NVT,AVT>public AVT asAnonymousVariable()
ITriplePatternElementasAnonymousVariable in interface ITriplePatternElement<CTT,NVT,AVT>public CTT asConstantTerm()
ITriplePatternElementasConstantTerm in interface ITriplePatternElement<CTT,NVT,AVT>Copyright © 2022. All rights reserved.