Show / Hide Table of Contents

Class SparqlBuiltInFunctionFactory

Expression Factory which generates SPARQL Function expressions.

Inheritance
System.Object
SparqlBuiltInFunctionFactory
Implements
ISparqlCustomExpressionFactory
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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 Source

SparqlFunctionsNamespace

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 Source

AvailableExtensionAggregates

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.

| Improve this Doc View Source

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 Source

TryCreateExpression(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.

Implements

ISparqlCustomExpressionFactory

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Fields
    • SparqlFunctionsNamespace
  • Properties
    • AvailableExtensionAggregates
    • AvailableExtensionFunctions
  • Methods
    • TryCreateExpression(Uri, List<ISparqlExpression>, Dictionary<string, ISparqlExpression>, out ISparqlExpression)
  • Implements
  • Extension Methods
Back to top Generated by DocFX