SemWeb : SemWeb Namespace
N3Writer Class

Writes out RDF statements to a stream in Notation 3, Turtle (the default), or NTriples format.

public class N3Writer : RdfWriter, CanForgetBNodes

Remarks

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);
}  

Requirements

Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.0, 1.0.6.2

Members

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]
abstract
Namespaces NamespaceManager . The NamespaceManager that manages namespace URIs and their prefixes. (Inherited from RdfWriter.)

Public Methods

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.)

Protected Methods

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.

Member Details

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.

void SemWeb.CanForgetBNodes.ForgetBNode (BNode bnode)

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