Class ChainFilter
Generic Filter for use where multiple Filters are applied on a single Graph Pattern.
Inheritance
System.Object
ChainFilter
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.Filters
Assembly: dotNetRDF.dll
Syntax
public class ChainFilter : ISparqlFilter
Constructors
| Improve this Doc View SourceChainFilter(IEnumerable<ISparqlFilter>)
Creates a new Chain Filter.
Declaration
public ChainFilter(IEnumerable<ISparqlFilter> filters)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<ISparqlFilter> | filters | Filters. |
ChainFilter(ISparqlFilter, IEnumerable<ISparqlFilter>)
Creates a new Chain Filter.
Declaration
public ChainFilter(ISparqlFilter first, IEnumerable<ISparqlFilter> rest)
Parameters
Type | Name | Description |
---|---|---|
ISparqlFilter | first | First Filter. |
System.Collections.Generic.IEnumerable<ISparqlFilter> | rest | Additional Filters. |
ChainFilter(ISparqlFilter, ISparqlFilter)
Creates a new Chain Filter.
Declaration
public ChainFilter(ISparqlFilter first, ISparqlFilter second)
Parameters
Type | Name | Description |
---|---|---|
ISparqlFilter | first | First Filter. |
ISparqlFilter | second | Second Filter. |
Properties
| Improve this Doc View SourceExpression
Gets the Inner Expression used by the Chained Filters.
Declaration
public ISparqlExpression Expression { get; }
Property Value
Type | Description |
---|---|
ISparqlExpression |
Remarks
Equivalent to ANDing all the Chained Filters expressions.
|
Improve this Doc
View Source
Variables
Gets the enumeration of Variables used in the chained Filters.
Declaration
public IEnumerable<string> Variables { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |
Methods
| Improve this Doc View SourceAdd(ISparqlFilter)
Adds an additional Filter to the Filter Chain.
Declaration
protected void Add(ISparqlFilter filter)
Parameters
Type | Name | Description |
---|---|---|
ISparqlFilter | filter | A Filter to add. |
Evaluate(SparqlEvaluationContext)
Evaluates a filter in the given Evaluation Context.
Declaration
public void Evaluate(SparqlEvaluationContext context)
Parameters
Type | Name | Description |
---|---|---|
SparqlEvaluationContext | context | Evaluation Context. |
ToString()
Gets the String representation of the Filters.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()