Click or drag to resize

SingleGraphWriterSave Method (IGraph, String)

Method for Saving a Graph to a Concrete RDF Syntax in a file based format.

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

Parameters

g
Type: VDS.RDFIGraph
The Graph to Save.
filename
Type: SystemString
The filename to save the Graph in.

Implements

IRdfWriterSave(IGraph, String)
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 File.
See Also