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