Show / Hide Table of Contents

Class RdfXmlWriterContext

Writer Context for RDF/XML Writers.

Inheritance
object
RdfXmlWriterContext
Implements
ICollectionCompressingWriterContext
ICompressingWriterContext
IWriterContext
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Writing.Contexts
Assembly: dotNetRdf.dll
Syntax
public class RdfXmlWriterContext : ICollectionCompressingWriterContext, ICompressingWriterContext, IWriterContext

Constructors

| Edit this page 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.

TextWriter output

Output destination.

Properties

| Edit this page View Source

BlankNodeMapper

Gets the Blank Node map in use.

Declaration
public BlankNodeOutputMapper BlankNodeMapper { get; }
Property Value
Type Description
BlankNodeOutputMapper
| Edit this page View Source

Collections

Represents the mapping from Blank Nodes to Collections.

Declaration
public Dictionary<INode, OutputRdfCollection> Collections { get; }
Property Value
Type Description
Dictionary<INode, OutputRdfCollection>
| Edit this page View Source

CompressionLevel

Gets/Sets the Compression Level used.

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

Not currently supported.

| Edit this page View Source

Graph

Gets the Graph being written.

Declaration
public IGraph Graph { get; }
Property Value
Type Description
IGraph
| Edit this page View Source

HighSpeedModePermitted

Gets/Sets whether High Speed Mode is permitted.

Declaration
public bool HighSpeedModePermitted { get; set; }
Property Value
Type Description
bool
Remarks

Not currently supported.

| Edit this page View Source

NamespaceMap

Gets the Namespace Map in use.

Declaration
public NestedNamespaceMapper NamespaceMap { get; }
Property Value
Type Description
NestedNamespaceMapper
| Edit this page View Source

NextNamespaceID

Gets/Sets the next ID to use for issuing Temporary Namespaces.

Declaration
public int NextNamespaceID { get; set; }
Property Value
Type Description
int
| Edit this page 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.

| Edit this page View Source

Output

Gets the TextWriter being written to.

Declaration
public TextWriter Output { get; }
Property Value
Type Description
TextWriter
| Edit this page View Source

PrettyPrint

Gets/Sets the Pretty Printing Mode used.

Declaration
public bool PrettyPrint { get; set; }
Property Value
Type Description
bool
| Edit this page 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
| Edit this page View Source

UriFactory

Gets/sets the URI factory used.

Declaration
public IUriFactory UriFactory { get; set; }
Property Value
Type Description
IUriFactory
| Edit this page 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.

| Edit this page 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
bool
| Edit this page View Source

UseDtd

Gets/Sets whether a DTD is used.

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

Writer

Gets the XML Writer in use.

Declaration
public XmlWriter Writer { get; }
Property Value
Type Description
XmlWriter

Implements

ICollectionCompressingWriterContext
ICompressingWriterContext
IWriterContext

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • RdfXmlWriterContext(IGraph, TextWriter)
  • Properties
    • BlankNodeMapper
    • Collections
    • CompressionLevel
    • Graph
    • HighSpeedModePermitted
    • NamespaceMap
    • NextNamespaceID
    • NodeFormatter
    • Output
    • PrettyPrint
    • TriplesDone
    • UriFactory
    • UriFormatter
    • UseAttributes
    • UseDtd
    • Writer
  • Implements
  • Extension Methods
Back to top Generated by DocFX