Class TurtleParserContext
Parser Context for Turtle parsing.
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)
System.Object.ToString()
Namespace: VDS.RDF.Parsing.Contexts
Assembly: dotNetRDF.dll
Syntax
public class TurtleParserContext : TokenisingParserContext, IParserContext, ITokenisingParserContext
Constructors
| Improve this Doc View SourceTurtleParserContext(IGraph, ITokeniser, TurtleSyntax)
Creates a new Turtle Parser Context with default settings.
Declaration
public TurtleParserContext(IGraph g, ITokeniser tokeniser, TurtleSyntax syntax)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph to parse into. |
ITokeniser | tokeniser | Tokeniser to use. |
TurtleSyntax | syntax | Turtle Syntax. |
TurtleParserContext(IGraph, ITokeniser, TurtleSyntax, Boolean, Boolean)
Creates a new Turtle Parser Context with custom settings.
Declaration
public TurtleParserContext(IGraph g, ITokeniser tokeniser, TurtleSyntax syntax, bool traceParsing, bool traceTokeniser)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph to parse into. |
ITokeniser | tokeniser | Tokeniser to use. |
TurtleSyntax | syntax | Turtle Syntax. |
System.Boolean | traceParsing | Whether to trace parsing. |
System.Boolean | traceTokeniser | Whether to trace tokenisation. |
TurtleParserContext(IGraph, ITokeniser, TurtleSyntax, TokenQueueMode)
Creates a new Turtle Parser Context with custom settings.
Declaration
public TurtleParserContext(IGraph g, ITokeniser tokeniser, TurtleSyntax syntax, TokenQueueMode queueMode)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph to parse into. |
ITokeniser | tokeniser | Tokeniser to use. |
TurtleSyntax | syntax | Turtle Syntax. |
TokenQueueMode | queueMode | Tokeniser Queue Mode. |
TurtleParserContext(IGraph, ITokeniser, TurtleSyntax, TokenQueueMode, Boolean, Boolean)
Creates a new Turtle Parser Context with custom settings.
Declaration
public TurtleParserContext(IGraph g, ITokeniser tokeniser, TurtleSyntax syntax, TokenQueueMode queueMode, bool traceParsing, bool traceTokeniser)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph to parse into. |
ITokeniser | tokeniser | Tokeniser to use. |
TurtleSyntax | syntax | Turtle Syntax. |
TokenQueueMode | queueMode | Tokeniser Queue Mode. |
System.Boolean | traceParsing | Whether to trace parsing. |
System.Boolean | traceTokeniser | Whether to trace tokenisation. |
TurtleParserContext(IRdfHandler, ITokeniser, TurtleSyntax)
Creates a new Turtle Parser Context with default settings.
Declaration
public TurtleParserContext(IRdfHandler handler, ITokeniser tokeniser, TurtleSyntax syntax)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | RDF Handler. |
ITokeniser | tokeniser | Tokeniser to use. |
TurtleSyntax | syntax | Turtle Syntax. |
TurtleParserContext(IRdfHandler, ITokeniser, TurtleSyntax, Boolean, Boolean)
Creates a new Turtle Parser Context with custom settings.
Declaration
public TurtleParserContext(IRdfHandler handler, ITokeniser tokeniser, TurtleSyntax syntax, bool traceParsing, bool traceTokeniser)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | RDF Handler. |
ITokeniser | tokeniser | Tokeniser to use. |
TurtleSyntax | syntax | Turtle Syntax. |
System.Boolean | traceParsing | Whether to trace parsing. |
System.Boolean | traceTokeniser | Whether to trace tokenisation. |
TurtleParserContext(IRdfHandler, ITokeniser, TurtleSyntax, TokenQueueMode)
Creates a new Turtle Parser Context with custom settings.
Declaration
public TurtleParserContext(IRdfHandler handler, ITokeniser tokeniser, TurtleSyntax syntax, TokenQueueMode queueMode)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | RDF Handler. |
ITokeniser | tokeniser | Tokeniser to use. |
TurtleSyntax | syntax | Turtle Syntax. |
TokenQueueMode | queueMode | Tokeniser Queue Mode. |
TurtleParserContext(IRdfHandler, ITokeniser, TurtleSyntax, TokenQueueMode, Boolean, Boolean)
Creates a new Turtle Parser Context with custom settings.
Declaration
public TurtleParserContext(IRdfHandler handler, ITokeniser tokeniser, TurtleSyntax syntax, TokenQueueMode queueMode, bool traceParsing, bool traceTokeniser)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | RDF Handler. |
ITokeniser | tokeniser | Tokeniser to use. |
TurtleSyntax | syntax | Turtle Syntax. |
TokenQueueMode | queueMode | Tokeniser Queue Mode. |
System.Boolean | traceParsing | Whether to trace parsing. |
System.Boolean | traceTokeniser | Whether to trace tokenisation. |
Properties
| Improve this Doc View SourceQNameUnescapeFunction
Function for unescaping QNames.
Declaration
public Func<string, string> QNameUnescapeFunction { get; }
Property Value
Type | Description |
---|---|
System.Func<System.String, System.String> |
Syntax
Gets the Turtle Syntax being used.
Declaration
public TurtleSyntax Syntax { get; }
Property Value
Type | Description |
---|---|
TurtleSyntax |