- All Implemented Interfaces:
Serializable
,Comparable<ValueSpace>
,Constable
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
- (Lowest) no value assigned to the variable or expression in this solution.
- Blank nodes
- IRIs
- 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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
static int
comparisonOrder
(ValueSpace vs1, ValueSpace vs2) This is notEnum.compareTo(E)
.static ValueSpace
Returns the enum constant of this class with the specified name.static ValueSpace[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.static ValueSpace
valueSpace
(NodeValue nv) Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
VSPACE_UNDEF
-
VSPACE_BLANKNODE
-
VSPACE_URI
-
VSPACE_VARIABLE
-
VSPACE_STRING
-
VSPACE_LANG
-
VSPACE_NUM
-
VSPACE_BOOLEAN
-
VSPACE_DATETIME
-
VSPACE_DATE
-
VSPACE_TIME
-
VSPACE_DURATION
-
VSPACE_CDT_LIST
-
VSPACE_CDT_MAP
-
VSPACE_SORTKEY
-
VSPACE_QUOTED_TRIPLE
-
VSPACE_UNKNOWN
-
VSPACE_DIFFERENT
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
comparisonOrder
public int comparisonOrder() -
comparisonOrder
This is notEnum.compareTo(E)
. -
valueSpace
-