Class VariableContext
Represents the Variable Context for Triples.
Implements
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public class VariableContext : BasicTripleContext, ITripleContext
Constructors
| Improve this Doc View SourceVariableContext(VariableContextType)
Creates a new Variable Context.
Declaration
public VariableContext(VariableContextType type)
Parameters
Type | Name | Description |
---|---|---|
VariableContextType | type | Context Type. |
Properties
| Improve this Doc 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 |
---|---|
System.Collections.Generic.IEnumerable<T><INode> |
Methods
| Improve this Doc 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 |
---|---|
System.Boolean |