Class BlankNodePattern
Pattern which matches temporary variables.
Inherited Members
Namespace: VDS.RDF.Query.Patterns
Assembly: dotNetRdf.dll
Syntax
public class BlankNodePattern : PatternItem
Constructors
| Improve this Doc View SourceBlankNodePattern(string, bool)
Creates a new Pattern representing a Blank Node.
Declaration
public BlankNodePattern(string name, bool rigorousEvaluation)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Blank Node ID. |
| System.Boolean | rigorousEvaluation | Whether to force rigorous evaluation. |
BlankNodePattern(string)
Creates a new Pattern representing a Blank Node.
Declaration
public BlankNodePattern(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Blank Node ID. |
Properties
| Improve this Doc View SourceID
Gets the Blank Node ID.
Declaration
public string ID { get; }
Property Value
| Type | Description |
|---|---|
| string |
IsFixed
Return true if this pattern item contains no variables, false otherwise.
Declaration
public override bool IsFixed { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Overrides
| Improve this Doc View SourceVariables
Gets the Temporary Variable Name of this Pattern.
Declaration
public override IEnumerable<string> Variables { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<T><string> |
Overrides
Methods
| Improve this Doc View SourceAccepts(IPatternEvaluationContext, INode, ISet)
Checks whether the given Node is a valid value for the Temporary Variable.
Declaration
public override bool Accepts(IPatternEvaluationContext context, INode obj, ISet s)
Parameters
| Type | Name | Description |
|---|---|---|
| IPatternEvaluationContext | context | Evaluation Context. |
| INode | obj | Node to test. |
| ISet | s |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Overrides
| Improve this Doc View SourceAddBindings(INode, ISet)
Returns the variable bindings created when this pattern item accepts the given node to the specified set.
Declaration
public override void AddBindings(INode forNode, ISet toSet)
Parameters
| Type | Name | Description |
|---|---|---|
| INode | forNode | |
| ISet | toSet |
Overrides
| Improve this Doc View SourceBind(ISet)
Returns a node created by applying the variable bindings in the input set to this pattern item.
Declaration
public override INode Bind(ISet variableBindings)
Parameters
| Type | Name | Description |
|---|---|---|
| ISet | variableBindings |
Returns
| Type | Description |
|---|---|
| INode | A node binding for the pattern item or null if no binding is possible with the provide set. |
Overrides
| Improve this Doc View SourceConstruct(ConstructContext)
Constructs a Node based on the given Set.
Declaration
public override INode Construct(ConstructContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| ConstructContext | context | Construct Context. |
Returns
| Type | Description |
|---|---|
| INode |
Overrides
| Improve this Doc View SourceToString()
Gets the String representation of this Pattern.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |