The base class of types that write statements to a stream.
This is an abstract class. Two subclasses are provided: SemWeb.N3Writer and SemWeb.RdfXmlWriter.
Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.0, 1.0.6.2
See Also: Inherited members from object.
⊟ Protected Constructors
RdfWriter ()The protected no-arg constructor used by derived classes. ⊟ Public Properties
BaseUri string . Gets or sets the base URI for the output document. [read-only] abstractNamespaces NamespaceManager . The NamespaceManager that manages namespace URIs and their prefixes. ⊟ Public Methods
abstractAdd (Statement) Writes a statement to the stream.Close () Completes writing the data and closes the stream. staticCreate (string, System.IO.TextWriter) : RdfWriter Creates a new RdfWriter whose type is specified by a string constant. staticCreate (string, string) : RdfWriter Creates a new RdfWriter whose type is specified by a string constant.Write (StatementSource) Writes out the contents of the StatementSource.⊟ Protected Methods
⊟ Explicitly Implemented Interface Members
SemWeb.StatementSink.Add Documentation for this section has not yet been entered. IDisposable.Dispose Documentation for this section has not yet been entered.
⊟ RdfWriter Constructor
The protected no-arg constructor used by derived classes.
protected RdfWriter ()⊟ Remarks
None.⊟ Requirements
Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.2
⊟ Add Method
Writes a statement to the stream.
⊟ Parameters
- statement
- The statement to write.
⊟ Remarks
None.⊟ Requirements
Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.2
⊟ BaseUri Property
Gets or sets the base URI for the output document.
public string BaseUri { set; get; }⊟ Value
A string containing the base URI of the output document, or null if the output document base URI is unknown or not applicable.⊟ Remarks
A writer may choose to abbreviate URIs in the output according to the base URI.⊟ Requirements
Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.2
⊟ Close Method
Completes writing the data and closes the stream.
public virtual void Close ()⊟ Remarks
None.⊟ Requirements
Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.2
⊟ Create Method
Creates a new RdfWriter whose type is specified by a string constant.
⊟ Parameters
- type
- The type of the writer to create. See below for possible values.
- output
- A TextWriter to output to.
⊟ Returns
A new RdfWriter.⊟ Remarks
The possible values for type are:
type Reader "xml", "text/xml", "application/xml", "application/rdf+xml" SemWeb.RdfXmlWriter "n3", "text/n3", "text/rdf+n3", "application/n3" SemWeb.N3Writer "turtle", "text/turtle", "application/turtle", "application/x-turtle" SemWeb.N3Writer configured for Turtle output "nt", "ntriples" SemWeb.N3Writer configured for NTriples output "dot" SemWeb.IO.GraphVizWriter ⊟ Requirements
Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.2
⊟ Create Method
Creates a new RdfWriter whose type is specified by a string constant.
⊟ Parameters
- type
- The type of the writer to create. See below for possible values.
- file
- The name of a file to output to, or "-" to output to Standard Output.
⊟ Returns
A new RdfWriter.⊟ Remarks
The possible values for type are listed in the Remarks section of RdfWriter.Create(string, System.IO.TextWriter)⊟ Requirements
Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.2
⊟ GetResourceKey Method
See Store.GetResourceKey(Resource).
⊟ Parameters
- resource
- A resource.
⊟ Returns
A resource key associated with the resource and this writer.⊟ Remarks
See Store.GetResourceKey(Resource).⊟ Requirements
Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.2
⊟ Namespaces Property
The NamespaceManager that manages namespace URIs and their prefixes.
public abstract NamespaceManager Namespaces { get; }⊟ Value
A NamespaceManager.⊟ Remarks
For some parsers, it is necessary to give a prefix for all namespaces that occur in the data model being written before the writing begins.⊟ Requirements
Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.2
⊟ SemWeb.StatementSink.Add Method
Documentation for this section has not yet been entered.
⊟ Parameters
- statement
- Documentation for this section has not yet been entered.
⊟ Returns
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
⊟ SetResourceKey Method
See Store.SetResourceKey(Resource).
⊟ Parameters
- resource
- A resource.
- value
- A key to associate with the resource and the writer.
⊟ Remarks
See Store.SetResourceKey(Resource).⊟ Requirements
Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.2
⊟ System.IDisposable.Dispose Method
Documentation for this section has not yet been entered.
void System.IDisposable.Dispose ()⊟ Remarks
Documentation for this section has not yet been entered.⊟ Requirements
Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.2
⊟ Write Method
Writes out the contents of the StatementSource.
public virtual void Write (StatementSource source)⊟ Parameters
- source
- A source containing statements to write.
⊟ Remarks
None.⊟ Requirements
Namespace: SemWeb
Assembly: SemWeb (in SemWeb.dll)
Assembly Versions: 1.0.6.2