Class TurtleParserContext
Parser Context for Turtle parsing.
Inherited Members
Namespace: VDS.RDF.Parsing.Contexts
Assembly: dotNetRdf.dll
Syntax
public class TurtleParserContext : TokenisingParserContext, IParserContext, ITokenisingParserContext
Constructors
| Improve this Doc View SourceTurtleParserContext(IGraph, ITokeniser, TurtleSyntax, bool, bool)
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, bool, bool)
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(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)
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(IRdfHandler, ITokeniser, TurtleSyntax, bool, bool)
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, bool, bool, IUriFactory)
Creates a new Turtle Parser Context with custom settings.
Declaration
public TurtleParserContext(IRdfHandler handler, ITokeniser tokeniser, TurtleSyntax syntax, TokenQueueMode queueMode, bool traceParsing, bool traceTokeniser, IUriFactory uriFactory)
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. |
IUriFactory | uriFactory | URI Factory to use. |
TurtleParserContext(IRdfHandler, ITokeniser, TurtleSyntax, TokenQueueMode, bool, bool)
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. |
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)
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. |
Properties
| Improve this Doc View SourceQNameUnescapeFunction
Function for unescaping QNames.
Declaration
public Func<string, string> QNameUnescapeFunction { get; }
Property Value
Type | Description |
---|---|
System.Func<T, TResult><string, string> |
Syntax
Gets the Turtle Syntax being used.
Declaration
public TurtleSyntax Syntax { get; }
Property Value
Type | Description |
---|---|
TurtleSyntax |