Show / Hide Table of Contents

Class PatternItem

Class for representing Node Patterns in Sparql Queries.
Inheritance
System.Object
PatternItem
BlankNodePattern
FixedBlankNodePattern
NodeMatchPattern
VariablePattern
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 abstract class PatternItem

Fields

| Improve this Doc View Source

_context

Binding Context for Pattern Item.
Declaration
protected SparqlResultBinder _context
Field Value
Type Description
SparqlResultBinder

Properties

| Improve this Doc View Source

BindingContext

Sets the Binding Context for the Pattern Item.
Declaration
public SparqlResultBinder BindingContext { set; }
Property Value
Type Description
SparqlResultBinder
| Improve this Doc View Source

Repeated

Gets/Sets whether the Variable is repeated in the Pattern.
Declaration
public virtual bool Repeated { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

RigorousEvaluation

Gets/Sets whether rigorous evaluation is used, note that this setting may be overridden by the global RigorousEvaluation option.
Declaration
public bool RigorousEvaluation { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

VariableName

Gets the Variable Name if this is a Variable Pattern or null otherwise.
Declaration
public virtual string VariableName { get; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

Accepts(SparqlEvaluationContext, INode)

Checks whether the Pattern Item accepts the given Node in the given Context.
Declaration
protected abstract bool Accepts(SparqlEvaluationContext context, INode obj)
Parameters
Type Name Description
SparqlEvaluationContext context Evaluation Context.
INode obj Node to test.
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Construct(ConstructContext)

Constructs a Node based on this Pattern for the given Set.
Declaration
protected abstract INode Construct(ConstructContext context)
Parameters
Type Name Description
ConstructContext context Construct Context.
Returns
Type Description
INode
| Improve this Doc View Source

ToString()

Gets the String representation of the Pattern.
Declaration
public abstract override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Fields
    • _context
  • Properties
    • BindingContext
    • Repeated
    • RigorousEvaluation
    • VariableName
  • Methods
    • Accepts(SparqlEvaluationContext, INode)
    • Construct(ConstructContext)
    • ToString()
  • Extension Methods
Back to top Generated by DocFX