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
)
Sub Save (
g As IGraph,
output As TextWriter,
leaveOpen As Boolean
)
Parameters
- g
- Type: VDS.RDFIGraph
The graph to save. - output
- Type: System.IOTextWriter
The TextWriter to save the graph to. - leaveOpen
- Type: SystemBoolean
to leave the stream open when the method completes;. otherwise.
Exceptions Exception | Condition |
---|
RdfException | Thrown if the RDF in the graph is not representable by the writer. |
IOException | Thrown if the writer is unable to write to the underlying storage of the TextWriter specified in the output. |
See Also