Class RdfXmlParser
Parser for RDF/XML syntax.
Inheritance
System.Object
RdfXmlParser
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 SourceRdfXmlParser()
Creates a new RDF/XML Parser.
Declaration
public RdfXmlParser()
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 SourceTraceParsing
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 SourceLoad(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. |
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. |
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. |
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. |
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. |
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. |
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 SourceWarning
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 |