Class RdfXmlFormatter
A formatter which formats triples for RDF/XML output.
Inheritance
System.Object
RdfXmlFormatter
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)
Namespace: VDS.RDF.Writing.Formatting
Assembly: dotNetRDF.dll
Syntax
public class RdfXmlFormatter : IGraphFormatter, ITripleFormatter
Methods
| Improve this Doc View SourceFormat(Triple)
Formats a Triple as a <rdf:Description> element.
Declaration
public string Format(Triple t)
Parameters
Type | Name | Description |
---|---|---|
Triple | t | Triple. |
Returns
Type | Description |
---|---|
System.String |
FormatGraphFooter()
Formats a Graph Footer by closing the <rdf:RDF> element.
Declaration
public string FormatGraphFooter()
Returns
Type | Description |
---|---|
System.String |
FormatGraphHeader()
Formats a Graph Header by creating an <rdf:RDF> element.
Declaration
public string FormatGraphHeader()
Returns
Type | Description |
---|---|
System.String |
FormatGraphHeader(IGraph)
Formats a Graph Header by creating an <rdf:RDF> element and adding namespace definitions.
Declaration
public string FormatGraphHeader(IGraph g)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph. |
Returns
Type | Description |
---|---|
System.String |
FormatGraphHeader(INamespaceMapper)
Formats a Graph Header by creating an <rdf:RDF> element and adding namespace definitions.
Declaration
public string FormatGraphHeader(INamespaceMapper namespaces)
Parameters
Type | Name | Description |
---|---|---|
INamespaceMapper | namespaces | Namespaces. |
Returns
Type | Description |
---|---|
System.String |
ToString()
Gets the String description of this formatter.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()