Click or drag to resize

IRdfWriterSave Method (IGraph, TextWriter, Boolean)

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

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

Parameters

g
Type: VDS.RDFIGraph
The graph to save.
output
Type: System.IOTextWriter
The TextWriter to save the graph to.
leaveOpen
Type: SystemBoolean
true
to leave the stream open when the method completes;.
false
otherwise.
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