Class Notation3ParserContext
Parser Context for Notation 3 Parsers.
Inherited Members
Namespace: VDS.RDF.Parsing.Contexts
Assembly: dotNetRdf.dll
Syntax
public class Notation3ParserContext : TokenisingParserContext, IParserContext, ITokenisingParserContext
Constructors
| Edit this page View SourceNotation3ParserContext(IGraph, ITokeniser)
Creates a new Notation 3 Parser Context with default settings.
Declaration
public Notation3ParserContext(IGraph g, ITokeniser tokeniser)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph to parse into. |
ITokeniser | tokeniser | Tokeniser to use. |
Notation3ParserContext(IGraph, ITokeniser, bool, bool)
Creates a new Notation 3 Parser Context with custom settings.
Declaration
public Notation3ParserContext(IGraph g, ITokeniser tokeniser, bool traceParsing, bool traceTokeniser)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph to parse into. |
ITokeniser | tokeniser | Tokeniser to use. |
bool | traceParsing | Whether to trace parsing. |
bool | traceTokeniser | Whether to trace tokenisation. |
Notation3ParserContext(IGraph, ITokeniser, TokenQueueMode)
Creates a new Notation 3 Parser Context with custom settings.
Declaration
public Notation3ParserContext(IGraph g, ITokeniser tokeniser, TokenQueueMode queueMode)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph to parse into. |
ITokeniser | tokeniser | Tokeniser to use. |
TokenQueueMode | queueMode | Tokeniser Queue Mode. |
Notation3ParserContext(IGraph, ITokeniser, TokenQueueMode, bool, bool)
Creates a new Notation 3 Parser Context with custom settings.
Declaration
public Notation3ParserContext(IGraph g, ITokeniser tokeniser, TokenQueueMode queueMode, bool traceParsing, bool traceTokeniser)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph to parse into. |
ITokeniser | tokeniser | Tokeniser to use. |
TokenQueueMode | queueMode | Tokeniser Queue Mode. |
bool | traceParsing | Whether to trace parsing. |
bool | traceTokeniser | Whether to trace tokenisation. |
Notation3ParserContext(IRdfHandler, ITokeniser)
Creates a new Notation 3 Parser Context with default settings.
Declaration
public Notation3ParserContext(IRdfHandler handler, ITokeniser tokeniser)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | RDF Handler to use. |
ITokeniser | tokeniser | Tokeniser to use. |
Notation3ParserContext(IRdfHandler, ITokeniser, bool, bool)
Creates a new Notation 3 Parser Context with custom settings.
Declaration
public Notation3ParserContext(IRdfHandler handler, ITokeniser tokeniser, bool traceParsing, bool traceTokeniser)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | RDF Handler to use. |
ITokeniser | tokeniser | Tokeniser to use. |
bool | traceParsing | Whether to trace parsing. |
bool | traceTokeniser | Whether to trace tokenisation. |
Notation3ParserContext(IRdfHandler, ITokeniser, TokenQueueMode)
Creates a new Notation 3 Parser Context with custom settings.
Declaration
public Notation3ParserContext(IRdfHandler handler, ITokeniser tokeniser, TokenQueueMode queueMode)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | RDF Handler to use. |
ITokeniser | tokeniser | Tokeniser to use. |
TokenQueueMode | queueMode | Tokeniser Queue Mode. |
Notation3ParserContext(IRdfHandler, ITokeniser, TokenQueueMode, bool, bool, IUriFactory)
Creates a new Notation 3 Parser Context with custom settings.
Declaration
public Notation3ParserContext(IRdfHandler handler, ITokeniser tokeniser, TokenQueueMode queueMode, bool traceParsing, bool traceTokeniser, IUriFactory uriFactory = null)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | RDF Handler to use. |
ITokeniser | tokeniser | Tokeniser to use. |
TokenQueueMode | queueMode | Tokeniser Queue Mode. |
bool | traceParsing | Whether to trace parsing. |
bool | traceTokeniser | Whether to trace tokenisation. |
IUriFactory | uriFactory | The URI Factory to use. |
Properties
| Edit this page View SourceGraphLiteralMode
Gets whether the Context is currently for a Graph Literal.
Declaration
public bool GraphLiteralMode { get; }
Property Value
Type | Description |
---|---|
bool |
Keywords
Gets the list of in-use Keywords.
Declaration
public List<string> Keywords { get; }
Property Value
Type | Description |
---|---|
List<string> |
KeywordsMode
Gets/Sets whether Keywords Mode is in use.
Declaration
public bool KeywordsMode { get; set; }
Property Value
Type | Description |
---|---|
bool |
SubGraph
Gets the current sub-graph (if any).
Declaration
public IGraph SubGraph { get; }
Property Value
Type | Description |
---|---|
IGraph |
VariableContext
Gets the Variable Context for Triples.
Declaration
public VariableContext VariableContext { get; set; }
Property Value
Type | Description |
---|---|
VariableContext |
Methods
| Edit this page View SourcePopGraph()
Pops a Graph from the Graph stack to become the in-scope Graph.
Declaration
public void PopGraph()
Remarks
Used for Graph Literal parsing.
PushGraph()
Pushes the current in-scope Graph onto the Graph stack and creates a new empty Graph to be the in-scope Graph.
Declaration
public void PushGraph()
Remarks
Used for Graph Literal parsing - Base Uri and Namespace Maps of the outermost Graph is propogated to the innermost Graph.