Class LeviathanFunctionFactory
Expression Factory which generates Leviathan Function expressions.
Inheritance
Implements
Inherited Members
Namespace: VDS.RDF.Query.Expressions
Assembly: dotNetRdf.dll
Syntax
public class LeviathanFunctionFactory : ISparqlCustomExpressionFactory
Fields
| Improve this Doc View SourceAll
Constants for Leviathan Boolean Aggregates.
Declaration
public const string All = "all"
Field Value
Type | Description |
---|---|
string |
Any
Constants for Leviathan Boolean Aggregates.
Declaration
public const string Any = "any"
Field Value
Type | Description |
---|---|
string |
Cartesian
Constants for Leviathan Numeric Functions.
Declaration
public const string Cartesian = "cartesian"
Field Value
Type | Description |
---|---|
string |
Cube
Constants for Leviathan Numeric Functions.
Declaration
public const string Cube = "cube"
Field Value
Type | Description |
---|---|
string |
DegreesToRadians
Constants for Leviathan Numeric Functions.
Declaration
public const string DegreesToRadians = "degrees-to-radians"
Field Value
Type | Description |
---|---|
string |
E
Constants for Leviathan Numeric Functions.
Declaration
public const string E = "e"
Field Value
Type | Description |
---|---|
string |
Factorial
Constants for Leviathan Numeric Functions.
Declaration
public const string Factorial = "factorial"
Field Value
Type | Description |
---|---|
string |
LeviathanFunctionsNamespace
Leviathan Function Namespace.
Declaration
public const string LeviathanFunctionsNamespace = "http://www.dotnetrdf.org/leviathan#"
Field Value
Type | Description |
---|---|
string |
Ln
Constants for Leviathan Numeric Functions.
Declaration
public const string Ln = "ln"
Field Value
Type | Description |
---|---|
string |
Log
Constants for Leviathan Numeric Functions.
Declaration
public const string Log = "log"
Field Value
Type | Description |
---|---|
string |
MD5Hash
Constants for Leviathan String Functions.
Declaration
public const string MD5Hash = "md5hash"
Field Value
Type | Description |
---|---|
string |
Median
Constants for other Leviathan Aggregate.
Declaration
public const string Median = "median"
Field Value
Type | Description |
---|---|
string |
Mode
Constants for other Leviathan Aggregate.
Declaration
public const string Mode = "mode"
Field Value
Type | Description |
---|---|
string |
None
Constants for Leviathan Boolean Aggregates.
Declaration
public const string None = "none"
Field Value
Type | Description |
---|---|
string |
NumericMax
Constants for Leviathan Numeric Aggregates.
Declaration
public const string NumericMax = "nmax"
Field Value
Type | Description |
---|---|
string |
NumericMin
Constants for Leviathan Numeric Aggregates.
Declaration
public const string NumericMin = "nmin"
Field Value
Type | Description |
---|---|
string |
Power
Constants for Leviathan Numeric Functions.
Declaration
public const string Power = "pow"
Field Value
Type | Description |
---|---|
string |
Pythagoras
Constants for Leviathan Numeric Functions.
Declaration
public const string Pythagoras = "pythagoras"
Field Value
Type | Description |
---|---|
string |
RadiansToDegrees
Constants for Leviathan Numeric Functions.
Declaration
public const string RadiansToDegrees = "radians-to-degrees"
Field Value
Type | Description |
---|---|
string |
Random
Constants for Leviathan Numeric Functions.
Declaration
public const string Random = "rnd"
Field Value
Type | Description |
---|---|
string |
Reciprocal
Constants for Leviathan Numeric Functions.
Declaration
public const string Reciprocal = "reciprocal"
Field Value
Type | Description |
---|---|
string |
Root
Constants for Leviathan Numeric Functions.
Declaration
public const string Root = "root"
Field Value
Type | Description |
---|---|
string |
Sha256Hash
Constants for Leviathan String Functions.
Declaration
public const string Sha256Hash = "sha256hash"
Field Value
Type | Description |
---|---|
string |
Square
Constants for Leviathan Numeric Functions.
Declaration
public const string Square = "sq"
Field Value
Type | Description |
---|---|
string |
SquareRoot
Constants for Leviathan Numeric Functions.
Declaration
public const string SquareRoot = "sqrt"
Field Value
Type | Description |
---|---|
string |
Ten
Constants for Leviathan Numeric Functions.
Declaration
public const string Ten = "ten"
Field Value
Type | Description |
---|---|
string |
TrigCos
Constants for Leviathan Numeric Functions.
Declaration
public const string TrigCos = "cos"
Field Value
Type | Description |
---|---|
string |
TrigCosec
Constants for Leviathan Numeric Functions.
Declaration
public const string TrigCosec = "cosec"
Field Value
Type | Description |
---|---|
string |
TrigCosecInv
Constants for Leviathan Numeric Functions.
Declaration
public const string TrigCosecInv = "cosec-1"
Field Value
Type | Description |
---|---|
string |
TrigCosInv
Constants for Leviathan Numeric Functions.
Declaration
public const string TrigCosInv = "cos-1"
Field Value
Type | Description |
---|---|
string |
TrigCotan
Constants for Leviathan Numeric Functions.
Declaration
public const string TrigCotan = "cotan"
Field Value
Type | Description |
---|---|
string |
TrigCotanInv
Constants for Leviathan Numeric Functions.
Declaration
public const string TrigCotanInv = "cotan-1"
Field Value
Type | Description |
---|---|
string |
TrigSec
Constants for Leviathan Numeric Functions.
Declaration
public const string TrigSec = "sec"
Field Value
Type | Description |
---|---|
string |
TrigSecInv
Constants for Leviathan Numeric Functions.
Declaration
public const string TrigSecInv = "sec-1"
Field Value
Type | Description |
---|---|
string |
TrigSin
Constants for Leviathan Numeric Functions.
Declaration
public const string TrigSin = "sin"
Field Value
Type | Description |
---|---|
string |
TrigSinInv
Constants for Leviathan Numeric Functions.
Declaration
public const string TrigSinInv = "sin-1"
Field Value
Type | Description |
---|---|
string |
TrigTan
Constants for Leviathan Numeric Functions.
Declaration
public const string TrigTan = "tan"
Field Value
Type | Description |
---|---|
string |
TrigTanInv
Constants for Leviathan Numeric Functions.
Declaration
public const string TrigTanInv = "tan-1"
Field Value
Type | Description |
---|---|
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<T><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<T><System.Uri> |
Methods
| Improve this Doc View SourceTryCreateExpression(Uri, List<ISparqlExpression>, Dictionary<string, ISparqlExpression>, out ISparqlExpression)
Tries to create an Leviathan Function expression if the function Uri correseponds to a supported Leviathan 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. |