Show / Hide Table of Contents

Class Notation3Writer

Class for generating Notation 3 Concrete RDF Syntax which provides varying levels of Syntax Compression.

Inheritance
object
BaseRdfWriter
Notation3Writer
Implements
IRdfWriter
IPrettyPrintingWriter
IHighSpeedWriter
ICompressingWriter
INamespaceWriter
IFormatterBasedWriter
Inherited Members
BaseRdfWriter.Save(IGraph, string)
BaseRdfWriter.Save(IGraph, string, Encoding)
BaseRdfWriter.Save(IGraph, TextWriter)
BaseRdfWriter.Save(IGraph, TextWriter, bool)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: VDS.RDF.Writing
Assembly: dotNetRdf.dll
Syntax
public class Notation3Writer : BaseRdfWriter, IRdfWriter, IPrettyPrintingWriter, IHighSpeedWriter, ICompressingWriter, INamespaceWriter, IFormatterBasedWriter

Constructors

| Edit this page View Source

Notation3Writer()

Creates a new Notation 3 Writer which uses the Default Compression Level.

Declaration
public Notation3Writer()
| Edit this page View Source

Notation3Writer(int)

Creates a new Notation 3 Writer which uses the given Compression Level.

Declaration
public Notation3Writer(int compressionLevel)
Parameters
Type Name Description
int compressionLevel

Desired Compression Level.

Remarks

See Remarks for this classes CompressionLevel property to see what effect different compression levels have.

Properties

| Edit this page View Source

CompressionLevel

Gets/Sets the Compression Level to be used.

Declaration
public int CompressionLevel { get; set; }
Property Value
Type Description
int
Remarks

If the Compression Level is set to None then High Speed mode will always be used regardless of the input Graph and the HighSpeedMorePermitted property.

If the Compression Level is set to Minimal or above then full Predicate Object lists will be used for Triples.

If the Compression Level is set to More or above then Blank Node Collections and Collection syntax will be used if the Graph contains Triples that can be compressed in that way.

| Edit this page View Source

DefaultNamespaces

Gets/Sets the Default Namespaces that are always available.

Declaration
public INamespaceMapper DefaultNamespaces { get; set; }
Property Value
Type Description
INamespaceMapper
| Edit this page View Source

HighSpeedModePermitted

Gets/Sets whether High Speed Write Mode should be allowed.

Declaration
public bool HighSpeedModePermitted { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

PrettyPrintMode

Gets/Sets whether Pretty Printing is used.

Declaration
public bool PrettyPrintMode { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

TripleFormatterType

Gets the type of the Triple Formatter used by this writer.

Declaration
public Type TripleFormatterType { get; }
Property Value
Type Description
Type

Methods

| Edit this page View Source

SaveInternal(IGraph, TextWriter)

Saves a Graph to the given Stream using Notation 3 Syntax.

Declaration
protected override void SaveInternal(IGraph g, TextWriter output)
Parameters
Type Name Description
IGraph g

Graph to save.

TextWriter output

Stream to save to.

Overrides
BaseRdfWriter.SaveInternal(IGraph, TextWriter)
| Edit this page View Source

ToString()

Gets the String representation of the writer which is a description of the syntax it produces.

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Events

| Edit this page View Source

Warning

Event which is raised when there is a non-fatal issue with the Graph being written

Declaration
public override event RdfWriterWarning Warning
Event Type
Type Description
RdfWriterWarning
Overrides
BaseRdfWriter.Warning

Implements

IRdfWriter
IPrettyPrintingWriter
IHighSpeedWriter
ICompressingWriter
INamespaceWriter
IFormatterBasedWriter

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • Notation3Writer()
    • Notation3Writer(int)
  • Properties
    • CompressionLevel
    • DefaultNamespaces
    • HighSpeedModePermitted
    • PrettyPrintMode
    • TripleFormatterType
  • Methods
    • SaveInternal(IGraph, TextWriter)
    • ToString()
  • Events
    • Warning
  • Implements
  • Extension Methods
Back to top Generated by DocFX