java.lang.Object
org.apache.jena.graph.Node
org.apache.jena.graph.Node_Variable
org.apache.jena.sparql.core.Var
All Implemented Interfaces:
Serializable

public class Var extends org.apache.jena.graph.Node_Variable
A SPARQL variable
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.jena.graph.Node

    org.apache.jena.graph.Node.NotLiteral
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static Var
     

    Fields inherited from class org.apache.jena.graph.Node

    ANY, noLangTag, noTextDirection
  • Method Summary

    Modifier and Type
    Method
    Description
    static Var
    alloc(String varName)
     
    static Var
    alloc(org.apache.jena.graph.Node v)
     
    static Var
    alloc(org.apache.jena.graph.Node_Variable v)
     
    static Var
     
    static Var
     
    static String
     
    final boolean
    equals(Object other)
     
     
    final int
     
    boolean
     
    static boolean
    isAllocVar(org.apache.jena.graph.Node node)
     
    static boolean
     
    boolean
     
    static boolean
     
    boolean
     
    static boolean
    isBlankNodeVar(org.apache.jena.graph.Node node)
     
    static boolean
     
    boolean
     
    static boolean
    isNamedVar(org.apache.jena.graph.Node node)
     
    static boolean
     
    static boolean
     
    static boolean
    isRenamedVar(org.apache.jena.graph.Node node)
     
    static boolean
    isVar(org.apache.jena.graph.Node node)
     
    static org.apache.jena.graph.Node
    lookup(Function<Var,org.apache.jena.graph.Node> access, org.apache.jena.graph.Node node)
    Return the value of the access function or node itself.
    static org.apache.jena.graph.Node
    lookup(Function<Var,org.apache.jena.graph.Node> access, Var var)
    Return the value of the access function or var itself.
    static org.apache.jena.graph.Node
    lookup(Binding binding, org.apache.jena.graph.Node node)
    Return the value in the binding (if node is a Var) or the node itself.
    static org.apache.jena.graph.Node
    lookup(Binding binding, Var var)
    Return the value in the binding or the variable itself.
    static List<Var>
    Convert a collection of variable names to variables
    static List<String>
    Return a list of String names from a collection of variables

    Methods inherited from class org.apache.jena.graph.Node_Variable

    getName, isConcrete, isVariable, toString, toString, visitWith

    Methods inherited from class org.apache.jena.graph.Node

    getBlankNodeLabel, getGraph, getIndexingValue, getLiteral, getLiteralDatatype, getLiteralDatatypeURI, getLiteralLanguage, getLiteralLexicalForm, getLiteralTextDirection, getLiteralValue, getLocalName, getNameSpace, getTriple, getURI, hasURI, isBlank, isExt, isLiteral, isNodeGraph, isNodeTriple, isURI, matches, sameTermAs, sameValueAs

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • ANON

      public static Var ANON
  • Method Details

    • alloc

      public static Var alloc(String varName)
    • alloc

      public static Var alloc(org.apache.jena.graph.Node_Variable v)
    • alloc

      public static Var alloc(org.apache.jena.graph.Node v)
    • alloc

      public static Var alloc(Var v)
    • alloc

      public static Var alloc(ExprVar nv)
    • lookup

      public static org.apache.jena.graph.Node lookup(Binding binding, org.apache.jena.graph.Node node)
      Return the value in the binding (if node is a Var) or the node itself.
    • lookup

      public static org.apache.jena.graph.Node lookup(Binding binding, Var var)
      Return the value in the binding or the variable itself.
    • lookup

      public static org.apache.jena.graph.Node lookup(Function<Var,org.apache.jena.graph.Node> access, org.apache.jena.graph.Node node)
      Return the value of the access function or node itself.
    • lookup

      public static org.apache.jena.graph.Node lookup(Function<Var,org.apache.jena.graph.Node> access, Var var)
      Return the value of the access function or var itself.
    • getVarName

      public String getVarName()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class org.apache.jena.graph.Node_Variable
    • equals

      public final boolean equals(Object other)
      Overrides:
      equals in class org.apache.jena.graph.Node_Variable
    • isNamedVar

      public boolean isNamedVar()
    • isBlankNodeVar

      public boolean isBlankNodeVar()
    • isAllocVar

      public boolean isAllocVar()
    • isAnonVar

      public boolean isAnonVar()
    • canonical

      public static String canonical(String x)
    • isVar

      public static boolean isVar(org.apache.jena.graph.Node node)
    • isRenamedVar

      public static boolean isRenamedVar(org.apache.jena.graph.Node node)
    • isRenamedVar

      public static boolean isRenamedVar(String x)
    • isNamedVar

      public static boolean isNamedVar(org.apache.jena.graph.Node node)
    • isNamedVarName

      public static boolean isNamedVarName(String x)
    • isBlankNodeVar

      public static boolean isBlankNodeVar(org.apache.jena.graph.Node node)
    • isBlankNodeVarName

      public static boolean isBlankNodeVarName(String x)
    • isAllocVar

      public static boolean isAllocVar(org.apache.jena.graph.Node node)
    • isAllocVarName

      public static boolean isAllocVarName(String x)
    • varList

      public static List<Var> varList(Collection<String> varNames)
      Convert a collection of variable names to variables
    • isAnonVar

      public static boolean isAnonVar(Var var)
    • varNames

      public static List<String> varNames(Collection<Var> vars)
      Return a list of String names from a collection of variables