Class DataTableHandler
RDF Handler which turns triples into rows in a Data Table
Inherited Members
Namespace: VDS.RDF.Data.DataTables
Assembly: dotNetRdf.Data.DataTables.dll
Syntax
public class DataTableHandler : BaseRdfHandler, ICommentRdfHandler, IRdfHandler, INodeFactory
Constructors
| Edit this page View SourceDataTableHandler(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 |
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 SourceDefaultObjectColumn
Constants for Default Column Names
Declaration
public const string DefaultObjectColumn = "Object"
Field Value
Type | Description |
---|---|
string |
DefaultPredicateColumn
Constants for Default Column Names
Declaration
public const string DefaultPredicateColumn = "Predicate"
Field Value
Type | Description |
---|---|
string |
DefaultSubjectColumn
Constants for Default Column Names
Declaration
public const string DefaultSubjectColumn = "Subject"
Field Value
Type | Description |
---|---|
string |
_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 SourceAcceptsAll
Indicates that the Handler accepts all triples
Declaration
public override bool AcceptsAll { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
Methods
| Edit this page View SourceHandleQuadInternal(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
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 |
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
Remarks
To customize how a Triple is converted into a row in the table derive from this class and override this method