Class VariableContext
Represents the Variable Context for Triples.
Implements
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)
System.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.
|
Improve this Doc
View Source
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<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 |