TriGWriter Class |
Namespace: VDS.RDF.Writing
The TriGWriter type exposes the following members.
Name | Description | |
---|---|---|
TriGWriter | Initializes a new instance of the TriGWriter class |
Name | Description | |
---|---|---|
CompressionLevel |
Gets/Sets the Compression Level for the writer.
| |
HighSpeedModePermitted |
Gets/Sets whether High Speed Write Mode is permitted.
| |
N3CompatabilityMode |
Gets/Sets whether N3 Compatability Mode is used, in this mode an = is written after Graph Names so an N3 parser can read the TriG file correctly.
| |
PrettyPrintMode |
Gets/Sets whether Pretty Printing is used.
| |
UseMultiThreadedWriting |
Gets/Sets whether multi-threaded writing will be used to generate output faster.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Save(ITripleStore, TextWriter) |
Saves a Store in TriG (Turtle with Named Graphs) format.
| |
Save(ITripleStore, String) |
Saves a Store in TriG (Turtle with Named Graphs) format.
| |
Save(ITripleStore, TextWriter, Boolean) |
Saves a Store in TriG (Turtle with Named Graphs) format.
| |
ToString |
Gets the String representation of the writer which is a description of the syntax it produces.
(Overrides ObjectToString.) |
Name | Description | |
---|---|---|
Warning |
Event which is raised when there is an issue with the Graphs being serialized that doesn't prevent serialization but the user should be aware of
|
For efficiency the TriG Writer splits it's writing over several threads (currently 4), these threads share a reference to a Context object which gives Global writing context eg. the target TextWriter being written to. Each thread generates temporary local writing contexts as it goes along, each of these is scoped to writing a specific Graph. Graphs are written to a StringWriter so the output for each Graph is built completely and then written in one go to the TextWriter specified as the target of the writing in the global context.