Show / Hide Table of Contents

Class XPathFunctionFactory

Expression Factory which generates XPath Function expressions.

Inheritance
System.Object
XPathFunctionFactory
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 XPathFunctionFactory : ISparqlCustomExpressionFactory

Fields

| Improve this Doc View Source

Absolute

Constants representing the XPath Numeric Functions.

Declaration
public const string Absolute = "abs"
Field Value
Type Description
string
| Improve this Doc View Source

AcceptIntegerArguments

Argument Type Validator for validating that a Literal has an Integer datatype.

Declaration
public static Func<Uri, bool> AcceptIntegerArguments
Field Value
Type Description
System.Func<T, TResult><System.Uri, System.Boolean>
| Improve this Doc View Source

AcceptNumericArguments

Argument Type Validator for validating that a Literal has a Numeric datatype.

Declaration
public static Func<Uri, bool> AcceptNumericArguments
Field Value
Type Description
System.Func<T, TResult><System.Uri, System.Boolean>
| Improve this Doc View Source

AcceptStringArguments

Argument Type Validator for validating that a Literal either has no datatype or is a String.

Declaration
public static Func<Uri, bool> AcceptStringArguments
Field Value
Type Description
System.Func<T, TResult><System.Uri, System.Boolean>
| Improve this Doc View Source

AdjustDateTimeToTimezone

Constants representing the XPath Date Time functions.

Declaration
public const string AdjustDateTimeToTimezone = "adjust-dateTime-to-timezone"
Field Value
Type Description
string
| Improve this Doc View Source

Boolean

Constant representing the XPath boolean functions.

Declaration
public const string Boolean = "boolean"
Field Value
Type Description
string
| Improve this Doc View Source

Ceiling

Constants representing the XPath Numeric Functions.

Declaration
public const string Ceiling = "ceiling"
Field Value
Type Description
string
| Improve this Doc View Source

Compare

Constants representing the names of XPath String functions.

Declaration
public const string Compare = "compare"
Field Value
Type Description
string
| Improve this Doc View Source

Concat

Constants representing the names of XPath String functions.

Declaration
public const string Concat = "concat"
Field Value
Type Description
string
| Improve this Doc View Source

Contains

Constants representing the names of XPath String functions.

Declaration
public const string Contains = "contains"
Field Value
Type Description
string
| Improve this Doc View Source

DayFromDateTime

Constants representing the XPath Date Time functions.

Declaration
public const string DayFromDateTime = "day-from-dateTime"
Field Value
Type Description
string
| Improve this Doc View Source

EncodeForURI

Constants representing the names of XPath String functions.

Declaration
public const string EncodeForURI = "encode-for-uri"
Field Value
Type Description
string
| Improve this Doc View Source

EndsWith

Constants representing the names of XPath String functions.

Declaration
public const string EndsWith = "ends-with"
Field Value
Type Description
string
| Improve this Doc View Source

EscapeHtmlURI

Constants representing the names of XPath String functions.

Declaration
public const string EscapeHtmlURI = "escape-html-uri"
Field Value
Type Description
string
| Improve this Doc View Source

False

Constants representing the XPath Boolean constructor functions.

Declaration
public const string False = "false"
Field Value
Type Description
string
| Improve this Doc View Source

Floor

Constants representing the XPath Numeric Functions.

Declaration
public const string Floor = "floor"
Field Value
Type Description
string
| Improve this Doc View Source

HoursFromDateTime

Constants representing the XPath Date Time functions.

Declaration
public const string HoursFromDateTime = "hours-from-dateTime"
Field Value
Type Description
string
| Improve this Doc View Source

LowerCase

Constants representing the names of XPath String functions.

Declaration
public const string LowerCase = "lower-case"
Field Value
Type Description
string
| Improve this Doc View Source

Matches

Constants representing the names of XPath String functions.

Declaration
public const string Matches = "matches"
Field Value
Type Description
string
| Improve this Doc View Source

