Show / Hide Table of Contents

Class GraphExtensions

Extends IGraph with a method to retrieve the graph triples as a DataTable

Inheritance
object
GraphExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Data.DataTables
Assembly: dotNetRdf.Data.DataTables.dll
Syntax
public static class GraphExtensions

Methods

| Edit this page View Source

ToDataTable(IGraph)

Casts a Graph to a DataTable with all Columns typed as INode (Column Names are Subject, Predicate and Object

Declaration
public static DataTable ToDataTable(this IGraph g)
Parameters
Type Name Description
IGraph g

Graph to convert

Returns
Type Description
DataTable

A DataTable containing three Columns (Subject, Predicate and Object) all typed as INode with a Row per Triple

  • Edit this page
  • View Source
In this article
  • Methods
    • ToDataTable(IGraph)
Back to top Generated by DocFX