Class NTriplesWriter
Class for generating RDF in NTriples Concrete Syntax.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: VDS.RDF.Writing
Assembly: dotNetRDF.dll
Syntax
public class NTriplesWriter : BaseRdfWriter, IRdfWriter, IFormatterBasedWriter
Constructors
| Improve this Doc View SourceNTriplesWriter()
Creates a new writer.
Declaration
public NTriplesWriter()
NTriplesWriter(NTriplesSyntax)
Creates a new writer.
Declaration
public NTriplesWriter(NTriplesSyntax syntax)
Parameters
Type | Name | Description |
---|---|---|
NTriplesSyntax | syntax | NTriples Syntax Mode. |
Properties
| Improve this Doc View SourceSortTriples
Gets/Sets whether Triples are sorted before being Output.
Declaration
public bool SortTriples { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Syntax
Gets/Sets the NTriples syntax mode.
Declaration
public NTriplesSyntax Syntax { get; set; }
Property Value
Type | Description |
---|---|
NTriplesSyntax |
TripleFormatterType
Gets the type of the Triple Formatter used by this writer.
Declaration
public Type TripleFormatterType { get; }
Property Value
Type | Description |
---|---|
System.Type |
Methods
| Improve this Doc View SourceSave(IGraph, String)
Saves the Graph in NTriples Syntax to the given stream.
Declaration
public override void Save(IGraph g, string filename)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph to save. |
System.String | filename | File to save to. |
Overrides
| Improve this Doc View SourceSaveInternal(IGraph, TextWriter)
Saves the Graph in NTriples Syntax to the given stream.
Declaration
protected override void SaveInternal(IGraph g, TextWriter output)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph to save. |
System.IO.TextWriter | output | Stream to save to. |
Overrides
| Improve this Doc View SourceToString()
Gets the String representation of the writer which is a description of the syntax it produces.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()
Events
| Improve this Doc View SourceWarning
Event which is raised when there is an issue with the Graph being serialized that doesn't prevent serialization but the user should be aware of
Declaration
public override event RdfWriterWarning Warning
Event Type
Type | Description |
---|---|
RdfWriterWarning |