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
object
BaseHandler
BaseRdfHandler
WriteToStoreHandler
Implements
ICommentRdfHandler
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)
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.Parsing.Handlers
Assembly: dotNetRdf.dll
Syntax
public class WriteToStoreHandler : BaseRdfHandler, ICommentRdfHandler, IRdfHandler, INodeFactory

Constructors

| Edit this page 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.

| Edit this page 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.

| Edit this page 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.

Uri defaultGraphUri

Graph URI to write Triples from the default graph to.

| Edit this page 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.

Uri defaultGraphUri

Graph URI to write Triples from the default graph to.

int batchSize

Batch Size.

Fields

| Edit this page View Source

DefaultBatchSize

Default Batch Size for writes.

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

Properties

| Edit this page View Source

AcceptsAll

Gets 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

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
bool ok

Indicates whether parsing completed without error.

Overrides
BaseRdfHandler.EndRdfInternal(bool)
| Edit this page 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
bool
Overrides
BaseRdfHandler.HandleQuadInternal(Triple, IRefNode)
| Edit this page 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
bool
Overrides
BaseRdfHandler.HandleTripleInternal(Triple)
| Edit this page 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

ICommentRdfHandler
IRdfHandler
INodeFactory

Extension Methods

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