Show / Hide Table of Contents

Interface IRdfReader

Interface to be implemented by RDF Readers which parse Concrete RDF Syntax.
Namespace: VDS.RDF
Assembly: dotNetRDF.dll
Syntax
public interface IRdfReader

Methods

| Improve this Doc View Source

Load(IGraph, StreamReader)

Method for Loading a Graph from some Concrete RDF Syntax via some arbitrary Stream.
Declaration
void Load(IGraph g, StreamReader input)
Parameters
Type Name Description
IGraph g Graph to load RDF into.
System.IO.StreamReader input The reader to read input from.
Exceptions
Type Condition
RdfException Thrown if the Parser tries to output something that is invalid RDF.
RdfParseException Thrown if the Parser cannot Parse the Input.
System.IO.IOException Thrown if the Parser encounters an IO Error while trying to access/parse the Stream.
| Improve this Doc View Source

Load(IGraph, TextReader)

Method for Loading a Graph from some Concrete RDF Syntax via some arbitrary Input.
Declaration
void Load(IGraph g, TextReader input)
Parameters
Type Name Description
IGraph g Graph to load RDF into.
System.IO.TextReader input The reader to read input from.
Exceptions
Type Condition
RdfException Thrown if the Parser tries to output something that is invalid RDF.
RdfParseException Thrown if the Parser cannot Parse the Input.
System.IO.IOException Thrown if the Parser encounters an IO Error while trying to access/parse the Stream.
| Improve this Doc View Source

Load(IGraph, String)

Method for Loading a Graph from some Concrete RDF Syntax from a given File.
Declaration
void Load(IGraph g, string filename)
Parameters
Type Name Description
IGraph g Graph to load RDF into.
System.String filename The Filename of the File to read from.
Exceptions
Type Condition
RdfException Thrown if the Parser tries to output something that is invalid RDF.
RdfParseException Thrown if the Parser cannot Parse the Input.
System.IO.IOException Thrown if the Parser encounters an IO Error while trying to access/parse the File.
| Improve this Doc View Source

Load(IRdfHandler, StreamReader)

Method for Loading RDF using a RDF Handler from some Concrete RDF Syntax via some arbitrary Stream.
Declaration
void Load(IRdfHandler handler, StreamReader input)
Parameters
Type Name Description
IRdfHandler handler RDF Handler to use.
System.IO.StreamReader input The reader to read input from.
Exceptions
Type Condition
RdfException Thrown if the Parser tries to output something that is invalid RDF.
RdfParseException Thrown if the Parser cannot Parse the Input.
System.IO.IOException Thrown if the Parser encounters an IO Error while trying to access/parse the Stream.
| Improve this Doc View Source

Load(IRdfHandler, TextReader)

Method for Loading RDF using a RDF Handler from some Concrete RDF Syntax via some arbitrary Stream.
Declaration
void Load(IRdfHandler handler, TextReader input)
Parameters
Type Name Description
IRdfHandler handler RDF Handler to use.
System.IO.TextReader input The reader to read input from.
Exceptions
Type Condition
RdfException Thrown if the Parser tries to output something that is invalid RDF.
RdfParseException Thrown if the Parser cannot Parse the Input.
System.IO.IOException Thrown if the Parser encounters an IO Error while trying to access/parse the Stream.
| Improve this Doc View Source

Load(IRdfHandler, String)

Method for Loading RDF using a RDF Handler from some Concrete RDF Syntax from a given File.
Declaration
void Load(IRdfHandler handler, string filename)
Parameters
Type Name Description
IRdfHandler handler RDF Handler to use.
System.String filename The Filename of the File to read from.
Exceptions
Type Condition
RdfException Thrown if the Parser tries to output something that is invalid RDF.
RdfParseException Thrown if the Parser cannot Parse the Input.
System.IO.IOException Thrown if the Parser encounters an IO Error while trying to access/parse the Stream.

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
event RdfReaderWarning Warning
Event Type
Type Description
RdfReaderWarning

Extension Methods

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