Interface ITriplePatternElement<ConstantTermType,​NamedVarType,​AnonVarType>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method 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).
    • Method Detail

      • isVariable

        boolean isVariable()
        Returns true if this element is a variable (specific or unspecified).
        Returns:
      • isSpecificVariable

        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. The latter (unspecified variables) is possible because when a client requests a triple pattern fragment, it may omit triple pattern related parameters.
        Returns:
      • isNamedVariable

        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. 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 method asNamedVariable().
        Returns:
      • isAnonymousVariable

        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. 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 method asAnonymousVariable().
        Returns: