Show / Hide Table of Contents

Class RdfXmlFormatter

A formatter which formats triples for RDF/XML output.
Inheritance
System.Object
RdfXmlFormatter
Implements
IGraphFormatter
ITripleFormatter
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 Source

Format(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
| Improve this Doc View Source

FormatGraphFooter()

Formats a Graph Footer by closing the <rdf:RDF> element.
Declaration
public string FormatGraphFooter()
Returns
Type Description
System.String
| Improve this Doc View Source

FormatGraphHeader()

Formats a Graph Header by creating an <rdf:RDF> element.
Declaration
public string FormatGraphHeader()
Returns
Type Description
System.String
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

ToString()

Gets the String description of this formatter.
Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

Implements

IGraphFormatter
ITripleFormatter

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Methods
    • Format(Triple)
    • FormatGraphFooter()
    • FormatGraphHeader()
    • FormatGraphHeader(IGraph)
    • FormatGraphHeader(INamespaceMapper)
    • ToString()
  • Implements
  • Extension Methods
Back to top Generated by DocFX