Show / Hide Table of Contents

Class VariableContext

Represents the Variable Context for Triples.

Inheritance
System.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

| Improve this Doc View Source

VariableContext(VariableContextType)

Creates a new Variable Context.

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

Context Type.

Properties

| Improve this Doc 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.

| Improve this Doc View Source

Type

Gets the Context Type.

Declaration
public VariableContextType Type { get; }
Property Value
Type Description
VariableContextType
| Improve this Doc View Source

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 Source

AddVariable(INode)

Adds a Variable to this Context.

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

Variable.

| Improve this Doc 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
System.Boolean

Implements

ITripleContext

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • 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