Class RandomFunction
Represents the Leviathan lfn:rnd() function.
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)
Namespace: VDS.RDF.Query.Expressions.Functions.Leviathan.Numeric
Assembly: dotNetRDF.dll
Syntax
public class RandomFunction : BaseBinaryExpression, ISparqlExpression
Constructors
| Improve this Doc View SourceRandomFunction()
Creates a new Leviathan Random Function.
Declaration
public RandomFunction()
RandomFunction(ISparqlExpression)
Creates a new Leviathan Random Function.
Declaration
public RandomFunction(ISparqlExpression max)
Parameters
Type | Name | Description |
---|---|---|
ISparqlExpression | max | Maximum. |
RandomFunction(ISparqlExpression, ISparqlExpression)
Creates a new Leviathan Random Function.
Declaration
public RandomFunction(ISparqlExpression min, ISparqlExpression max)
Parameters
Type | Name | Description |
---|---|---|
ISparqlExpression | min | Minumum. |
ISparqlExpression | max | Maximum. |
Properties
| Improve this Doc View SourceFunctor
Gets the Functor of the Expression.
Declaration
public override string Functor { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourceType
Gets the type of the expression.
Declaration
public override SparqlExpressionType Type { get; }
Property Value
Type | Description |
---|---|
SparqlExpressionType |
Overrides
Methods
| Improve this Doc View SourceEvaluate(SparqlEvaluationContext, Int32)
Evaluates the expression.
Declaration
public override IValuedNode Evaluate(SparqlEvaluationContext context, int bindingID)
Parameters
Type | Name | Description |
---|---|---|
SparqlEvaluationContext | context | Evaluation Context. |
System.Int32 | bindingID | Binding ID. |
Returns
Type | Description |
---|---|
IValuedNode |
Overrides
| Improve this Doc View SourceToString()
Gets the String representation of the function.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourceTransform(IExpressionTransformer)
Transforms the Expression using the given Transformer.
Declaration
public override ISparqlExpression Transform(IExpressionTransformer transformer)
Parameters
Type | Name | Description |
---|---|---|
IExpressionTransformer | transformer | Expression Transformer. |
Returns
Type | Description |
---|---|
ISparqlExpression |