Class LeviathanFunctionFactory
Expression Factory which generates Leviathan Function expressions.
Inheritance
System.Object
LeviathanFunctionFactory
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 LeviathanFunctionFactory : ISparqlCustomExpressionFactory
Fields
| Improve this Doc View SourceAll
Constants for Leviathan Boolean Aggregates.
Declaration
public const string All = "all"
Field Value
Type | Description |
---|---|
System.String |
Any
Constants for Leviathan Boolean Aggregates.
Declaration
public const string Any = "any"
Field Value
Type | Description |
---|---|
System.String |
Cartesian
Constants for Leviathan Numeric Functions.
Declaration
public const string Cartesian = "cartesian"
Field Value
Type | Description |
---|---|
System.String |
Cube
Constants for Leviathan Numeric Functions.
Declaration
public const string Cube = "cube"
Field Value
Type | Description |
---|---|
System.String |
DegreesToRadians
Constants for Leviathan Numeric Functions.
Declaration
public const string DegreesToRadians = "degrees-to-radians"
Field Value
Type | Description |
---|---|
System.String |
E
Constants for Leviathan Numeric Functions.
Declaration
public const string E = "e"
Field Value
Type | Description |
---|---|
System.String |
Factorial
Constants for Leviathan Numeric Functions.
Declaration
public const string Factorial = "factorial"
Field Value
Type | Description |
---|---|
System.String |
LeviathanFunctionsNamespace
Leviathan Function Namespace.
Declaration
public const string LeviathanFunctionsNamespace = "http://www.dotnetrdf.org/leviathan#"
Field Value
Type | Description |
---|---|
System.String |
Ln
Constants for Leviathan Numeric Functions.
Declaration
public const string Ln = "ln"
Field Value
Type | Description |
---|---|
System.String |
Log
Constants for Leviathan Numeric Functions.
Declaration
public const string Log = "log"
Field Value
Type | Description |
---|---|
System.String |
MD5Hash
Constants for Leviathan String Functions.
Declaration
public const string MD5Hash = "md5hash"
Field Value
Type | Description |
---|---|
System.String |
Median
Constants for other Leviathan Aggregate.
Declaration
public const string Median = "median"
Field Value
Type | Description |
---|---|
System.String |
Mode
Constants for other Leviathan Aggregate.
Declaration
public const string Mode = "mode"
Field Value
Type | Description |
---|---|
System.String |
None
Constants for Leviathan Boolean Aggregates.
Declaration
public const string None = "none"
Field Value
Type | Description |
---|---|
System.String |
NumericMax
Constants for Leviathan Numeric Aggregates.
Declaration
public const string NumericMax = "nmax"
Field Value
Type | Description |
---|---|
System.String |
NumericMin
Constants for Leviathan Numeric Aggregates.
Declaration
public const string NumericMin = "nmin"
Field Value
Type | Description |
---|---|
System.String |
Power
Constants for Leviathan Numeric Functions.
Declaration
public const string Power = "pow"
Field Value
Type | Description |
---|---|
System.String |
Pythagoras
Constants for Leviathan Numeric Functions.
Declaration
public const string Pythagoras = "pythagoras"
Field Value
Type | Description |
---|---|
System.String |
RadiansToDegrees
Constants for Leviathan Numeric Functions.
Declaration
public const string RadiansToDegrees = "radians-to-degrees"
Field Value
Type | Description |
---|---|
System.String |
Random
Constants for Leviathan Numeric Functions.
Declaration
public const string Random = "rnd"
Field Value
Type | Description |
---|---|
System.String |
Reciprocal
Constants for Leviathan Numeric Functions.
Declaration
public const string Reciprocal = "reciprocal"
Field Value
Type | Description |
---|---|
System.String |
Root
Constants for Leviathan Numeric Functions.
Declaration
public const string Root = "root"
Field Value
Type | Description |
---|---|
System.String |
Sha256Hash
Constants for Leviathan String Functions.
Declaration
public const string Sha256Hash = "sha256hash"
Field Value
Type | Description |
---|---|
System.String |
Square
Constants for Leviathan Numeric Functions.
Declaration
public const string Square = "sq"
Field Value
Type | Description |
---|---|
System.String |
SquareRoot
Constants for Leviathan Numeric Functions.
Declaration
public const string SquareRoot = "sqrt"
Field Value
Type | Description |
---|---|
System.String |
Ten
Constants for Leviathan Numeric Functions.
Declaration
public const string Ten = "ten"
Field Value
Type | Description |
---|---|
System.String |
TrigCos
Constants for Leviathan Numeric Functions.
Declaration
public const string TrigCos = "cos"
Field Value
Type | Description |
---|---|
System.String |
TrigCosec
Constants for Leviathan Numeric Functions.
Declaration
public const string TrigCosec = "cosec"
Field Value
Type | Description |
---|---|
System.String |
TrigCosecInv
Constants for Leviathan Numeric Functions.
Declaration
public const string TrigCosecInv = "cosec-1"
Field Value
Type | Description |
---|---|
System.String |
TrigCosInv
Constants for Leviathan Numeric Functions.
Declaration
public const string TrigCosInv = "cos-1"
Field Value
Type | Description |
---|---|
System.String |
TrigCotan
Constants for Leviathan Numeric Functions.
Declaration
public const string TrigCotan = "cotan"
Field Value
Type | Description |
---|---|
System.String |
TrigCotanInv
Constants for Leviathan Numeric Functions.
Declaration
public const string TrigCotanInv = "cotan-1"
Field Value
Type | Description |
---|---|
System.String |
TrigSec
Constants for Leviathan Numeric Functions.
Declaration
public const string TrigSec = "sec"
Field Value
Type | Description |
---|---|
System.String |
TrigSecInv
Constants for Leviathan Numeric Functions.
Declaration
public const string TrigSecInv = "sec-1"
Field Value
Type | Description |
---|---|
System.String |
TrigSin
Constants for Leviathan Numeric Functions.
Declaration
public const string TrigSin = "sin"
Field Value
Type | Description |
---|---|
System.String |
TrigSinInv
Constants for Leviathan Numeric Functions.
Declaration
public const string TrigSinInv = "sin-1"
Field Value
Type | Description |
---|---|
System.String |
TrigTan
Constants for Leviathan Numeric Functions.
Declaration
public const string TrigTan = "tan"
Field Value
Type | Description |
---|---|
System.String |
TrigTanInv
Constants for Leviathan Numeric Functions.
Declaration
public const string TrigTanInv = "tan-1"
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 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<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. |