Click or drag to resize

IRdfWriter.Save 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.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.
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