Class FilterPattern
Class for representing Filter Patterns in SPARQL Queries.
Implements
System.IComparable<ITriplePattern>
System.IComparable<IFilterPattern>
System.IComparable<FilterPattern>
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.Patterns
Assembly: dotNetRDF.dll
Syntax
public class FilterPattern : BaseTriplePattern, IFilterPattern, ITriplePattern, IComparable<ITriplePattern>, 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 SourceFilterPattern(ISparqlFilter)
Creates a new Filter Pattern with the given Filter.
Declaration
public FilterPattern(ISparqlFilter filter)
Parameters
Type | Name | Description |
---|---|---|
ISparqlFilter | filter | Filter. |
Properties
| Improve this Doc View SourceFilter
Gets the Filter that this Pattern uses.
Declaration
public ISparqlFilter Filter { get; }
Property Value
Type | Description |
---|---|
ISparqlFilter |
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<System.String> |
Overrides
| Improve this Doc View SourceFloatingVariables
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<System.String> |
Overrides
| Improve this Doc View SourceHasNoBlankVariables
Returns true as a FILTER cannot contain blank variables.
Declaration
public override bool HasNoBlankVariables { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
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
| Improve this Doc View SourcePatternType
Gets the Pattern Type.
Declaration
public override TriplePatternType PatternType { get; }
Property Value
Type | Description |
---|---|
TriplePatternType |
Overrides
| Improve this Doc View SourceUsesDefaultDataset
Gets whether the Pattern uses the Default Dataset.
Declaration
public override bool UsesDefaultDataset { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
Methods
| Improve this Doc View SourceCompareTo(FilterPattern)
Compares a filter pattern to another.
Declaration
public int CompareTo(FilterPattern other)
Parameters
Type | Name | Description |
---|---|---|
FilterPattern | other | Pattern. |
Returns
Type | Description |
---|---|
System.Int32 |
CompareTo(IFilterPattern)
Compares a filter pattern to another.
Declaration
public int CompareTo(IFilterPattern other)
Parameters
Type | Name | Description |
---|---|---|
IFilterPattern | other | Pattern. |
Returns
Type | Description |
---|---|
System.Int32 |
Evaluate(SparqlEvaluationContext)
Evaluates a Filter in the given Evaluation Context.
Declaration
public override void Evaluate(SparqlEvaluationContext context)
Parameters
Type | Name | Description |
---|---|---|
SparqlEvaluationContext | context | Evaluation Context. |
Overrides
| Improve this Doc View SourceToString()
Returns the string representation of the Pattern.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
Implements
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>