Click or drag to resize

SingleGraphWriterSave Method (IGraph, TextWriter)

Method for Saving a Graph to a Concrete RDF Syntax via some arbitrary TextWriter.

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

Parameters

g
Type: VDS.RDFIGraph
The Graph to Save.
output
Type: System.IOTextWriter
The TextWriter to save the Graph to.

Implements

IRdfWriterSave(IGraph, TextWriter)
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