Show / Hide Table of Contents

Class SingleValueRestrictionFilter

Abstract Base Class for specialised Filters which restrict the value of a variable to a single value.

Inheritance
object
VariableRestrictionFilter
SingleValueRestrictionFilter
IdentityFilter
SameTermFilter
Implements
IFilter
IUnaryOperator
ISparqlAlgebra
IVisitable
IProcessable
Inherited Members
VariableRestrictionFilter.RestrictionVariable
VariableRestrictionFilter.Variables
VariableRestrictionFilter.FloatingVariables
VariableRestrictionFilter.FixedVariables
VariableRestrictionFilter.SparqlFilter
VariableRestrictionFilter.InnerAlgebra
VariableRestrictionFilter.ToString()
VariableRestrictionFilter.ToQuery()
VariableRestrictionFilter.ToGraphPattern()
VariableRestrictionFilter.Transform(IAlgebraOptimiser)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: VDS.RDF.Query.Algebra
Assembly: dotNetRdf.dll
Syntax
public abstract class SingleValueRestrictionFilter : VariableRestrictionFilter, IFilter, IUnaryOperator, ISparqlAlgebra, IVisitable, IProcessable

Constructors

| Edit this page View Source

SingleValueRestrictionFilter(ISparqlAlgebra, string, ConstantTerm, ISparqlFilter)

Creates a new Single Value Restriction Filter.

Declaration
public SingleValueRestrictionFilter(ISparqlAlgebra pattern, string var, ConstantTerm term, ISparqlFilter filter)
Parameters
Type Name Description
ISparqlAlgebra pattern

Algebra the filter applies over.

string var

Variable to restrict on.

ConstantTerm term

Value to restrict to.

ISparqlFilter filter

Filter to use.

Properties

| Edit this page View Source

RestrictionValue

Gets the Value Restriction which this filter applies.

Declaration
public ConstantTerm RestrictionValue { get; }
Property Value
Type Description
ConstantTerm

Methods

| Edit this page View Source

Accept<T>(ISparqlAlgebraVisitor<T>)

Accept a simple algebra visitor.

Declaration
public override T Accept<T>(ISparqlAlgebraVisitor<T> visitor)
Parameters
Type Name Description
ISparqlAlgebraVisitor<T> visitor

The visitor implementation.

Returns
Type Description
T
Type Parameters
Name Description
T

The type returned by the Visit methods of the visitor.

Overrides
VariableRestrictionFilter.Accept<T>(ISparqlAlgebraVisitor<T>)
| Edit this page View Source

Accept<TResult, TContext>(ISparqlQueryAlgebraProcessor<TResult, TContext>, TContext)

Called by an algebra visitor to process an item by invoking the appropriate method on the processor passed in.

Declaration
public override TResult Accept<TResult, TContext>(ISparqlQueryAlgebraProcessor<TResult, TContext> processor, TContext context)
Parameters
Type Name Description
ISparqlQueryAlgebraProcessor<TResult, TContext> processor

The processor to invoke.

TContext context

The context to pass to the processor.

Returns
Type Description
TResult

The result of invoking the processor method.

Type Parameters
Name Description
TResult

The type of result returned by the processor.

TContext

The type of the context object to be provided to the processor.

Overrides
VariableRestrictionFilter.Accept<TResult, TContext>(ISparqlQueryAlgebraProcessor<TResult, TContext>, TContext)

Implements

IFilter
IUnaryOperator
ISparqlAlgebra
IVisitable
IProcessable

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • SingleValueRestrictionFilter(ISparqlAlgebra, string, ConstantTerm, ISparqlFilter)
  • Properties
    • RestrictionValue
  • Methods
    • Accept<T>(ISparqlAlgebraVisitor<T>)
    • Accept<TResult, TContext>(ISparqlQueryAlgebraProcessor<TResult, TContext>, TContext)
  • Implements
  • Extension Methods
Back to top Generated by DocFX