Class SparqlBuiltInFunctionFactory
Expression Factory which generates SPARQL Function expressions.
Inheritance
System.Object
SparqlBuiltInFunctionFactory
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 |
---|---|
System.String |
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<System.Uri> |
AvailableExtensionFunctions
Gets the URIs of available SPARQL Functions.
Declaration
public IEnumerable<Uri> AvailableExtensionFunctions { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Uri> |
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<ISparqlExpression> | args | Function Arguments. |
System.Collections.Generic.Dictionary<System.String, ISparqlExpression> | scalarArguments | Scalar Arguments. |
ISparqlExpression | expr | Generated Expression. |
Returns
Type | Description |
---|---|
System.Boolean | Whether an expression was successfully generated. |