public class FunctionRegistry extends Object
Note: Use an alternative namespace for functions which do not have official namespaces.
Modifier and Type | Class and Description |
---|---|
static interface |
FunctionRegistry.AggregateFactory
Marker interface for aggregate functions.
|
static interface |
FunctionRegistry.Annotations |
static class |
FunctionRegistry.CastFactory |
static class |
FunctionRegistry.CompareFactory |
static class |
FunctionRegistry.DateFactory |
static class |
FunctionRegistry.DigestFactory |
static class |
FunctionRegistry.ExistsFactory
Factory for EXISTS() and NOT EXISTS().
|
static interface |
FunctionRegistry.Factory
An interface for creating
IValueExpression s from a function URI
and its arguments. |
static class |
FunctionRegistry.GroupConcatFactory |
static class |
FunctionRegistry.InFactory
NumericExpression IN ArgList is an infix operator. |
static class |
FunctionRegistry.MathFactory |
static class |
FunctionRegistry.NumericFactory |
static class |
FunctionRegistry.SameTermFactory |
static class |
FunctionRegistry.UnknownFunctionBOp |
Modifier and Type | Field and Description |
---|---|
static org.openrdf.model.URI |
ABS |
static org.openrdf.model.URI |
ADD |
static org.openrdf.model.URI |
AND |
static org.openrdf.model.URI |
AVERAGE |
static org.openrdf.model.URI |
BNODE
The BNODE()/BNODE(Literal) function as defined in SPARQL 1.1 Query
Language for RDF.
|
static org.openrdf.model.URI |
BOUND |
static org.openrdf.model.URI |
CEIL |
static org.openrdf.model.URI |
COALESCE |
static org.openrdf.model.URI |
CONCAT |
static org.openrdf.model.URI |
CONTAINS |
static org.openrdf.model.URI |
COUNT |
static org.openrdf.model.URI |
DATATYPE |
static org.openrdf.model.URI |
DAY |
static org.openrdf.model.URI |
DIVIDE |
static org.openrdf.model.URI |
ENCODE_FOR_URI |
static org.openrdf.model.URI |
ENDS_WITH |
static org.openrdf.model.URI |
EQ |
static org.openrdf.model.URI |
EXISTS
The EXISTS(graphPattern) function as defined in SPARQL 1.1 Query
Language for RDF.
|
static org.openrdf.model.URI |
FLOOR |
static org.openrdf.model.URI |
GE |
static org.openrdf.model.URI |
GROUP_CONCAT |
static org.openrdf.model.URI |
GT |
static org.openrdf.model.URI |
HOURS |
static org.openrdf.model.URI |
IF |
static org.openrdf.model.URI |
IN |
static org.openrdf.model.URI |
IRI
The IRI function, as defined in SPARQL 1.1 Query
Language for RDF.
|
static org.openrdf.model.URI |
IS_BLANK |
static org.openrdf.model.URI |
IS_IRI |
static org.openrdf.model.URI |
IS_LITERAL |
static org.openrdf.model.URI |
IS_NUMERIC |
static org.openrdf.model.URI |
IS_URI |
static org.openrdf.model.URI |
LANG |
static org.openrdf.model.URI |
LANG_MATCHES |
static org.openrdf.model.URI |
LCASE |
static org.openrdf.model.URI |
LE |
static org.openrdf.model.URI |
LT |
static org.openrdf.model.URI |
MAX |
static org.openrdf.model.URI |
MD5 |
static org.openrdf.model.URI |
MIN |
static org.openrdf.model.URI |
MINUTES |
static org.openrdf.model.URI |
MONTH |
static org.openrdf.model.URI |
MULTIPLY |
static org.openrdf.model.URI |
NE |
static org.openrdf.model.URI |
NOT |
static org.openrdf.model.URI |
NOT_EXISTS
The NOT EXISTS(graphPattern) function as defined in SPARQL 1.1 Query
Language for RDF.
|
static org.openrdf.model.URI |
NOT_IN |
static org.openrdf.model.URI |
NOW |
static org.openrdf.model.URI |
OR |
static org.openrdf.model.URI |
RAND |
static org.openrdf.model.URI |
REGEX |
static org.openrdf.model.URI |
REPLACE |
static org.openrdf.model.URI |
ROUND |
static org.openrdf.model.URI |
SAME_TERM |
static org.openrdf.model.URI |
SAMPLE |
static org.openrdf.model.URI |
SECONDS |
static org.openrdf.model.URI |
SHA1 |
static org.openrdf.model.URI |
SHA224 |
static org.openrdf.model.URI |
SHA256 |
static org.openrdf.model.URI |
SHA384 |
static org.openrdf.model.URI |
SHA512 |
static String |
SPARQL_FUNCTIONS |
static String |
SPARQL10_UNDEFINED_FUNCTIONS
Functions in SPARQL 1.0 for which there is not yet any official URI.
|
static String |
SPARQL11_UNDEFINED_FUNCTIONS
Functions in SPARQL 1.1 for which there is not yet any official URI.
|
static org.openrdf.model.URI |
STARTS_WITH |
static org.openrdf.model.URI |
STR |
static org.openrdf.model.URI |
STR_AFTER |
static org.openrdf.model.URI |
STR_BEFORE |
static org.openrdf.model.URI |
STR_DT |
static org.openrdf.model.URI |
STR_LANG |
static org.openrdf.model.URI |
STR_LEN |
static org.openrdf.model.URI |
STRUUID |
static org.openrdf.model.URI |
SUBSTR |
static org.openrdf.model.URI |
SUBTRACT |
static org.openrdf.model.URI |
SUM |
static org.openrdf.model.URI |
TIMEZONE |
static org.openrdf.model.URI |
TZ |
static org.openrdf.model.URI |
UCASE |
static org.openrdf.model.URI |
UUID |
static String |
XPATH_FUNCTIONS |
static org.openrdf.model.URI |
XSD_BOOL |
static org.openrdf.model.URI |
XSD_DATE |
static org.openrdf.model.URI |
XSD_DBL |
static org.openrdf.model.URI |
XSD_DEC |
static org.openrdf.model.URI |
XSD_DT |
static org.openrdf.model.URI |
XSD_FLT |
static org.openrdf.model.URI |
XSD_INT |
static org.openrdf.model.URI |
XSD_LONG |
static org.openrdf.model.URI |
XSD_STR |
static org.openrdf.model.URI |
XSD_UNSIGNED_LONG |
static org.openrdf.model.URI |
YEAR |
Constructor and Description |
---|
FunctionRegistry() |
Modifier and Type | Method and Description |
---|---|
static void |
add(org.openrdf.model.URI functionURI,
FunctionRegistry.Factory factory)
Register a factory for a function.
|
static void |
addAlias(org.openrdf.model.URI functionURI,
org.openrdf.model.URI aliasURI)
Register an alias for a functionURI which has already been declared.
|
static void |
checkArgs(ValueExpressionNode[] args,
Class... types)
Verify type constraints.
|
static boolean |
containsFunction(org.openrdf.model.URI functionUri) |
static boolean |
isAggregate(org.openrdf.model.URI functionUri) |
static FunctionRegistry.Factory |
remove(org.openrdf.model.URI functionURI)
Remove a registered function
FunctionRegistry.Factory . |
static IValueExpression<? extends IV> |
toVE(BOpContextBase context,
GlobalAnnotations globals,
org.openrdf.model.URI functionURI,
Map<String,Object> scalarValues,
ValueExpressionNode... args)
Convert a
FunctionNode into an IValueExpression . |
public static final String SPARQL_FUNCTIONS
public static final String XPATH_FUNCTIONS
public static final String SPARQL10_UNDEFINED_FUNCTIONS
public static final String SPARQL11_UNDEFINED_FUNCTIONS
public static final org.openrdf.model.URI BOUND
public static final org.openrdf.model.URI IS_LITERAL
public static final org.openrdf.model.URI IS_BLANK
public static final org.openrdf.model.URI IS_URI
public static final org.openrdf.model.URI IS_IRI
public static final org.openrdf.model.URI IS_NUMERIC
public static final org.openrdf.model.URI STR
public static final org.openrdf.model.URI LANG
public static final org.openrdf.model.URI DATATYPE
public static final org.openrdf.model.URI LANG_MATCHES
public static final org.openrdf.model.URI REGEX
public static final org.openrdf.model.URI OR
public static final org.openrdf.model.URI AND
public static final org.openrdf.model.URI NOT
public static final org.openrdf.model.URI SAME_TERM
public static final org.openrdf.model.URI CONCAT
public static final org.openrdf.model.URI COALESCE
public static final org.openrdf.model.URI IN
public static final org.openrdf.model.URI NOT_IN
public static final org.openrdf.model.URI IF
public static final org.openrdf.model.URI NOW
public static final org.openrdf.model.URI YEAR
public static final org.openrdf.model.URI MONTH
public static final org.openrdf.model.URI DAY
public static final org.openrdf.model.URI HOURS
public static final org.openrdf.model.URI MINUTES
public static final org.openrdf.model.URI SECONDS
public static final org.openrdf.model.URI TZ
public static final org.openrdf.model.URI TIMEZONE
public static final org.openrdf.model.URI MD5
public static final org.openrdf.model.URI SHA1
public static final org.openrdf.model.URI SHA224
public static final org.openrdf.model.URI SHA256
public static final org.openrdf.model.URI SHA384
public static final org.openrdf.model.URI SHA512
public static final org.openrdf.model.URI UUID
public static final org.openrdf.model.URI STRUUID
public static final org.openrdf.model.URI STR_DT
public static final org.openrdf.model.URI STR_LANG
public static final org.openrdf.model.URI LCASE
public static final org.openrdf.model.URI UCASE
public static final org.openrdf.model.URI ENCODE_FOR_URI
public static final org.openrdf.model.URI STR_LEN
public static final org.openrdf.model.URI SUBSTR
public static final org.openrdf.model.URI CONTAINS
public static final org.openrdf.model.URI STARTS_WITH
public static final org.openrdf.model.URI ENDS_WITH
public static final org.openrdf.model.URI STR_AFTER
public static final org.openrdf.model.URI STR_BEFORE
public static final org.openrdf.model.URI REPLACE
public static final org.openrdf.model.URI IRI
public static final org.openrdf.model.URI BNODE
public static final org.openrdf.model.URI EXISTS
public static final org.openrdf.model.URI NOT_EXISTS
public static final org.openrdf.model.URI EQ
public static final org.openrdf.model.URI NE
public static final org.openrdf.model.URI GT
public static final org.openrdf.model.URI GE
public static final org.openrdf.model.URI LT
public static final org.openrdf.model.URI LE
public static final org.openrdf.model.URI ADD
public static final org.openrdf.model.URI SUBTRACT
public static final org.openrdf.model.URI MULTIPLY
public static final org.openrdf.model.URI DIVIDE
public static final org.openrdf.model.URI ABS
public static final org.openrdf.model.URI ROUND
public static final org.openrdf.model.URI CEIL
public static final org.openrdf.model.URI FLOOR
public static final org.openrdf.model.URI RAND
public static final org.openrdf.model.URI AVERAGE
public static final org.openrdf.model.URI COUNT
public static final org.openrdf.model.URI GROUP_CONCAT
public static final org.openrdf.model.URI MAX
public static final org.openrdf.model.URI MIN
public static final org.openrdf.model.URI SAMPLE
public static final org.openrdf.model.URI SUM
public static final org.openrdf.model.URI XSD_BOOL
public static final org.openrdf.model.URI XSD_DT
public static final org.openrdf.model.URI XSD_DEC
public static final org.openrdf.model.URI XSD_DBL
public static final org.openrdf.model.URI XSD_FLT
public static final org.openrdf.model.URI XSD_INT
public static final org.openrdf.model.URI XSD_STR
public static final org.openrdf.model.URI XSD_DATE
public static final org.openrdf.model.URI XSD_LONG
public static final org.openrdf.model.URI XSD_UNSIGNED_LONG
public static boolean containsFunction(org.openrdf.model.URI functionUri)
public static boolean isAggregate(org.openrdf.model.URI functionUri)
public static final void checkArgs(ValueExpressionNode[] args, Class... types)
args
- The arguments to some function.types
- The type constraints. If there are more arguments given than
constraints, then the last constraint in this vararg parameter
will be used to validate the additional arguments.IllegalArgumentException
- if the type constraints are violated.public static final IValueExpression<? extends IV> toVE(BOpContextBase context, GlobalAnnotations globals, org.openrdf.model.URI functionURI, Map<String,Object> scalarValues, ValueExpressionNode... args)
FunctionNode
into an IValueExpression
.globals
- The global annotations, including the lexicon namespace.functionURI
- The function URI.scalarValues
- Scalar values for the function (optional). This is used for
things like the separator
in GROUP_CONCAT.args
- The function arguments.IValueExpression
.public static final void add(org.openrdf.model.URI functionURI, FunctionRegistry.Factory factory)
functionURI
- The function URI.factory
- The factory.UnsupportedOperationException
- if there is already a FunctionRegistry.Factory
registered for that
URI.public static final void addAlias(org.openrdf.model.URI functionURI, org.openrdf.model.URI aliasURI)
functionURI
- The function URI.aliasURI
- The alias.UnsupportedOperationException
- if the function URI has not been declared.UnsupportedOperationException
- if the alias URI has already been declared.public static FunctionRegistry.Factory remove(org.openrdf.model.URI functionURI)
FunctionRegistry.Factory
.functionURI
- The URI
of the function.null
if there was no function
registered for that URI
.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.