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, IRdfHandler, INodeFactory
Constructors
| Improve this Doc View SourceDataTableHandler(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 |
---|---|---|
System.Data.DataTable | table | Data Table |
string | subjColName | Subject Column Name |
string | predColName | Predicate Column Name |
string | objColName | Object Column Name |
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 |
---|---|---|
System.Data.DataTable | table | Data Table |
Fields
| Improve this Doc View Source_table
Data Table into which Triples will be converted to rows
Declaration
protected DataTable _table
Field Value
Type | Description |
---|---|
System.Data.DataTable |
DefaultObjectColumn
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 |
Properties
| Improve this Doc View SourceAcceptsAll
Indicates that the Handler accepts all triples
Declaration
public override bool AcceptsAll { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
Methods
| Improve this Doc 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 |
---|---|
System.Boolean |
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 |
---|---|
System.Boolean |
Overrides
Remarks
To customize how a Triple is converted into a row in the table derive from this class and override this method