Show / Hide Table of Contents

Class RdfXmlWriterContext

Writer Context for RDF/XML Writers.
Inheritance
System.Object
RdfXmlWriterContext
Implements
ICollectionCompressingWriterContext
IWriterContext
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)
System.Object.ToString()
Namespace: VDS.RDF.Writing.Contexts
Assembly: dotNetRDF.dll
Syntax
public class RdfXmlWriterContext : ICollectionCompressingWriterContext, IWriterContext

Constructors

| Improve this Doc View Source

RdfXmlWriterContext(IGraph, TextWriter)

Creates a new RDF/XML Writer Context.
Declaration
public RdfXmlWriterContext(IGraph g, TextWriter output)
Parameters
Type Name Description
IGraph g Graph.
System.IO.TextWriter output Output destination.

Fields

| Improve this Doc View Source

_prettyPrint

Pretty Printing Mode setting.
Declaration
protected bool _prettyPrint
Field Value
Type Description
System.Boolean

Properties

| Improve this Doc View Source

BlankNodeMapper

Gets the Blank Node map in use.
Declaration
public BlankNodeOutputMapper BlankNodeMapper { get; }
Property Value
Type Description
BlankNodeOutputMapper
| Improve this Doc View Source

Collections

Represents the mapping from Blank Nodes to Collections.
Declaration
public Dictionary<INode, OutputRdfCollection> Collections { get; }
Property Value
Type Description
System.Collections.Generic.Dictionary<INode, OutputRdfCollection>
| Improve this Doc View Source

CompressionLevel

Gets/Sets the Compression Level used.
Declaration
public int CompressionLevel { get; set; }
Property Value
Type Description
System.Int32
Remarks
Not currently supported.
| Improve this Doc View Source

Graph

Gets the Graph being written.
Declaration
public IGraph Graph { get; }
Property Value
Type Description
IGraph
| Improve this Doc View Source

HighSpeedModePermitted

Gets/Sets whether High Speed Mode is permitted.
Declaration
public bool HighSpeedModePermitted { get; set; }
Property Value
Type Description
System.Boolean
Remarks
Not currently supported.
| Improve this Doc View Source

NamespaceMap

Gets the Namespace Map in use.
Declaration
public NestedNamespaceMapper NamespaceMap { get; }
Property Value
Type Description
NestedNamespaceMapper
| Improve this Doc View Source

NextNamespaceID

Gets/Sets the next ID to use for issuing Temporary Namespaces.
Declaration
public int NextNamespaceID { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

NodeFormatter

Gets/Sets the Node Formatter.
Declaration
public INodeFormatter NodeFormatter { get; set; }
Property Value
Type Description
INodeFormatter
Remarks
Node Formatters are not used for RDF/XML output.
| Improve this Doc View Source

Output

Gets the TextWriter being written to.
Declaration
public TextWriter Output { get; }
Property Value
Type Description
System.IO.TextWriter
| Improve this Doc View Source

PrettyPrint

Gets/Sets the Pretty Printing Mode used.
Declaration
public bool PrettyPrint { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

TriplesDone

Stores the Triples that should be excluded from standard output as they are part of collections.
Declaration
public BaseTripleCollection TriplesDone { get; }
Property Value
Type Description
BaseTripleCollection
| Improve this Doc View Source

UriFormatter

Gets/Sets the URI Formatter.
Declaration
public IUriFormatter UriFormatter { get; set; }
Property Value
Type Description
IUriFormatter
Remarks
URI Formatters are not used for RDF/XML output.
| Improve this Doc View Source

UseAttributes

Gets/Sets whether attributes are used to encode the predicates and objects of triples with simple literal properties.
Declaration
public bool UseAttributes { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

UseDtd

Gets/Sets whether a DTD is used.
Declaration
public bool UseDtd { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Writer

Gets the XML Writer in use.
Declaration
public XmlWriter Writer { get; }
Property Value
Type Description
System.Xml.XmlWriter

Implements

ICollectionCompressingWriterContext
IWriterContext

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • RdfXmlWriterContext(IGraph, TextWriter)
  • Fields
    • _prettyPrint
  • Properties
    • BlankNodeMapper
    • Collections
    • CompressionLevel
    • Graph
    • HighSpeedModePermitted
    • NamespaceMap
    • NextNamespaceID
    • NodeFormatter
    • Output
    • PrettyPrint
    • TriplesDone
    • UriFormatter
    • UseAttributes
    • UseDtd
    • Writer
  • Implements
  • Extension Methods
Back to top Generated by DocFX