Show / Hide Table of Contents

Class StoreReaderAdapter

An adapter class that presents a IStoreReader that loads quads into an ITripleStore as a IRdfReader that can load triples into a Graph. When using the methods of IRdfReader that take an IGraph argument, the adapter will use the GraphHandler implementation which populates the graph with all triples from all graphs read by the underlying IStoreReader.

Inheritance
object
StoreReaderAdapter
Implements
IRdfReader
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Parsing
Assembly: dotNetRdf.dll
Syntax
public class StoreReaderAdapter : IRdfReader

Constructors

| Edit this page View Source

StoreReaderAdapter(IStoreReader)

Create an adapter that presents the specified IStoreReader instance as an IRdfReader.

Declaration
public StoreReaderAdapter(IStoreReader storeReader)
Parameters
Type Name Description
IStoreReader storeReader

The store reader to be wrapped.

Methods

| Edit this page View Source

Load(IGraph, StreamReader)

Method for Loading a Graph from some Concrete RDF Syntax via some arbitrary Stream.

Declaration
public void Load(IGraph g, StreamReader input)
Parameters
Type Name Description
IGraph g

Graph to load RDF into.

StreamReader input

The reader to read input from.

Remarks

When loading from a quad format, the graph will receive a merge of the triples defined in all graphs in the source data.

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.

IOException

Thrown if the Parser encounters an IO Error while trying to access/parse the Stream.

| Edit this page View Source

Load(IGraph, TextReader)

Method for Loading a Graph from some Concrete RDF Syntax via some arbitrary Input.

Declaration
public void Load(IGraph g, TextReader input)
Parameters
Type Name Description
IGraph g

Graph to load RDF into.

TextReader input

The reader to read input from.

Remarks

When loading from a quad format, the graph will receive a merge of the triples defined in all graphs in the source data.

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.

IOException

Thrown if the Parser encounters an IO Error while trying to access/parse the Stream.

| Edit this page View Source

Load(IGraph, string)

Method for Loading a Graph from some Concrete RDF Syntax from a given File.

Declaration
public void Load(IGraph g, string filename)
Parameters
Type Name Description
IGraph g

Graph to load RDF into.

string filename

The Filename of the File to read from.

Remarks

When loading from a quad format, the graph will receive a merge of the triples defined in all graphs in the source data.

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.

IOException

Thrown if the Parser encounters an IO Error while trying to access/parse the File.

| Edit this page View Source

Load(IRdfHandler, StreamReader)

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)
Parameters
Type Name Description
IRdfHandler handler

RDF Handler to use.

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.

IOException

Thrown if the Parser encounters an IO Error while trying to access/parse the Stream.

| Edit this page View Source

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.

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.

IOException

Thrown if the Parser encounters an IO Error while trying to access/parse the Stream.

| Edit this page View Source

Load(IRdfHandler, TextReader)

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)
Parameters
Type Name Description
IRdfHandler handler

RDF Handler to use.

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.

IOException

Thrown if the Parser encounters an IO Error while trying to access/parse the Stream.

| Edit this page View Source

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.

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.

IOException

Thrown if the Parser encounters an IO Error while trying to access/parse the Stream.

| Edit this page View Source

Load(IRdfHandler, string)

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)
Parameters
Type Name Description
IRdfHandler handler

RDF Handler to use.

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.

IOException

Thrown if the Parser encounters an IO Error while trying to access/parse the Stream.

| Edit this page View Source

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.

IOException

Thrown if the Parser encounters an IO Error while trying to access/parse the Stream.

Events

| Edit this page 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

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • StoreReaderAdapter(IStoreReader)
  • Methods
    • Load(IGraph, StreamReader)
    • Load(IGraph, TextReader)
    • Load(IGraph, string)
    • Load(IRdfHandler, StreamReader)
    • Load(IRdfHandler, StreamReader, IUriFactory)
    • Load(IRdfHandler, TextReader)
    • Load(IRdfHandler, TextReader, IUriFactory)
    • Load(IRdfHandler, string)
    • Load(IRdfHandler, string, IUriFactory)
  • Events
    • Warning
  • Implements
  • Extension Methods
Back to top Generated by DocFX