StringWriterWrite Method (IGraph, IRdfWriter) |
Writes the Graph to a String and returns the output in your chosen concrete RDF Syntax.
Namespace:
VDS.RDF.Writing
Assembly:
dotNetRDF (in dotNetRDF.dll) Version:
Syntax public static string Write(
IGraph g,
IRdfWriter writer
)
Public Shared Function Write (
g As IGraph,
writer As IRdfWriter
) As String
Parameters
- g
- Type: VDS.RDFIGraph
Graph to save. - writer
- Type: VDS.RDFIRdfWriter
Writer to use to generate the concrete RDF Syntax.
Return Value
Type:
String[Missing <returns> documentation for "M:VDS.RDF.Writing.StringWriter.Write(VDS.RDF.IGraph,VDS.RDF.IRdfWriter)"]
Remarks
Since the API allows for any
TextWriter to be passed to the
Save() method of a
IRdfWriter you can just pass in a
StringWriter to the Save() method to get the output as a String. This method simply provides a wrapper to doing just that.
See Also