Show / Hide Table of Contents

Class ThreadedStoreWriterContext

Writer Context for Store Writers which do multi-threaded writing.

Inheritance
System.Object
BaseStoreWriterContext
ThreadedStoreWriterContext
TriGWriterContext
Implements
IStoreWriterContext
Inherited Members
BaseStoreWriterContext._prettyPrint
BaseStoreWriterContext._hiSpeedAllowed
BaseStoreWriterContext.PrettyPrint
BaseStoreWriterContext.HighSpeedModePermitted
BaseStoreWriterContext.Store
BaseStoreWriterContext.Output
BaseStoreWriterContext.FormatUri(string)
BaseStoreWriterContext.FormatUri(Uri)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Writing.Contexts
Assembly: dotNetRdf.dll
Syntax
public class ThreadedStoreWriterContext : BaseStoreWriterContext, IStoreWriterContext
Remarks

Provides a queue for queuing the URIs of Graphs from the Store that need writing and a thread safe way of retrieving the next Uri to be written from the Queue.

Constructors

| Improve this Doc View Source

ThreadedStoreWriterContext(ITripleStore, TextWriter, bool, bool)

Creates a new Threaded Store Writer Context with custom settings.

Declaration
public ThreadedStoreWriterContext(ITripleStore store, TextWriter output, bool prettyPrint, bool hiSpeedAllowed)
Parameters
Type Name Description
ITripleStore store

Store to be written.

System.IO.TextWriter output

TextWriter to write to.

System.Boolean prettyPrint

Pretty Print Mode.

System.Boolean hiSpeedAllowed

High Speed Mode.

Remarks

Provides a queue for queuing the URIs of Graphs from the Store that need writing and a thread safe way of retrieving the next Uri to be written from the Queue.

| Improve this Doc View Source

ThreadedStoreWriterContext(ITripleStore, TextWriter)

Creates a new Threaded Store Writer Context with default settings.

Declaration
public ThreadedStoreWriterContext(ITripleStore store, TextWriter output)
Parameters
Type Name Description
ITripleStore store

Store to be written.

System.IO.TextWriter output

TextWriter to write to.

Remarks

Provides a queue for queuing the URIs of Graphs from the Store that need writing and a thread safe way of retrieving the next Uri to be written from the Queue.

Properties

| Improve this Doc View Source

NamespaceMap

Gets the NamespaceMap used for reducing URIs to QNames since there may only be one shared map written to the output.

Declaration
public NamespaceMapper NamespaceMap { get; }
Property Value
Type Description
NamespaceMapper
Remarks

Provides a queue for queuing the URIs of Graphs from the Store that need writing and a thread safe way of retrieving the next Uri to be written from the Queue.

| Improve this Doc View Source

QNameMapper

Gets the QName Mapper.

Declaration
public ThreadSafeQNameOutputMapper QNameMapper { get; set; }
Property Value
Type Description
ThreadSafeQNameOutputMapper
Remarks

Must be manually initialized by the user.

Methods

| Improve this Doc View Source

Add(Uri)

Adds a Uri to the list of URIs for Graphs that are waiting to be written.

Declaration
[Obsolete("Replaced by Add(IRefNode)")]
public void Add(Uri u)
Parameters
Type Name Description
System.Uri u
Remarks

Provides a queue for queuing the URIs of Graphs from the Store that need writing and a thread safe way of retrieving the next Uri to be written from the Queue.

| Improve this Doc View Source

Add(IRefNode)

Adds the name of a graph to the list of graphs that are waiting to be written.

Declaration
public void Add(IRefNode name)
Parameters
Type Name Description
IRefNode name

The graph name.

Remarks

Provides a queue for queuing the URIs of Graphs from the Store that need writing and a thread safe way of retrieving the next Uri to be written from the Queue.

| Improve this Doc View Source

TryGetNextGraphName(out IRefNode)

Gets the next name for a graph that is waiting to be written.

Declaration
public bool TryGetNextGraphName(out IRefNode graphName)
Parameters
Type Name Description
IRefNode graphName

Name of next graph to be written.

Returns
Type Description
System.Boolean
Remarks

Provides a queue for queuing the URIs of Graphs from the Store that need writing and a thread safe way of retrieving the next Uri to be written from the Queue.

| Improve this Doc View Source

TryGetNextUri(out Uri)

Gets the next Uri for a Graph that is waiting to be written.

Declaration
[Obsolete("Replaced by TryGetNextGraphName(out IRefNode)", true)]
public bool TryGetNextUri(out Uri uri)
Parameters
Type Name Description
System.Uri uri
Returns
Type Description
System.Boolean

Uri of next Graph to be written.

Remarks

Provides a queue for queuing the URIs of Graphs from the Store that need writing and a thread safe way of retrieving the next Uri to be written from the Queue.

Implements

IStoreWriterContext

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • ThreadedStoreWriterContext(ITripleStore, TextWriter, bool, bool)
    • ThreadedStoreWriterContext(ITripleStore, TextWriter)
  • Properties
    • NamespaceMap
    • QNameMapper
  • Methods
    • Add(Uri)
    • Add(IRefNode)
    • TryGetNextGraphName(out IRefNode)
    • TryGetNextUri(out Uri)
  • Implements
  • Extension Methods
Back to top Generated by DocFX