ConstantTermType - type for representing constants in triple patterns
(i.e., URIs and literals)NamedVarType - type for representing named variables in triple patternsAnonVarType - type for representing anonymous variables in triple
patterns (i.e., variables denoted by a blank node)public interface ITriplePatternElement<ConstantTermType,NamedVarType,AnonVarType>
| Modifier and Type | Method and Description |
|---|---|
AnonVarType |
asAnonymousVariable()
Returns a representation of this element as a blank node (assuming
it is a specific, but non-named variable).
|
ConstantTermType |
asConstantTerm()
Returns a representation of this element as a constant RDF term (i.e.,
a URI or a literal).
|
NamedVarType |
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).
|
boolean isVariable()
boolean isSpecificVariable()
boolean isNamedVariable()
asNamedVariable().NamedVarType asNamedVariable() throws UnsupportedOperationException
UnsupportedOperationException - If this element is not a specific variable that has a name
(i.e., if isNamedVariable() returns false).boolean isAnonymousVariable()
asAnonymousVariable().AnonVarType asAnonymousVariable() throws UnsupportedOperationException
UnsupportedOperationException - If this element is not a specific anonymous variable (i.e.,
if isAnonymousVariable() returns false).ConstantTermType asConstantTerm() throws UnsupportedOperationException
UnsupportedOperationException - If this element is not a constant RDF term but a variable
(i.e., if isVariable() returns true).Copyright © 2021. All rights reserved.