Show / Hide Table of Contents

Class BaseUnaryDateTimeFunction

Abstract Base Class for functions which are Unary functions applied to Date Time objects in the XPath function library.
Inheritance
System.Object
BaseUnaryExpression
BaseUnaryDateTimeFunction
DayFromDateTimeFunction
HoursFromDateTimeFunction
MinutesFromDateTimeFunction
MonthFromDateTimeFunction
SecondsFromDateTimeFunction
YearFromDateTimeFunction
Implements
ISparqlExpression
Inherited Members
BaseUnaryExpression._expr
BaseUnaryExpression.Variables
BaseUnaryExpression.Functor
BaseUnaryExpression.Arguments
BaseUnaryExpression.CanParallelise
BaseUnaryExpression.Transform(IExpressionTransformer)
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.XPath.DateTime
Assembly: dotNetRDF.dll
Syntax
public abstract class BaseUnaryDateTimeFunction : BaseUnaryExpression, ISparqlExpression

Constructors

| Improve this Doc View Source

BaseUnaryDateTimeFunction(ISparqlExpression)

Creates a new Unary XPath Date Time function.
Declaration
public BaseUnaryDateTimeFunction(ISparqlExpression expr)
Parameters
Type Name Description
ISparqlExpression expr

Properties

| Improve this Doc View Source

Type

Gets the Type of the Expression.
Declaration
public override SparqlExpressionType Type { get; }
Property Value
Type Description
SparqlExpressionType
Overrides
BaseUnaryExpression.Type

Methods

| Improve this Doc View Source

Evaluate(SparqlEvaluationContext, Int32)

Gets the numeric value of the function in the given Evaluation Context for the given Binding ID.
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
BaseUnaryExpression.Evaluate(SparqlEvaluationContext, Int32)
| Improve this Doc View Source

ToString()

Gets the String representation of the Function.
Declaration
public abstract override string ToString()
Returns
Type Description
System.String
Overrides
BaseUnaryExpression.ToString()
| Improve this Doc View Source

ValueInternal(DateTimeOffset)

Abstract method which derived classes must implement to generate the actual numeric value for the function.
Declaration
protected abstract IValuedNode ValueInternal(DateTimeOffset dateTime)
Parameters
Type Name Description
System.DateTimeOffset dateTime Date Time.
Returns
Type Description
IValuedNode

Implements

ISparqlExpression

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • BaseUnaryDateTimeFunction(ISparqlExpression)
  • Properties
    • Type
  • Methods
    • Evaluate(SparqlEvaluationContext, Int32)
    • ToString()
    • ValueInternal(DateTimeOffset)
  • Implements
  • Extension Methods
Back to top Generated by DocFX