Show / Hide Table of Contents

Class RdfXmlParser

Parser for RDF/XML syntax.
Inheritance
System.Object
RdfXmlParser
Implements
IRdfReader
ITraceableParser
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.Parsing
Assembly: dotNetRDF.dll
Syntax
public class RdfXmlParser : IRdfReader, ITraceableParser

Constructors

| Improve this Doc View Source

RdfXmlParser()

Creates a new RDF/XML Parser.
Declaration
public RdfXmlParser()
| Improve this Doc View Source

RdfXmlParser(RdfXmlParserMode)

Creates a new RDF/XML Parser which uses the given parsing mode.
Declaration
public RdfXmlParser(RdfXmlParserMode mode)
Parameters
Type Name Description
RdfXmlParserMode mode RDF/XML Parse Mode.

Properties

| Improve this Doc View Source

TraceParsing

Controls whether Parser progress will be traced by writing output to the Console.
Declaration
public bool TraceParsing { get; set; }
Property Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

Load(IGraph, StreamReader)

Reads RDF/XML syntax from some Stream into the given Graph.
Declaration
public void Load(IGraph g, StreamReader input)
Parameters
Type Name Description
IGraph g Graph to create Triples in.
System.IO.StreamReader input Input Stream.
| Improve this Doc View Source

Load(IGraph, TextReader)

Reads RDF/XML syntax from some Input into the given Graph.
Declaration
public void Load(IGraph g, TextReader input)
Parameters
Type Name Description
IGraph g Graph to create Triples in.
System.IO.TextReader input Input to read from.
| Improve this Doc View Source

Load(IGraph, String)

Reads RDF/XML syntax from some File into the given Graph.
Declaration
public void Load(IGraph g, string filename)
Parameters
Type Name Description
IGraph g Graph to create Triples in.
System.String filename Filename of File containg XML/RDF.
Remarks
Simply opens a Stream for the File then calls the other version of Load to do the actual parsing.
| Improve this Doc View Source

Load(IGraph, XmlDocument)

Reads RDF/XML from the given XML Document.
Declaration
public void Load(IGraph g, XmlDocument document)
Parameters
Type Name Description
IGraph g Graph to load into.
System.Xml.XmlDocument document XML Document.
| Improve this Doc View Source

Load(IRdfHandler, StreamReader)

Reads RDF/XML syntax from some Stream using a RDF Handler.
Declaration
public void Load(IRdfHandler handler, StreamReader input)
Parameters
Type Name Description
IRdfHandler handler RDF Handler to use.
System.IO.StreamReader input Input Stream.
| Improve this Doc View Source

Load(IRdfHandler, TextReader)

Reads RDF/XML syntax from some Input using a RDF Handler.
Declaration
public void Load(IRdfHandler handler, TextReader input)
Parameters
Type Name Description
IRdfHandler handler RDF Handler to use.
System.IO.TextReader input Input to read from.
| Improve this Doc View Source

Load(IRdfHandler, String)

Reads RDF/XML syntax from a file using a RDF Handler.
Declaration
public void Load(IRdfHandler handler, string filename)
Parameters
Type Name Description
IRdfHandler handler RDF Handler to use.
System.String filename File to read from.
| Improve this Doc View Source

ToString()

Gets the String representation of the Parser which is a description of the syntax it parses.
Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

Events

| Improve this Doc View Source

Warning

Event which Readers can raise when they notice syntax that is ambigious/deprecated etc which can still be parsed
Declaration
public event RdfReaderWarning Warning
Event Type
Type Description
RdfReaderWarning

Implements

IRdfReader
ITraceableParser

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • RdfXmlParser()
    • RdfXmlParser(RdfXmlParserMode)
  • Properties
    • TraceParsing
  • Methods
    • Load(IGraph, StreamReader)
    • Load(IGraph, TextReader)
    • Load(IGraph, String)
    • Load(IGraph, XmlDocument)
    • Load(IRdfHandler, StreamReader)
    • Load(IRdfHandler, TextReader)
    • Load(IRdfHandler, String)
    • ToString()
  • Events
    • Warning
  • Implements
  • Extension Methods
Back to top Generated by DocFX