Class SparqlBuiltInFunctionFactory
Expression Factory which generates SPARQL Function expressions.
Implements
Inherited Members
Namespace: VDS.RDF.Query.Expressions
Assembly: dotNetRdf.dll
Syntax
public class SparqlBuiltInFunctionFactory : ISparqlCustomExpressionFactory
Remarks
This supports the requirement of SPARQL 1.1 that all functions can be accessed via URI as well as by keyword. This also means that SPARQL 1.1 functions can be used in SPARQL 1.0 mode by using their URIs instead of their keywords and they are then treated simply as extension functions.
Fields
| Edit this page View SourceSparqlFunctionsNamespace
Namespace Uri for SPARQL Built In Functions Namespace.
Declaration
public const string SparqlFunctionsNamespace = "http://www.w3.org/ns/sparql#"
Field Value
Type | Description |
---|---|
string |
Properties
| Edit this page View SourceAvailableExtensionAggregates
Gets the URIs of available SPARQL Aggregates.
Declaration
public IEnumerable<Uri> AvailableExtensionAggregates { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Uri> |
AvailableExtensionFunctions
Gets the URIs of available SPARQL Functions.
Declaration
public IEnumerable<Uri> AvailableExtensionFunctions { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Uri> |
Methods
| Edit this page View SourceTryCreateExpression(Uri, List<ISparqlExpression>, Dictionary<string, ISparqlExpression>, out ISparqlExpression)
Tries to create a SPARQL Function expression if the function Uri correseponds to a supported SPARQL Function.
Declaration
public bool TryCreateExpression(Uri u, List<ISparqlExpression> args, Dictionary<string, ISparqlExpression> scalarArguments, out ISparqlExpression expr)
Parameters
Type | Name | Description |
---|---|---|
Uri | u | Function Uri. |
List<ISparqlExpression> | args | Function Arguments. |
Dictionary<string, ISparqlExpression> | scalarArguments | Scalar Arguments. |
ISparqlExpression | expr | Generated Expression. |
Returns
Type | Description |
---|---|
bool | Whether an expression was successfully generated. |