Show / Hide Table of Contents

Class TurtleParser

Parser for Turtle syntax.
Inheritance
System.Object
TurtleParser
Implements
IRdfReader
ITraceableParser
ITraceableTokeniser
ITokenisingParser
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 TurtleParser : IRdfReader, ITraceableParser, ITraceableTokeniser, ITokenisingParser

Constructors

| Improve this Doc View Source

TurtleParser()

Creates a new Turtle Parser.
Declaration
public TurtleParser()
| Improve this Doc View Source

TurtleParser(TokenQueueMode)

Creates a new Turtle Parser which uses the given Token Queue Mode.
Declaration
public TurtleParser(TokenQueueMode queueMode)
Parameters
Type Name Description
TokenQueueMode queueMode Queue Mode for Turtle.
| Improve this Doc View Source

TurtleParser(TokenQueueMode, TurtleSyntax)

Creates a new Turtle Parser which uses the given Token Queue Mode.
Declaration
public TurtleParser(TokenQueueMode queueMode, TurtleSyntax syntax)
Parameters
Type Name Description
TokenQueueMode queueMode Queue Mode for Turtle.
TurtleSyntax syntax Turtle Syntax.
| Improve this Doc View Source

TurtleParser(TurtleSyntax)

Creates a new Turtle Parser.
Declaration
public TurtleParser(TurtleSyntax syntax)
Parameters
Type Name Description
TurtleSyntax syntax Turtle Syntax.

Properties

| Improve this Doc View Source

TokenQueueMode

Gets/Sets the token queue mode used.
Declaration
public TokenQueueMode TokenQueueMode { get; set; }
Property Value
Type Description
TokenQueueMode
| Improve this Doc View Source

TraceParsing

Gets/Sets whether Parsing Trace is written to the Console.
Declaration
public bool TraceParsing { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

TraceTokeniser

Gets/Sets whether Tokeniser Trace is written to the Console.
Declaration
public bool TraceTokeniser { get; set; }
Property Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

Load(IGraph, StreamReader)

Loads a Graph by reading Turtle syntax from the given input.
Declaration
public void Load(IGraph g, StreamReader input)
Parameters
Type Name Description
IGraph g Graph to load into.
System.IO.StreamReader input Stream to read from.
| Improve this Doc View Source

Load(IGraph, TextReader)

Loads a Graph by reading Turtle syntax from the given input.
Declaration
public void Load(IGraph g, TextReader input)
Parameters
Type Name Description
IGraph g Graph to load into.
System.IO.TextReader input Input to read from.
| Improve this Doc View Source

Load(IGraph, String)

Loads a Graph by reading Turtle syntax from the given file.
Declaration
public void Load(IGraph g, string filename)
Parameters
Type Name Description
IGraph g Graph to load into.
System.String filename File to read from.
| Improve this Doc View Source

Load(IRdfHandler, StreamReader)

Loads RDF by reading Turtle syntax from the given input using a RDF Handler.
Declaration
public void Load(IRdfHandler handler, StreamReader input)
Parameters
Type Name Description
IRdfHandler handler RDF Handle to use.
System.IO.StreamReader input Stream to read from.
| Improve this Doc View Source

Load(IRdfHandler, TextReader)

Loads RDF by reading Turtle syntax from the given input using a RDF Handler.
Declaration
public void Load(IRdfHandler handler, TextReader input)
Parameters
Type Name Description
IRdfHandler handler RDF Handle to use.
System.IO.TextReader input Input to read from.
| Improve this Doc View Source

Load(IRdfHandler, String)

Loads RDF by reading Turtle syntax from the given file using a RDF Handler.
Declaration
public void Load(IRdfHandler handler, string filename)
Parameters
Type Name Description
IRdfHandler handler RDF Handle to use.
System.String filename File to read from.
| Improve this Doc 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
System.String
Overrides
System.Object.ToString()

Events

| Improve this Doc 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.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • TurtleParser()
    • TurtleParser(TokenQueueMode)
    • TurtleParser(TokenQueueMode, TurtleSyntax)
    • TurtleParser(TurtleSyntax)
  • Properties
    • TokenQueueMode
    • TraceParsing
    • TraceTokeniser
  • Methods
    • Load(IGraph, StreamReader)
    • Load(IGraph, TextReader)
    • Load(IGraph, String)
    • Load(IRdfHandler, StreamReader)
    • Load(IRdfHandler, TextReader)
    • Load(IRdfHandler, String)
    • ToString()
  • Events
    • Warning
  • Implements
  • Extension Methods
Back to top Generated by DocFX