MinutesFromDateTime

Constants representing the XPath Date Time functions.

Declaration
public const string MinutesFromDateTime = "minutes-from-dateTime"
Field Value
Type Description
string
| Improve this Doc View Source

MonthFromDateTime

Constants representing the XPath Date Time functions.

Declaration
public const string MonthFromDateTime = "month-from-dateTime"
Field Value
Type Description
string
| Improve this Doc View Source

NormalizeSpace

Constants representing the names of XPath String functions.

Declaration
public const string NormalizeSpace = "normalize-space"
Field Value
Type Description
string
| Improve this Doc View Source

NormalizeUnicode

Constants representing the names of XPath String functions.

Declaration
public const string NormalizeUnicode = "normalize-unicode"
Field Value
Type Description
string
| Improve this Doc View Source

Not

Constant representing the XPath boolean functions.

Declaration
public const string Not = "not"
Field Value
Type Description
string
| Improve this Doc View Source

Replace

Constants representing the names of XPath String functions.

Declaration
public const string Replace = "replace"
Field Value
Type Description
string
| Improve this Doc View Source

Round

Constants representing the XPath Numeric Functions.

Declaration
public const string Round = "round"
Field Value
Type Description
string
| Improve this Doc View Source

RoundHalfToEven

Constants representing the XPath Numeric Functions.

Declaration
public const string RoundHalfToEven = "round-half-to-even"
Field Value
Type Description
string
| Improve this Doc View Source

SecondsFromDateTime

Constants representing the XPath Date Time functions.

Declaration
public const string SecondsFromDateTime = "seconds-from-dateTime"
Field Value
Type Description
string
| Improve this Doc View Source

StartsWith

Constants representing the names of XPath String functions.

Declaration
public const string StartsWith = "starts-with"
Field Value
Type Description
string
| Improve this Doc View Source

StringJoin

Constants representing the names of XPath String functions.

Declaration
public const string StringJoin = "string-join"
Field Value
Type Description
string
| Improve this Doc View Source

StringLength

Constants representing the names of XPath String functions.

Declaration
public const string StringLength = "string-length"
Field Value
Type Description
string
| Improve this Doc View Source

Substring

Constants representing the names of XPath String functions.

Declaration
public const string Substring = "substring"
Field Value
Type Description
string
| Improve this Doc View Source

SubstringAfter

Constants representing the names of XPath String functions.

Declaration
public const string SubstringAfter = "substring-after"
Field Value
Type Description
string
| Improve this Doc View Source

SubstringBefore

Constants representing the names of XPath String functions.

Declaration
public const string SubstringBefore = "substring-before"
Field Value
Type Description
string
| Improve this Doc View Source

TimezoneFromDateTime

Constants representing the XPath Date Time functions.

Declaration
public const string TimezoneFromDateTime = "timezone-from-dateTime"
Field Value
Type Description
string
| Improve this Doc View Source

Translate

Constants representing the names of XPath String functions.

Declaration
public const string Translate = "translate"
Field Value
Type Description
string
| Improve this Doc View Source

True

Constants representing the XPath Boolean constructor functions.

Declaration
public const string True = "true"
Field Value
Type Description
string
| Improve this Doc View Source

UpperCase

Constants representing the names of XPath String functions.

Declaration
public const string UpperCase = "upper-case"
Field Value
Type Description
string
| Improve this Doc View Source

XPathFunctionsNamespace

Namespace Uri for XPath Functions Namespace.

Declaration
public const string XPathFunctionsNamespace = "http://www.w3.org/2005/xpath-functions#"
Field Value
Type Description
string
| Improve this Doc View Source

XPathUnicodeNormalizationFormC

Constants representing the Normalization Form values supported by the XPath normalize-unicode() function.

Declaration
public const string XPathUnicodeNormalizationFormC = "NFC"
Field Value
Type Description
string
| Improve this Doc View Source

