Class RdfJsonParser
Parser for RDF/JSON Syntax.
Inheritance
Implements
Inherited Members
Namespace: VDS.RDF.Parsing
Assembly: dotNetRdf.dll
Syntax
public class RdfJsonParser : IRdfReader
Methods
| Improve this Doc View SourceLoad(IGraph, StreamReader)
Read RDF/JSON Syntax from some Stream into a Graph.
Declaration
public void Load(IGraph g, StreamReader input)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph to read into. |
System.IO.StreamReader | input | Stream to read from. |
Load(IGraph, TextReader)
Read RDF/JSON Syntax from some Input into a Graph.
Declaration
public void Load(IGraph g, TextReader input)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph to read into. |
System.IO.TextReader | input | Input to read from. |
Load(IGraph, string)
Read RDF/Json Syntax from some File into a Graph.
Declaration
public void Load(IGraph g, string filename)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph to read into. |
string | filename | File to read from. |
Load(IRdfHandler, StreamReader, IUriFactory)
Method for Loading RDF using a RDF Handler from some Concrete RDF Syntax via some arbitrary Stream.
Declaration
public void Load(IRdfHandler handler, StreamReader input, IUriFactory uriFactory)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | RDF Handler to use. |
System.IO.StreamReader | input | The reader to read input from. |
IUriFactory | uriFactory | URI factory to use. |
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. |
Load(IRdfHandler, StreamReader)
Read RDF/JSON 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 | Stream to read from. |
Load(IRdfHandler, TextReader, IUriFactory)
Method for Loading RDF using a RDF Handler from some Concrete RDF Syntax via some arbitrary Stream.
Declaration
public void Load(IRdfHandler handler, TextReader input, IUriFactory uriFactory)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | RDF Handler to use. |
System.IO.TextReader | input | The reader to read input from. |
IUriFactory | uriFactory | URI factory to use. |
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. |
Load(IRdfHandler, TextReader)
Read RDF/JSON 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, IUriFactory)
Method for Loading RDF using a RDF Handler from some Concrete RDF Syntax from a given File.
Declaration
public void Load(IRdfHandler handler, string filename, IUriFactory uriFactory)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | RDF Handler to use. |
string | filename | The Filename of the File to read from. |
IUriFactory | uriFactory | URI factory to use. |
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. |
Load(IRdfHandler, string)
Read RDF/JSON 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. |
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 |
---|---|
string |
Overrides
Events
| Improve this Doc View SourceWarning
Event which is raised if there's a non-fatal issue with the RDF/Json Syntax
Declaration
public event RdfReaderWarning Warning
Event Type
Type | Description |
---|---|
RdfReaderWarning |