Class NodeMatchPattern
Pattern which matches specific Nodes.
Inherited Members
Namespace: VDS.RDF.Query.Patterns
Assembly: dotNetRdf.dll
Syntax
public class NodeMatchPattern : PatternItem
Constructors
| Edit this page View SourceNodeMatchPattern(INode)
Creates a new Node Match Pattern.
Declaration
public NodeMatchPattern(INode n)
Parameters
Type | Name | Description |
---|---|---|
INode | n | Exact Node to match. |
NodeMatchPattern(INode, bool)
Creates a new Node Match Pattern.
Declaration
public NodeMatchPattern(INode n, bool rigorousEvaluation)
Parameters
Type | Name | Description |
---|---|---|
INode | n | Exact Node to match. |
bool | rigorousEvaluation | Whether to force rigorous evaluation regardless of the global setting. |
Properties
| Edit this page View SourceIsFixed
Return true if this pattern item contains no variables, false otherwise.
Declaration
public override bool IsFixed { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceNode
Gets the Node that this Pattern matches.
Declaration
public INode Node { get; }
Property Value
Type | Description |
---|---|
INode |
Methods
| Edit this page View SourceAccepts(IPatternEvaluationContext, INode, ISet)
Checks whether the given Node matches the Node this pattern was instantiated with.
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 |
---|---|
bool |
Overrides
| Edit this page 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
| Edit this page 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
| Edit this page 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
| Edit this page View SourceToString()
Gets a String representation of the Node.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |