Click or drag to resize

SingleGraphWriter.Save 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.RDF.IGraph
The Graph to Save.
output
Type: System.IO.TextWriter
The TextWriter to save the Graph to.

Implements

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