Show / Hide Table of Contents

Class SparqlBuiltInFunctionFactory

Expression Factory which generates SPARQL Function expressions.

Inheritance
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

| Edit this page 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

Properties

| Edit this page View Source

AvailableExtensionAggregates

Gets the URIs of available SPARQL Aggregates.

Declaration
public IEnumerable<Uri> AvailableExtensionAggregates { get; }
Property Value
Type Description
IEnumerable<Uri>
| Edit this page View Source

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

Implements

ISparqlCustomExpressionFactory

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • 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