Show / Hide Table of Contents

Class WriteToStoreHandler

A RDF Handler which writes the Triples being parsed directly to a IStorageProvider in batches provided the manager supports the UpdateGraph() method.

Inheritance
System.Object
BaseHandler
BaseRdfHandler
WriteToStoreHandler
Implements
IRdfHandler
INodeFactory
Inherited Members
BaseRdfHandler.StartRdf()
BaseRdfHandler.EndRdf(bool)
BaseRdfHandler.HandleNamespace(string, Uri)
BaseRdfHandler.HandleNamespaceInternal(string, Uri)
BaseRdfHandler.HandleBaseUri(Uri)
BaseRdfHandler.HandleBaseUriInternal(Uri)
BaseRdfHandler.HandleTriple(Triple)
BaseRdfHandler.HandleQuad(Triple, IRefNode)
BaseHandler.NodeFactory
BaseHandler.NormalizeLiteralValues
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.Parsing.Handlers
Assembly: dotNetRdf.dll
Syntax
public class WriteToStoreHandler : BaseRdfHandler, IRdfHandler, INodeFactory

Constructors

| Improve this Doc View Source

WriteToStoreHandler(IStorageProvider, int)

Creates a new Write to Store Handler.

Declaration
public WriteToStoreHandler(IStorageProvider manager, int batchSize)
Parameters
Type Name Description
IStorageProvider manager

Manager to write to.

int batchSize

Batch Size.

| Improve this Doc View Source

WriteToStoreHandler(IStorageProvider, Uri, int)

Creates a new Write to Store Handler.

Declaration
public WriteToStoreHandler(IStorageProvider manager, Uri defaultGraphUri, int batchSize)
Parameters
Type Name Description
IStorageProvider manager

Manager to write to.

System.Uri defaultGraphUri

Graph URI to write Triples from the default graph to.

int batchSize

Batch Size.

| Improve this Doc View Source

WriteToStoreHandler(IStorageProvider, Uri)

Creates a new Write to Store Handler.

Declaration
public WriteToStoreHandler(IStorageProvider manager, Uri defaultGraphUri)
Parameters
Type Name Description
IStorageProvider manager

Manager to write to.

System.Uri defaultGraphUri

Graph URI to write Triples from the default graph to.

| Improve this Doc View Source

WriteToStoreHandler(IStorageProvider)

Creates a new Write to Store Handler.

Declaration
public WriteToStoreHandler(IStorageProvider manager)
Parameters
Type Name Description
IStorageProvider manager

Manager to write to.

Fields

| Improve this Doc View Source

DefaultBatchSize

Default Batch Size for writes.

Declaration
public const int DefaultBatchSize = 1000
Field Value
Type Description
int

Properties

| Improve this Doc View Source

AcceptsAll

Gets that the Handler accepts all Triples.

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

Methods

| Improve this Doc View Source

EndRdfInternal(bool)

Ends RDF Handling by ensuring the queue of Triples to write has been processed.

Declaration
protected override void EndRdfInternal(bool ok)
Parameters
Type Name Description
System.Boolean ok

Indicates whether parsing completed without error.

Overrides
BaseRdfHandler.EndRdfInternal(bool)
| Improve this Doc View Source

HandleQuadInternal(Triple, IRefNode)

Handles quads by queuing them for writing and enacting the writing if the Batch Size has been reached/exceeded.

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

Triple.

IRefNode graph

The graph containing the triple.

Returns
Type Description
System.Boolean
Overrides
BaseRdfHandler.HandleQuadInternal(Triple, IRefNode)
| Improve this Doc View Source

HandleTripleInternal(Triple)

Handles triples by passing them to HandleQuadInternal(Triple, IRefNode) for queuing, passing null as the target graph name.

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

Triple to handle.

Returns
Type Description
System.Boolean
Overrides
BaseRdfHandler.HandleTripleInternal(Triple)
| Improve this Doc View Source

StartRdfInternal()

Starts RDF Handling by ensuring the queue of Triples to write is empty.

Declaration
protected override void StartRdfInternal()
Overrides
BaseRdfHandler.StartRdfInternal()

Implements

IRdfHandler
INodeFactory

Extension Methods

Extensions.ToSafeString(object)
HandlerExtensions.Apply(IRdfHandler, IEnumerable<Triple>)
HandlerExtensions.Apply(IRdfHandler, IGraph)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • WriteToStoreHandler(IStorageProvider, int)
    • WriteToStoreHandler(IStorageProvider, Uri, int)
    • WriteToStoreHandler(IStorageProvider, Uri)
    • WriteToStoreHandler(IStorageProvider)
  • Fields
    • DefaultBatchSize
  • Properties
    • AcceptsAll
  • Methods
    • EndRdfInternal(bool)
    • HandleQuadInternal(Triple, IRefNode)
    • HandleTripleInternal(Triple)
    • StartRdfInternal()
  • Implements
  • Extension Methods
Back to top Generated by DocFX