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); }
Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.0, 1.0.6.2
See Also: Inherited members from RdfWriter.
⊟ Public Constructors
Creates an N3Writer that outputs statements to a TextWriter. Creates an N3Writer that outputs statements to a file. ⊟ Public Properties
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. [read-only] abstractNamespaces NamespaceManager . The NamespaceManager that manages namespace URIs and their prefixes. (Inherited from RdfWriter.) ⊟ Public Methods
⊟ Protected Methods
GetResourceKey (Resource) : object See Store.GetResourceKey(Resource). (Inherited from RdfWriter.)SetResourceKey (Resource, object) See Store.SetResourceKey(Resource). (Inherited from RdfWriter.)⊟ Explicitly Implemented Interface Members
SemWeb.StatementSink.Add Documentation for this section has not yet been entered. (Inherited from RdfWriter.) IDisposable.Dispose Documentation for this section has not yet been entered. (Inherited from RdfWriter.) SemWeb.CanForgetBNodes.ForgetBNode Documentation for this section has not yet been entered.
⊟ N3Writer Constructor
Creates an N3Writer that outputs statements to a TextWriter.
public N3Writer (System.IO.TextWriter writer)⊟ Parameters
- writer
- The TextWriter to which statements will be written.
⊟ Remarks
None.⊟ Requirements
Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.2
⊟ N3Writer Constructor
Creates an N3Writer that outputs statements to a file.
public N3Writer (string file)⊟ Parameters
- file
- The path to a file where the statements will be stored, or "-" to output to Console.Out.
⊟ Remarks
None.⊟ Requirements
Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.2
⊟ Format Property
Sets the format for output to Notation3, Turtle, or NTriples.
public N3Writer.Formats Format { set; get; }⊟ Value
A value from SemWeb.N3Writer.Formats that specifies the output format.⊟ Remarks
The default format is Turtle.⊟ Requirements
Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.2
⊟ SemWeb.CanForgetBNodes.ForgetBNode Method
Documentation for this section has not yet been entered.
⊟ Parameters
- bnode
- Documentation for this section has not yet been entered.
⊟ Remarks
Documentation for this section has not yet been entered.⊟ Requirements
Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.2