Enum FNFunction
- java.lang.Object
-
- java.lang.Enum<FNFunction>
-
- org.eclipse.rdf4j.queryrender.sparql.experimental.FNFunction
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FNFunction>
enum FNFunction extends java.lang.Enum<FNFunction>
Some functions that are declared as built-in in the SPARQL 1.1 specification are also identifiable as URI functions in the fn: namespace. RDF4J immediately converts them into the URI representation when parsing. This leads to failures, however, with some triple stores (like Blazegraph) that do not understand the URI representation of built-ins and try to process them as custom URI functions.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
FNFunction(java.lang.String name, IRI uri)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<FNFunction>
byName(java.lang.String name)
static java.util.Optional<FNFunction>
byUri(java.lang.String uriAsString)
static java.util.Optional<FNFunction>
byUri(IRI uri)
java.lang.String
getName()
IRI
getUri()
static FNFunction
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FNFunction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONCAT
public static final FNFunction CONCAT
-
CONTAINS
public static final FNFunction CONTAINS
-
DAY
public static final FNFunction DAY
-
ENCODE_FOR_URI
public static final FNFunction ENCODE_FOR_URI
-
STRENDS
public static final FNFunction STRENDS
-
HOURS
public static final FNFunction HOURS
-
LCASE
public static final FNFunction LCASE
-
MINUTES
public static final FNFunction MINUTES
-
MONTH
public static final FNFunction MONTH
-
ABS
public static final FNFunction ABS
-
CEIL
public static final FNFunction CEIL
-
FLOOR
public static final FNFunction FLOOR
-
ROUND
public static final FNFunction ROUND
-
REPLACE
public static final FNFunction REPLACE
-
SECONDS
public static final FNFunction SECONDS
-
STRSTARTS
public static final FNFunction STRSTARTS
-
STRLEN
public static final FNFunction STRLEN
-
SUBSTR
public static final FNFunction SUBSTR
-
STRBEFORE
public static final FNFunction STRBEFORE
-
STRAFTER
public static final FNFunction STRAFTER
-
TIMEZONE
public static final FNFunction TIMEZONE
-
UCASE
public static final FNFunction UCASE
-
YEAR
public static final FNFunction YEAR
-
-
Field Detail
-
name
private final java.lang.String name
-
uri
private final IRI uri
-
-
Constructor Detail
-
FNFunction
private FNFunction(java.lang.String name, IRI uri)
-
-
Method Detail
-
values
public static FNFunction[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FNFunction c : FNFunction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FNFunction valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
byName
public static java.util.Optional<FNFunction> byName(java.lang.String name)
-
byUri
public static java.util.Optional<FNFunction> byUri(IRI uri)
-
byUri
public static java.util.Optional<FNFunction> byUri(java.lang.String uriAsString)
-
getName
public java.lang.String getName()
-
getUri
public IRI getUri()
-
-