Writes out RDF statements to a stream in Notation 3, Turtle (the default), or NTriples format.
|
The following example writes out RDF statements in Turtle format to a file:
C# Example |
using (N3Writer output = new N3Writer("filename.n3")) { store.Write(data); } |
See Also: Inherited members from RdfWriter.
Creates an N3Writer that outputs statements to a TextWriter. |
Creates an N3Writer that outputs statements to a file. |
BaseUri
|
string . Gets or sets the base URI for the output document. (Inherited from RdfWriter.) |
Format
|
N3Writer.Formats . Sets the format for output to Notation3, Turtle, or NTriples. |
Namespaces
[read-only]
abstract |
NamespaceManager . The NamespaceManager that manages namespace URIs and their prefixes. (Inherited from RdfWriter.) |
abstract |
Add
(Statement) Writes a statement to the stream. (Inherited from RdfWriter.) |
Close
() Completes writing the data and closes the stream. (Inherited from RdfWriter.) |
|
Write
(StatementSource) Writes out the contents of the StatementSource. (Inherited from RdfWriter.) |
GetResourceKey
(Resource) See SemWeb.Store.GetResourceKey(SemWeb.Resource). (Inherited from RdfWriter.) |
|
SetResourceKey
(Resource, object) See SemWeb.Store.SetResourceKey(SemWeb.Resource). (Inherited from RdfWriter.) |
Creates an N3Writer that outputs statements to a file.
Creates an N3Writer that outputs statements to a TextWriter.
Sets the format for output to Notation3, Turtle, or NTriples.