Class RdfXmlWriterContext
Writer Context for RDF/XML Writers.
Inheritance
System.Object
RdfXmlWriterContext
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 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. |
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 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<INode, OutputRdfCollection> |
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 |
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 |
NextNamespaceID
Gets/Sets the next ID to use for issuing Temporary Namespaces.
Declaration
public int NextNamespaceID { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
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 |
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 |
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 |
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 |