Class Notation3Parser
Parser for Notation 3 syntax.
Inheritance
System.Object
Notation3Parser
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 Notation3Parser : IRdfReader, ITraceableParser, ITraceableTokeniser, ITokenisingParser
Remarks
Constructors
| Improve this Doc View SourceNotation3Parser()
Creates a new Notation 3 Parser.
Declaration
public Notation3Parser()
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
| Improve this Doc View SourceTokenQueueMode
Gets/Sets the token queue mode used.
Declaration
public TokenQueueMode TokenQueueMode { get; set; }
Property Value
Type | Description |
---|---|
TokenQueueMode |
TraceParsing
Gets/Sets whether Parsing Trace is written to the Console.
Declaration
public bool TraceParsing { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
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 SourceLoad(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. |
System.IO.StreamReader | input | Stream to read from. |
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. |
System.IO.TextReader | input | Input to read from. |
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. |
System.String | filename | File to read from. |
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. |
System.IO.StreamReader | input | Stream to read from. |
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. |
System.IO.TextReader | input | Input to read from. |
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. |
System.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 |
---|---|
System.String |
Overrides
System.Object.ToString()
Events
| Improve this Doc View SourceWarning
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 |