Show / Hide Table of Contents

Class DataTableHandler

RDF Handler which turns triples into rows in a Data Table

Inheritance
object
BaseHandler
BaseRdfHandler
DataTableHandler
Implements
ICommentRdfHandler
IRdfHandler
INodeFactory
Inherited Members
BaseRdfHandler.StartRdf()
BaseRdfHandler.StartRdfInternal()
BaseRdfHandler.EndRdf(bool)
BaseRdfHandler.EndRdfInternal(bool)
BaseRdfHandler.HandleNamespace(string, Uri)
BaseRdfHandler.HandleNamespaceInternal(string, Uri)
BaseRdfHandler.HandleBaseUri(Uri)
BaseRdfHandler.HandleBaseUriInternal(Uri)
BaseRdfHandler.HandleTriple(Triple)
BaseRdfHandler.HandleQuad(Triple, IRefNode)
BaseRdfHandler.HandleComment(string)
BaseRdfHandler.HandleCommentInternal(string)
BaseHandler.NodeFactory
BaseHandler.NormalizeLiteralValues
BaseHandler.LanguageTagValidation
BaseHandler.ResolveQName(string)
BaseHandler.BaseUri
BaseHandler.NamespaceMap
BaseHandler.UriFactory
BaseHandler.CreateBlankNode()
BaseHandler.CreateBlankNode(string)
BaseHandler.CreateGraphLiteralNode()
BaseHandler.CreateGraphLiteralNode(IGraph)
BaseHandler.CreateLiteralNode(string, Uri)
BaseHandler.CreateLiteralNode(string)
BaseHandler.CreateLiteralNode(string, string)
BaseHandler.CreateUriNode(Uri)
BaseHandler.CreateUriNode(string)
BaseHandler.CreateUriNode()
BaseHandler.CreateVariableNode(string)
BaseHandler.CreateTripleNode(Triple)
BaseHandler.GetNextBlankNodeID()
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 class DataTableHandler : BaseRdfHandler, ICommentRdfHandler, IRdfHandler, INodeFactory

Constructors

| Edit this page View Source

DataTableHandler(DataTable)

Creates a new Handler for a given Data Table using the default column names

Declaration
public DataTableHandler(DataTable table)
Parameters
Type Name Description
DataTable table

Data Table

| Edit this page View Source

DataTableHandler(DataTable, string, string, string)

Creates a new Handler for a given Data Table with custom column names

Declaration
public DataTableHandler(DataTable table, string subjColName, string predColName, string objColName)
Parameters
Type Name Description
DataTable table

Data Table

string subjColName

Subject Column Name

string predColName

Predicate Column Name

string objColName

Object Column Name

Fields

| Edit this page View Source

DefaultObjectColumn

Constants for Default Column Names

Declaration
public const string DefaultObjectColumn = "Object"
Field Value
Type Description
string
| Edit this page View Source

DefaultPredicateColumn

Constants for Default Column Names

Declaration
public const string DefaultPredicateColumn = "Predicate"
Field Value
Type Description
string
| Edit this page View Source

DefaultSubjectColumn

Constants for Default Column Names

Declaration
public const string DefaultSubjectColumn = "Subject"
Field Value
Type Description
string
| Edit this page View Source

_table

Data Table into which Triples will be converted to rows

Declaration
protected DataTable _table
Field Value
Type Description
DataTable

Properties

| Edit this page View Source

AcceptsAll

Indicates that the Handler accepts all triples

Declaration
public override bool AcceptsAll { get; }
Property Value
Type Description
bool
Overrides
BaseRdfHandler.AcceptsAll

Methods

| Edit this page View Source

HandleQuadInternal(Triple, IRefNode)

Handles a quad by turning it into a row in the Data Table

Declaration
protected override bool HandleQuadInternal(Triple t, IRefNode graph)
Parameters
Type Name Description
Triple t

Triple

IRefNode graph

The name of the graph containing the triple.

Returns
Type Description
bool
Overrides
BaseRdfHandler.HandleQuadInternal(Triple, IRefNode)
Remarks

This implementation does not support handling triples in any graph other than the default graph. To customize how a Triple is converted into a row in the table derive from this class and override this method

Exceptions
Type Condition
RdfParseException

Raised if graph is not null, as this implementation only supports triples in the default graph.

| Edit this page View Source

HandleTripleInternal(Triple)

Handles a Triple by turning it into a row in the Data Table

Declaration
protected override bool HandleTripleInternal(Triple t)
Parameters
Type Name Description
Triple t

Triple

Returns
Type Description
bool
Overrides
BaseRdfHandler.HandleTripleInternal(Triple)
Remarks

To customize how a Triple is converted into a row in the table derive from this class and override this method

Implements

ICommentRdfHandler
IRdfHandler
INodeFactory

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
HandlerExtensions.Apply(IRdfHandler, IEnumerable<Triple>)
HandlerExtensions.Apply(IRdfHandler, IGraph)
  • Edit this page
  • View Source
In this article
  • Constructors
    • DataTableHandler(DataTable)
    • DataTableHandler(DataTable, string, string, string)
  • Fields
    • DefaultObjectColumn
    • DefaultPredicateColumn
    • DefaultSubjectColumn
    • _table
  • Properties
    • AcceptsAll
  • Methods
    • HandleQuadInternal(Triple, IRefNode)
    • HandleTripleInternal(Triple)
  • Implements
  • Extension Methods
Back to top Generated by DocFX