Click or drag to resize

SingleGraphWriter.Save Method (IGraph, TextWriter, Boolean)

Method for saving a graph to a concrete RDF syntax via some arbitray TextWriter.

Namespace:  VDS.RDF.Writing
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public void Save(
	IGraph g,
	TextWriter output,
	bool leaveOpen
)

Parameters

g
Type: VDS.RDF.IGraph
The graph to save.
output
Type: System.IO.TextWriter
The TextWriter to save the graph to.
leaveOpen
Type: System.Boolean
true
to leave the stream open when the method completes;.
false
otherwise.

Implements

IRdfWriter.Save(IGraph, TextWriter, Boolean)
Exceptions
ExceptionCondition
RdfExceptionThrown if the RDF in the graph is not representable by the writer.
IOExceptionThrown if the writer is unable to write to the underlying storage of the TextWriter specified in the output.
See Also