Class RdfXmlWriterContext
Writer Context for RDF/XML Writers.
Inheritance
Inherited Members
Namespace: VDS.RDF.Writing.Contexts
Assembly: dotNetRdf.dll
Syntax
public class RdfXmlWriterContext : ICollectionCompressingWriterContext, ICompressingWriterContext, IWriterContext
Constructors
| Improve this Doc View SourceRdfXmlWriterContext(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. |
Properties
| Improve this Doc View SourceBlankNodeMapper
Gets the Blank Node map in use.
Declaration
public BlankNodeOutputMapper BlankNodeMapper { get; }
Property Value
Type | Description |
---|---|
BlankNodeOutputMapper |
Collections
Represents the mapping from Blank Nodes to Collections.
Declaration
public Dictionary<INode, OutputRdfCollection> Collections { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<TKey, TValue><INode, OutputRdfCollection> |
CompressionLevel
Gets/Sets the Compression Level used.
Declaration
public int CompressionLevel { get; set; }
Property Value
Type | Description |
---|---|
int |
Remarks
Not currently supported.
Graph
Gets the Graph being written.
Declaration
public IGraph Graph { get; }
Property Value
Type | Description |
---|---|
IGraph |
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.
NamespaceMap
Gets the Namespace Map in use.
Declaration
public NestedNamespaceMapper NamespaceMap { get; }
Property Value
Type | Description |
---|---|
NestedNamespaceMapper |
NextNamespaceID
Gets/Sets the next ID to use for issuing Temporary Namespaces.
Declaration
public int NextNamespaceID { get; set; }
Property Value
Type | Description |
---|---|
int |
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.
Output
Gets the TextWriter being written to.
Declaration
public TextWriter Output { get; }
Property Value
Type | Description |
---|---|
System.IO.TextWriter |
PrettyPrint
Gets/Sets the Pretty Printing Mode used.
Declaration
public bool PrettyPrint { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
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 |
UriFactory
Gets/sets the URI factory used.
Declaration
public IUriFactory UriFactory { get; set; }
Property Value
Type | Description |
---|---|
IUriFactory |
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.
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 |
UseDtd
Gets/Sets whether a DTD is used.
Declaration
public bool UseDtd { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Writer
Gets the XML Writer in use.
Declaration
public XmlWriter Writer { get; }
Property Value
Type | Description |
---|---|
System.Xml.XmlWriter |