Show / Hide Table of Contents

Class FilterPattern

Class for representing Filter Patterns in SPARQL Queries.

Inheritance
System.Object
BaseTriplePattern
FilterPattern
Implements
IFilterPattern
ITriplePattern
System.IComparable<T><ITriplePattern>
IProcessable
IVisitable
System.IComparable<T><IFilterPattern>
System.IComparable<T><FilterPattern>
Inherited Members
BaseTriplePattern._vars
BaseTriplePattern.Variables
BaseTriplePattern.CompareTo(ITriplePattern)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: VDS.RDF.Query.Patterns
Assembly: dotNetRdf.dll
Syntax
public class FilterPattern : BaseTriplePattern, IFilterPattern, ITriplePattern, IComparable<ITriplePattern>, IProcessable, IVisitable, IComparable<IFilterPattern>, IComparable<FilterPattern>
Remarks

A Filter Pattern is any FILTER clause that can be executed during the process of executing Triple Patterns rather than after all the Triple Patterns and Child Graph Patterns have been executed.

Constructors

| Improve this Doc View Source

FilterPattern(ISparqlFilter)

Creates a new Filter Pattern with the given Filter.

Declaration
public FilterPattern(ISparqlFilter filter)
Parameters
Type Name Description
ISparqlFilter filter

Filter.

Remarks

A Filter Pattern is any FILTER clause that can be executed during the process of executing Triple Patterns rather than after all the Triple Patterns and Child Graph Patterns have been executed.

Properties

| Improve this Doc View Source

Filter

Gets the Filter that this Pattern uses.

Declaration
public ISparqlFilter Filter { get; }
Property Value
Type Description
ISparqlFilter
Remarks

A Filter Pattern is any FILTER clause that can be executed during the process of executing Triple Patterns rather than after all the Triple Patterns and Child Graph Patterns have been executed.

| Improve this Doc View Source

FixedVariables

Returns the empty enumerable as don't know which variables will be bound.

