Enum Class ValueSpace

java.lang.Object
java.lang.Enum<ValueSpace>
org.apache.jena.sparql.expr.ValueSpace
All Implemented Interfaces:
Serializable, Comparable<ValueSpace>, Constable

public enum ValueSpace extends Enum<ValueSpace>
Value spaces. This covers the classification in the from the SPARQL specification and, for literals, the value spaces of the primitive datatypes of XSD.

The comparisonOrder() method it the sort order (comparison space), before considering value and RDF term comparisons. This covers the classification in the from the SPARQL specification and the effective value spaces of the primitive datatypes of XSD (e.g. there comparison across atomic type values spaces such as xsd:dateTime and {xsd:date}). All numbers are one comparison space.

The SPARQL specification section 15.1

  1. (Lowest) no value assigned to the variable or expression in this solution.
  2. Blank nodes
  3. IRIs
  4. RDF literals See also XPath and XQuery Functions and Operators.

    Do not use the JDK provided Enum.compareTo(E) to order value spaces for SPARQL sorting and comparision.

  • Enum Constant Details

    • VSPACE_UNDEF

      public static final ValueSpace VSPACE_UNDEF
    • VSPACE_BLANKNODE

      public static final ValueSpace VSPACE_BLANKNODE
    • VSPACE_URI

      public static final ValueSpace VSPACE_URI
    • VSPACE_VARIABLE

      public static final ValueSpace VSPACE_VARIABLE
    • VSPACE_STRING

      public static final ValueSpace VSPACE_STRING
    • VSPACE_LANG

      public static final ValueSpace VSPACE_LANG
    • VSPACE_NUM

      public static final ValueSpace VSPACE_NUM
    • VSPACE_BOOLEAN

      public static final ValueSpace VSPACE_BOOLEAN
    • VSPACE_DATETIME

      public static final ValueSpace VSPACE_DATETIME
    • VSPACE_DATE

      public static final ValueSpace VSPACE_DATE
    • VSPACE_TIME

      public static final ValueSpace VSPACE_TIME
    • VSPACE_DURATION

      public static final ValueSpace VSPACE_DURATION
    • VSPACE_CDT_LIST

      public static final ValueSpace VSPACE_CDT_LIST
    • VSPACE_CDT_MAP

      public static final ValueSpace VSPACE_CDT_MAP
    • VSPACE_SORTKEY

      public static final ValueSpace VSPACE_SORTKEY
    • VSPACE_QUOTED_TRIPLE

      public static final ValueSpace VSPACE_QUOTED_TRIPLE
    • VSPACE_UNKNOWN

      public static final ValueSpace VSPACE_UNKNOWN
    • VSPACE_DIFFERENT

      public static final ValueSpace VSPACE_DIFFERENT
  • Method Details

    • values

      public static ValueSpace[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ValueSpace valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • comparisonOrder

      public int comparisonOrder()
    • comparisonOrder

      public static int comparisonOrder(ValueSpace vs1, ValueSpace vs2)
      This is not Enum.compareTo(E).
    • valueSpace

      public static ValueSpace valueSpace(NodeValue nv)