Class SparqlBuiltInFunctionFactory
Expression Factory which generates SPARQL Function expressions.
Inheritance
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
| Improve this Doc 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 |
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.
Properties
| Improve this Doc View SourceAvailableExtensionAggregates
Gets the URIs of available SPARQL Aggregates.
Declaration
public IEnumerable<Uri> AvailableExtensionAggregates { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T><System.Uri> |
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.
AvailableExtensionFunctions
Gets the URIs of available SPARQL Functions.
Declaration
public IEnumerable<Uri> AvailableExtensionFunctions { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T><System.Uri> |
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.
Methods
| Improve this Doc 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 |
---|---|---|
System.Uri | u | Function Uri. |
System.Collections.Generic.List<T><ISparqlExpression> | args | Function Arguments. |
System.Collections.Generic.Dictionary<TKey, TValue><string, ISparqlExpression> | scalarArguments | Scalar Arguments. |
ISparqlExpression | expr | Generated Expression. |
Returns
Type | Description |
---|---|
System.Boolean | Whether an expression was successfully generated. |
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.