XPathUnicodeNormalizationFormD

Constants representing the Normalization Form values supported by the XPath normalize-unicode() function.

Declaration
public const string XPathUnicodeNormalizationFormD = "NFD"
Field Value
Type Description
string
| Improve this Doc View Source

XPathUnicodeNormalizationFormFull

Constants representing the Normalization Form values supported by the XPath normalize-unicode() function.

Declaration
public const string XPathUnicodeNormalizationFormFull = "FULLY-NORMALIZED"
Field Value
Type Description
string
| Improve this Doc View Source

XPathUnicodeNormalizationFormKC

Constants representing the Normalization Form values supported by the XPath normalize-unicode() function.

Declaration
public const string XPathUnicodeNormalizationFormKC = "NFKC"
Field Value
Type Description
string
| Improve this Doc View Source

XPathUnicodeNormalizationFormKD

Constants representing the Normalization Form values supported by the XPath normalize-unicode() function.

Declaration
public const string XPathUnicodeNormalizationFormKD = "NFKD"
Field Value
Type Description
string
| Improve this Doc View Source

YearFromDateTime

Constants representing the XPath Date Time functions.

Declaration
public const string YearFromDateTime = "year-from-dateTime"
Field Value
Type Description
string

Properties

| Improve this Doc View Source

AvailableExtensionAggregates

Gets the Extension Aggregate URIs supported by this Factory.

Declaration
public IEnumerable<Uri> AvailableExtensionAggregates { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<T><System.Uri>
| Improve this Doc View Source

AvailableExtensionFunctions

Gets the Extension Function URIs supported by this Factory.

Declaration
public IEnumerable<Uri> AvailableExtensionFunctions { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<T><System.Uri>

Methods

| Improve this Doc View Source

TryCreateExpression(Uri, List<ISparqlExpression>, Dictionary<string, ISparqlExpression>, out ISparqlExpression)

Tries to create an XPath Function expression if the function Uri corresponds to a supported XPath Function.

Declaration
public bool TryCreateExpression(Uri u, List<ISparqlExpression> args, Dictionary<string, ISparqlExpression> scalarArgs, 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> scalarArgs

Scalar Arguments.

ISparqlExpression expr

Generated Expression.

Returns
Type Description
System.Boolean

Whether an expression was successfully generated.

Implements

ISparqlCustomExpressionFactory

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Fields
    • Absolute
    • AcceptIntegerArguments
    • AcceptNumericArguments
    • AcceptStringArguments
    • AdjustDateTimeToTimezone
    • Boolean
    • Ceiling
    • Compare
    • Concat
    • Contains
    • DayFromDateTime
    • EncodeForURI
    • EndsWith
    • EscapeHtmlURI
    • False
    • Floor
    • HoursFromDateTime
    • LowerCase
    • Matches
    • MinutesFromDateTime
    • MonthFromDateTime
    • NormalizeSpace
    • NormalizeUnicode
    • Not
    • Replace
    • Round
    • RoundHalfToEven
    • SecondsFromDateTime
    • StartsWith
    • StringJoin
    • StringLength
    • Substring
    • SubstringAfter
    • SubstringBefore
    • TimezoneFromDateTime
    • Translate
    • True
    • UpperCase
    • XPathFunctionsNamespace
    • XPathUnicodeNormalizationFormC
    • XPathUnicodeNormalizationFormD
    • XPathUnicodeNormalizationFormFull
    • XPathUnicodeNormalizationFormKC
    • XPathUnicodeNormalizationFormKD
    • YearFromDateTime
  • Properties
    • AvailableExtensionAggregates
    • AvailableExtensionFunctions
  • Methods
    • TryCreateExpression(Uri, List<ISparqlExpression>, Dictionary<string, ISparqlExpression>, out ISparqlExpression)
  • Implements
  • Extension Methods
Back to top Generated by DocFX