Class DataTableHandler
RDF Handler which turns triples into rows in a Data Table
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VDS.RDF.Data.DataTables
Assembly: dotNetRDF.Data.DataTables.dll
Syntax
public class DataTableHandler : BaseRdfHandler, IRdfHandler, INodeFactory
Constructors
| Improve this Doc 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 |
---|---|---|
System.Data.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 |
---|---|---|
System.Data.DataTable | table | Data Table |
System.String | subjColName | Subject Column Name |
System.String | predColName | Predicate Column Name |
System.String | objColName | Object Column Name |
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 |
---|---|
System.String |
DefaultPredicateColumn
Constants for Default Column Names
Declaration
public const string DefaultPredicateColumn = "Predicate"
Field Value
Type | Description |
---|---|
System.String |
DefaultSubjectColumn
Constants for Default Column Names
Declaration
public const string DefaultSubjectColumn = "Subject"
Field Value
Type | Description |
---|---|
System.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 SourceHandleTripleInternal(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