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
| Improve this Doc View SourceNotation3ParserContext(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. |
System.Boolean | traceParsing | Whether to trace parsing. |
System.Boolean | traceTokeniser | Whether to trace tokenisation. |
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. |
System.Boolean | traceParsing | Whether to trace parsing. |
System.Boolean | 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)
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(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. |
System.Boolean | traceParsing | Whether to trace parsing. |
System.Boolean | traceTokeniser | Whether to trace tokenisation. |
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. |
System.Boolean | traceParsing | Whether to trace parsing. |
System.Boolean | traceTokeniser | Whether to trace tokenisation. |
IUriFactory | uriFactory | The URI Factory to use. |
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)
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. |
Properties
| Improve this Doc View SourceGraphLiteralMode
Gets whether the Context is currently for a Graph Literal.
Declaration
public bool GraphLiteralMode { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Keywords
Gets the list of in-use Keywords.
Declaration
public List<string> Keywords { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><string> |
KeywordsMode
Gets/Sets whether Keywords Mode is in use.
Declaration
public bool KeywordsMode { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
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
| Improve this Doc 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.