Class RdfXmlWriterContext
Writer Context for RDF/XML Writers.
Inherited Members
Namespace: VDS.RDF.Writing.Contexts
Assembly: dotNetRdf.dll
Syntax
public class RdfXmlWriterContext : ICollectionCompressingWriterContext, ICompressingWriterContext, IWriterContext
Constructors
| Edit this page 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. |
TextWriter | output | Output destination. |
Properties
| Edit this page 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 |
---|---|
Dictionary<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 |
---|---|
bool |
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 |
---|---|
TextWriter |
PrettyPrint
Gets/Sets the Pretty Printing Mode used.
Declaration
public bool PrettyPrint { get; set; }
Property Value
Type | Description |
---|---|
bool |
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 |
---|---|
bool |
UseDtd
Gets/Sets whether a DTD is used.
Declaration
public bool UseDtd { get; set; }
Property Value
Type | Description |
---|---|
bool |
Writer
Gets the XML Writer in use.
Declaration
public XmlWriter Writer { get; }
Property Value
Type | Description |
---|---|
XmlWriter |