Class PatternItem
Class for representing Node Patterns in Sparql Queries.
Inheritance
System.Object
PatternItem
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 SourceBindingContext
Sets the Binding Context for the Pattern Item.
Declaration
public SparqlResultBinder BindingContext { set; }
Property Value
Type | Description |
---|---|
SparqlResultBinder |
Repeated
Gets/Sets whether the Variable is repeated in the Pattern.
Declaration
public virtual bool Repeated { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
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 |
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 SourceAccepts(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 |
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 |
ToString()
Gets the String representation of the Pattern.
Declaration
public abstract override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()