Class TriplePatternElementFactory.UnspecifiedVariable<CTT,NVT,AVT>
- java.lang.Object
-
- org.linkeddatafragments.fragments.tpf.TriplePatternElementFactory.Variable<CTT,NVT,AVT>
-
- org.linkeddatafragments.fragments.tpf.TriplePatternElementFactory.UnspecifiedVariable<CTT,NVT,AVT>
-
- Type Parameters:
CTT-NVT-AVT-
- All Implemented Interfaces:
ITriplePatternElement<CTT,NVT,AVT>
- Enclosing class:
- TriplePatternElementFactory<CTT,NVT,AVT>
public static class TriplePatternElementFactory.UnspecifiedVariable<CTT,NVT,AVT> extends TriplePatternElementFactory.Variable<CTT,NVT,AVT>
-
-
Constructor Summary
Constructors Constructor Description UnspecifiedVariable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AVTasAnonymousVariable()Returns a representation of this element as a blank node (assuming it is a specific, but non-named variable).NVTasNamedVariable()Returns a representation of this element as a named variable (assuming it is a specific variable that has a name).booleanisAnonymousVariable()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.booleanisNamedVariable()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.booleanisSpecificVariable()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.StringtoString()-
Methods inherited from class org.linkeddatafragments.fragments.tpf.TriplePatternElementFactory.Variable
asConstantTerm, isVariable
-
-
-
-
Method Detail
-
isSpecificVariable
public boolean isSpecificVariable()
Description copied from interface:ITriplePatternElementReturns 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. The latter (unspecified variables) is possible because when a client requests a triple pattern fragment, it may omit triple pattern related parameters.- Returns:
-
isNamedVariable
public boolean isNamedVariable()
Description copied from interface:ITriplePatternElementReturns 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. If this element is a specific variable that has a name (that is, this method returns true), the named variable can be obtained by the methodITriplePatternElement.asNamedVariable().- Returns:
-
asNamedVariable
public NVT asNamedVariable()
Description copied from interface:ITriplePatternElementReturns a representation of this element as a named variable (assuming it is a specific variable that has a name).- Returns:
-
isAnonymousVariable
public boolean isAnonymousVariable()
Description copied from interface:ITriplePatternElementReturns 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. If this element is a specific variable denoted by a blank node (that is, this method returns true), the blank node can be obtained by the methodITriplePatternElement.asAnonymousVariable().- Returns:
-
asAnonymousVariable
public AVT asAnonymousVariable()
Description copied from interface:ITriplePatternElementReturns a representation of this element as a blank node (assuming it is a specific, but non-named variable).- Returns:
-
-