Class VariableContext
Represents the Variable Context for Triples.
Implements
Inherited Members
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public class VariableContext : BasicTripleContext, ITripleContext
Constructors
| Edit this page View SourceVariableContext(VariableContextType)
Creates a new Variable Context.
Declaration
public VariableContext(VariableContextType type)
Parameters
Type | Name | Description |
---|---|---|
VariableContextType | type | Context Type. |
Properties
| Edit this page View SourceInnerContext
Gets/Sets the Inner Context.
Declaration
public VariableContext InnerContext { get; set; }
Property Value
Type | Description |
---|---|
VariableContext |
Remarks
When you set the Inner Context this sets the Inner Context of the most nested inner context, you can remove all nested contexts by setting this to null.
Type
Gets the Context Type.
Declaration
public VariableContextType Type { get; }
Property Value
Type | Description |
---|---|
VariableContextType |
Variables
Gets the Variables in this Context.
Declaration
public IEnumerable<INode> Variables { get; }
Property Value
Type | Description |
---|---|
IEnumerable<INode> |
Methods
| Edit this page View SourceAddVariable(INode)
Adds a Variable to this Context.
Declaration
public void AddVariable(INode var)
Parameters
Type | Name | Description |
---|---|---|
INode | var | Variable. |
IsVariable(INode)
Gets whether a given Variable exists in this Context.
Declaration
public bool IsVariable(INode var)
Parameters
Type | Name | Description |
---|---|---|
INode | var | Variable Node. |
Returns
Type | Description |
---|---|
bool |