Class XPathFunctionFactory
Expression Factory which generates XPath Function expressions.
Implements
Inherited Members
Namespace: VDS.RDF.Query.Expressions
Assembly: dotNetRdf.dll
Syntax
public class XPathFunctionFactory : ISparqlCustomExpressionFactory
Fields
| Edit this page View SourceAbsolute
Constants representing the XPath Numeric Functions.
Declaration
public const string Absolute = "abs"
Field Value
Type | Description |
---|---|
string |
AcceptIntegerArguments
Argument Type Validator for validating that a Literal has an Integer datatype.
Declaration
public static Func<Uri, bool> AcceptIntegerArguments
Field Value
Type | Description |
---|---|
Func<Uri, bool> |
AcceptNumericArguments
Argument Type Validator for validating that a Literal has a Numeric datatype.
Declaration
public static Func<Uri, bool> AcceptNumericArguments
Field Value
Type | Description |
---|---|
Func<Uri, bool> |
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 |
---|---|
Func<Uri, bool> |
AdjustDateTimeToTimezone
Constants representing the XPath Date Time functions.
Declaration
public const string AdjustDateTimeToTimezone = "adjust-dateTime-to-timezone"
Field Value
Type | Description |
---|---|
string |
Boolean
Constant representing the XPath boolean functions.
Declaration
public const string Boolean = "boolean"
Field Value
Type | Description |
---|---|
string |
Ceiling
Constants representing the XPath Numeric Functions.
Declaration
public const string Ceiling = "ceiling"
Field Value
Type | Description |
---|---|
string |
Compare
Constants representing the names of XPath String functions.
Declaration
public const string Compare = "compare"
Field Value
Type | Description |
---|---|
string |
Concat
Constants representing the names of XPath String functions.
Declaration
public const string Concat = "concat"
Field Value
Type | Description |
---|---|
string |
Contains
Constants representing the names of XPath String functions.
Declaration
public const string Contains = "contains"
Field Value
Type | Description |
---|---|
string |
DayFromDateTime
Constants representing the XPath Date Time functions.
Declaration
public const string DayFromDateTime = "day-from-dateTime"
Field Value
Type | Description |
---|---|
string |
EncodeForURI
Constants representing the names of XPath String functions.
Declaration
public const string EncodeForURI = "encode-for-uri"
Field Value
Type | Description |
---|---|
string |
EndsWith
Constants representing the names of XPath String functions.
Declaration
public const string EndsWith = "ends-with"
Field Value
Type | Description |
---|---|
string |
EscapeHtmlURI
Constants representing the names of XPath String functions.
Declaration
public const string EscapeHtmlURI = "escape-html-uri"
Field Value
Type | Description |
---|---|
string |
False
Constants representing the XPath Boolean constructor functions.
Declaration
public const string False = "false"
Field Value
Type | Description |
---|---|
string |
Floor
Constants representing the XPath Numeric Functions.
Declaration
public const string Floor = "floor"
Field Value
Type | Description |
---|---|
string |
HoursFromDateTime
Constants representing the XPath Date Time functions.
Declaration
public const string HoursFromDateTime = "hours-from-dateTime"
Field Value
Type | Description |
---|---|
string |
LowerCase
Constants representing the names of XPath String functions.
Declaration
public const string LowerCase = "lower-case"
Field Value
Type | Description |
---|---|
string |
Matches
Constants representing the names of XPath String functions.
Declaration
public const string Matches = "matches"
Field Value
Type | Description |
---|---|
string |
MinutesFromDateTime
Constants representing the XPath Date Time functions.
Declaration
public const string MinutesFromDateTime = "minutes-from-dateTime"
Field Value
Type | Description |
---|---|
string |
MonthFromDateTime
Constants representing the XPath Date Time functions.
Declaration
public const string MonthFromDateTime = "month-from-dateTime"
Field Value
Type | Description |
---|---|
string |
NormalizeSpace
Constants representing the names of XPath String functions.
Declaration
public const string NormalizeSpace = "normalize-space"
Field Value
Type | Description |
---|---|
string |
NormalizeUnicode
Constants representing the names of XPath String functions.
Declaration
public const string NormalizeUnicode = "normalize-unicode"
Field Value
Type | Description |
---|---|
string |
Not
Constant representing the XPath boolean functions.
Declaration
public const string Not = "not"
Field Value
Type | Description |
---|---|
string |
Replace
Constants representing the names of XPath String functions.
Declaration
public const string Replace = "replace"
Field Value
Type | Description |
---|---|
string |
Round
Constants representing the XPath Numeric Functions.
Declaration
public const string Round = "round"
Field Value
Type | Description |
---|---|
string |
RoundHalfToEven
Constants representing the XPath Numeric Functions.
Declaration
public const string RoundHalfToEven = "round-half-to-even"
Field Value
Type | Description |
---|---|
string |
SecondsFromDateTime
Constants representing the XPath Date Time functions.
Declaration
public const string SecondsFromDateTime = "seconds-from-dateTime"
Field Value
Type | Description |
---|---|
string |
StartsWith
Constants representing the names of XPath String functions.
Declaration
public const string StartsWith = "starts-with"
Field Value
Type | Description |
---|---|
string |
StringJoin
Constants representing the names of XPath String functions.
Declaration
public const string StringJoin = "string-join"
Field Value
Type | Description |
---|---|
string |
StringLength
Constants representing the names of XPath String functions.
Declaration
public const string StringLength = "string-length"
Field Value
Type | Description |
---|---|
string |
Substring
Constants representing the names of XPath String functions.
Declaration
public const string Substring = "substring"
Field Value
Type | Description |
---|---|
string |
SubstringAfter
Constants representing the names of XPath String functions.
Declaration
public const string SubstringAfter = "substring-after"
Field Value
Type | Description |
---|---|
string |
SubstringBefore
Constants representing the names of XPath String functions.
Declaration
public const string SubstringBefore = "substring-before"
Field Value
Type | Description |
---|---|
string |
TimezoneFromDateTime
Constants representing the XPath Date Time functions.
Declaration
public const string TimezoneFromDateTime = "timezone-from-dateTime"
Field Value
Type | Description |
---|---|
string |
Translate
Constants representing the names of XPath String functions.
Declaration
public const string Translate = "translate"
Field Value
Type | Description |
---|---|
string |
True
Constants representing the XPath Boolean constructor functions.
Declaration
public const string True = "true"
Field Value
Type | Description |
---|---|
string |
UpperCase
Constants representing the names of XPath String functions.
Declaration
public const string UpperCase = "upper-case"
Field Value
Type | Description |
---|---|
string |
XPathFunctionsNamespace
Namespace Uri for XPath Functions Namespace.
Declaration
public const string XPathFunctionsNamespace = "http://www.w3.org/2005/xpath-functions#"
Field Value
Type | Description |
---|---|
string |
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 |
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 |
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 |
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 |
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 |
YearFromDateTime
Constants representing the XPath Date Time functions.
Declaration
public const string YearFromDateTime = "year-from-dateTime"
Field Value
Type | Description |
---|---|
string |
Properties
| Edit this page View SourceAvailableExtensionAggregates
Gets the Extension Aggregate URIs supported by this Factory.
Declaration
public IEnumerable<Uri> AvailableExtensionAggregates { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Uri> |
AvailableExtensionFunctions
Gets the Extension Function URIs supported by this Factory.
Declaration
public IEnumerable<Uri> AvailableExtensionFunctions { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Uri> |
Methods
| Edit this page View SourceTryCreateExpression(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 |
---|---|---|
Uri | u | Function Uri. |
List<ISparqlExpression> | args | Function Arguments. |
Dictionary<string, ISparqlExpression> | scalarArgs | Scalar Arguments. |
ISparqlExpression | expr | Generated Expression. |
Returns
Type | Description |
---|---|
bool | Whether an expression was successfully generated. |