Show / Hide Table of Contents

Class VariableContext

Represents the Variable Context for Triples.

Inheritance
object
BasicTripleContext
VariableContext
Implements
ITripleContext
Inherited Members
BasicTripleContext.HasProperty(string)
BasicTripleContext.this[string]
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

| Edit this page View Source

VariableContext(VariableContextType)

Creates a new Variable Context.

Declaration
public VariableContext(VariableContextType type)
Parameters
Type Name Description
VariableContextType type

Context Type.

Properties

| Edit this page View Source

InnerContext

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.

| Edit this page View Source

Type

Gets the Context Type.

Declaration
public VariableContextType Type { get; }
Property Value
Type Description
VariableContextType
| Edit this page View Source

Variables

Gets the Variables in this Context.

Declaration
public IEnumerable<INode> Variables { get; }
Property Value
Type Description
IEnumerable<INode>

Methods

| Edit this page View Source

AddVariable(INode)

Adds a Variable to this Context.

Declaration
public void AddVariable(INode var)
Parameters
Type Name Description
INode var

Variable.

| Edit this page View Source

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

Implements

ITripleContext

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • VariableContext(VariableContextType)
  • Properties
    • InnerContext
    • Type
    • Variables
  • Methods
    • AddVariable(INode)
    • IsVariable(INode)
  • Implements
  • Extension Methods
Back to top Generated by DocFX