Declaration
public override IEnumerable<string> FixedVariables { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<T><string>
Overrides
BaseTriplePattern.FixedVariables
Remarks

A Filter Pattern is any FILTER clause that can be executed during the process of executing Triple Patterns rather than after all the Triple Patterns and Child Graph Patterns have been executed.

| Improve this Doc View Source

FloatingVariables

Returns the empty enumerable as don't know which variables will be bound.

Declaration
public override IEnumerable<string> FloatingVariables { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<T><string>
Overrides
BaseTriplePattern.FloatingVariables
Remarks

A Filter Pattern is any FILTER clause that can be executed during the process of executing Triple Patterns rather than after all the Triple Patterns and Child Graph Patterns have been executed.

| Improve this Doc View Source

HasNoBlankVariables

Returns true as a FILTER cannot contain blank variables.

Declaration
public override bool HasNoBlankVariables { get; }
Property Value
Type Description
System.Boolean
Overrides
BaseTriplePattern.HasNoBlankVariables
Remarks

Technically blank nodes may appear in a FILTER as part of an EXISTS/NOT EXISTS clause but in that case they would not be visible outside of the FILTER and so are not relevant.

| Improve this Doc View Source

IsAcceptAll

Returns that the Pattern is not an accept all (since it's a Filter).

Declaration
public override bool IsAcceptAll { get; }
Property Value
Type Description
System.Boolean
Overrides
BaseTriplePattern.IsAcceptAll
Remarks

A Filter Pattern is any FILTER clause that can be executed during the process of executing Triple Patterns rather than after all the Triple Patterns and Child Graph Patterns have been executed.

| Improve this Doc View Source

PatternType

Gets the Pattern Type.

Declaration
public override TriplePatternType PatternType { get; }
Property Value
Type Description
TriplePatternType
Overrides
BaseTriplePattern.PatternType
Remarks

A Filter Pattern is any FILTER clause that can be executed during the process of executing Triple Patterns rather than after all the Triple Patterns and Child Graph Patterns have been executed.

| Improve this Doc View Source

UsesDefaultDataset

Gets whether the Pattern uses the Default Dataset.

Declaration
public override bool UsesDefaultDataset { get; }
Property Value
Type Description
System.Boolean
Overrides
BaseTriplePattern.UsesDefaultDataset
Remarks

A Filter Pattern is any FILTER clause that can be executed during the process of executing Triple Patterns rather than after all the Triple Patterns and Child Graph Patterns have been executed.

Methods

| Improve this Doc View Source

Accept<T>(ISparqlAlgebraVisitor<T>)

Declaration
public override T Accept<T>(ISparqlAlgebraVisitor<T> visitor)
Parameters
Type Name Description
ISparqlAlgebraVisitor<T> visitor
Returns
Type Description
T
Type Parameters
Name Description
T
Overrides
VDS.RDF.Query.Patterns.BaseTriplePattern.Accept<T>(VDS.RDF.Query.ISparqlAlgebraVisitor<T>)
Remarks

A Filter Pattern is any FILTER clause that can be executed during the process of executing Triple Patterns rather than after all the Triple Patterns and Child Graph Patterns have been executed.

| Improve this Doc View Source

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

Declaration
public override TResult Accept<TResult, TContext>(ISparqlQueryAlgebraProcessor<TResult, TContext> processor, TContext context)
Parameters
Type Name Description
ISparqlQueryAlgebraProcessor<TResult, TContext> processor
TContext context
Returns
Type Description
TResult
Type Parameters
Name Description
TResult
TContext
Overrides
VDS.RDF.Query.Patterns.BaseTriplePattern.Accept<TResult, TContext>(VDS.RDF.Query.ISparqlQueryAlgebraProcessor<TResult, TContext>, TContext)
Remarks

A Filter Pattern is any FILTER clause that can be executed during the process of executing Triple Patterns rather than after all the Triple Patterns and Child Graph Patterns have been executed.

| Improve this Doc View Source

CompareTo(FilterPattern)

Compares a filter pattern to another.

Declaration
public int CompareTo(FilterPattern other)
Parameters
Type Name Description
FilterPattern other

Pattern.

Returns
Type Description
int
Remarks

A Filter Pattern is any FILTER clause that can be executed during the process of executing Triple Patterns rather than after all the Triple Patterns and Child Graph Patterns have been executed.

| Improve this Doc View Source

CompareTo(IFilterPattern)

Compares a filter pattern to another.

Declaration
public int CompareTo(IFilterPattern other)
Parameters
Type Name Description
IFilterPattern other

Pattern.

Returns
Type Description
int
Remarks

A Filter Pattern is any FILTER clause that can be executed during the process of executing Triple Patterns rather than after all the Triple Patterns and Child Graph Patterns have been executed.

| Improve this Doc View Source

ToString()

Returns the string representation of the Pattern.

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
BaseTriplePattern.ToString()
Remarks

A Filter Pattern is any FILTER clause that can be executed during the process of executing Triple Patterns rather than after all the Triple Patterns and Child Graph Patterns have been executed.

Implements

IFilterPattern
ITriplePattern
System.IComparable<T>
IProcessable
IVisitable
System.IComparable<T>
System.IComparable<T>

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • FilterPattern(ISparqlFilter)
  • Properties
    • Filter
    • FixedVariables
    • FloatingVariables
    • HasNoBlankVariables
    • IsAcceptAll
    • PatternType
    • UsesDefaultDataset
  • Methods
    • Accept<T>(ISparqlAlgebraVisitor<T>)
    • Accept<TResult, TContext>(ISparqlQueryAlgebraProcessor<TResult, TContext>, TContext)
    • CompareTo(FilterPattern)
    • CompareTo(IFilterPattern)
    • ToString()
  • Implements
  • Extension Methods
Back to top Generated by DocFX