Show / Hide Table of Contents

Class Notation3Parser

Parser for Notation 3 syntax.

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

Constructors

| Edit this page View Source

Notation3Parser()

Creates a new Notation 3 Parser.

Declaration
public Notation3Parser()
| Edit this page View Source

Notation3Parser(TokenQueueMode)

Creates a new Notation 3 Parser which uses the given Token Queue Mode.

Declaration
public Notation3Parser(TokenQueueMode queueMode)
Parameters
Type Name Description
TokenQueueMode queueMode

Queue Mode for Tokenising.

Properties

| Edit this page View Source

TokenQueueMode

Gets/Sets the token queue mode used.

Declaration
public TokenQueueMode TokenQueueMode { get; set; }
Property Value
Type Description
TokenQueueMode
| Edit this page View Source

TraceParsing

Gets/Sets whether Parsing Trace is written to the Console.

Declaration
public bool TraceParsing { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

TraceTokeniser

Gets/Sets whether Tokeniser Trace is written to the Console.

Declaration
public bool TraceTokeniser { get; set; }
Property Value
Type Description
bool

Methods

| Edit this page View Source

Load(IGraph, StreamReader)

Loads a Graph by reading Notation 3 syntax from the given input.

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

Graph to load into.

StreamReader input

Stream to read from.

| Edit this page View Source

Load(IGraph, TextReader)

Loads a Graph by reading Notation 3 syntax from the given input.

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

Graph to load into.

TextReader input

Input to read from.

| Edit this page View Source

Load(IGraph, string)

Loads a Graph by reading Notation 3 syntax from the given file.

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

Graph to load into.

string filename

File to read from.

| Edit this page View Source

Load(IRdfHandler, StreamReader)

Loads RDF using a RDF handler by reading Notation 3 syntax from the given input.

Declaration
public void Load(IRdfHandler handler, StreamReader input)
Parameters
Type Name Description
IRdfHandler handler

RDF Handler to use.

StreamReader input

Stream to read from.

| Edit this page View Source

Load(IRdfHandler, StreamReader, IUriFactory)

Loads RDF using a RDF handler by reading Notation 3 syntax from the given input.

Declaration
public void Load(IRdfHandler handler, StreamReader input, IUriFactory uriFactory)
Parameters
Type Name Description
IRdfHandler handler

RDF Handler to use.

StreamReader input

Stream to read from.

IUriFactory uriFactory

URI Factory to use.

| Edit this page View Source

Load(IRdfHandler, TextReader)

Loads RDF using a RDF handler by reading Notation 3 syntax from the given input.

Declaration
public void Load(IRdfHandler handler, TextReader input)
Parameters
Type Name Description
IRdfHandler handler

RDF Handler to use.

TextReader input

Input to read from.

| Edit this page View Source

Load(IRdfHandler, TextReader, IUriFactory)

Loads RDF using a RDF handler by reading Notation 3 syntax from the given input.

Declaration
public void Load(IRdfHandler handler, TextReader input, IUriFactory uriFactory)
Parameters
Type Name Description
IRdfHandler handler

RDF Handler to use.

TextReader input

Input to read from.

IUriFactory uriFactory

URI Factory to use.

| Edit this page View Source

Load(IRdfHandler, string)

Loads RDF using a RDF handler by reading Notation 3 syntax from the given file.

Declaration
public void Load(IRdfHandler handler, string filename)
Parameters
Type Name Description
IRdfHandler handler

RDF Handler to use.

string filename

File to read from.

| 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.

| Edit this page 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
string
Overrides
object.ToString()

Events

| Edit this page View Source

Warning

Event which is raised when the parser detects issues with the input which are non-fatal

Declaration
public event RdfReaderWarning Warning
Event Type
Type Description
RdfReaderWarning

Implements

IRdfReader
ITraceableParser
ITraceableTokeniser
ITokenisingParser

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • Notation3Parser()
    • Notation3Parser(TokenQueueMode)
  • Properties
    • TokenQueueMode
    • TraceParsing
    • TraceTokeniser
  • 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)
    • ToString()
  • Events
    • Warning
  • Implements
  • Extension Methods
Back to top Generated by DocFX