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
| Edit this page 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, 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. |
bool | traceParsing | Whether to trace parsing. |
bool | 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, 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. |
bool | traceParsing | Whether to trace parsing. |
bool | 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, 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. |
bool | traceParsing | Whether to trace parsing. |
bool | 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, 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. |
bool | traceParsing | Whether to trace parsing. |
bool | 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. |
bool | traceParsing | Whether to trace parsing. |
bool | traceTokeniser | Whether to trace tokenisation. |
IUriFactory | uriFactory | URI Factory to use. |
Properties
| Edit this page View SourceQNameUnescapeFunction
Function for unescaping QNames.
Declaration
public Func<string, string> QNameUnescapeFunction { get; }
Property Value
Type | Description |
---|---|
Func<string, string> |
Syntax
Gets the Turtle Syntax being used.
Declaration
public TurtleSyntax Syntax { get; }
Property Value
Type | Description |
---|---|
TurtleSyntax |