Show / Hide Table of Contents

Class Notation3ParserContext

Parser Context for Notation 3 Parsers.

Inheritance
System.Object
BaseParserContext
TokenisingParserContext
Notation3ParserContext
Implements
IParserContext
ITokenisingParserContext
Inherited Members
TokenisingParserContext._queue
TokenisingParserContext._traceTokeniser
TokenisingParserContext._localTokens
TokenisingParserContext.Tokens
TokenisingParserContext.LocalTokens
TokenisingParserContext.TraceTokeniser
BaseParserContext._handler
BaseParserContext._traceParsing
BaseParserContext.Handler
BaseParserContext.UriFactory
BaseParserContext.TraceParsing
BaseParserContext.Namespaces
BaseParserContext.BaseUri
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Parsing.Contexts
Assembly: dotNetRdf.dll
Syntax
public class Notation3ParserContext : TokenisingParserContext, IParserContext, ITokenisingParserContext

Constructors

| Improve this Doc View Source

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.

System.Boolean traceParsing

Whether to trace parsing.

System.Boolean traceTokeniser

Whether to trace tokenisation.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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 Source

GraphLiteralMode

Gets whether the Context is currently for a Graph Literal.

Declaration
public bool GraphLiteralMode { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Keywords

Gets the list of in-use Keywords.

Declaration
public List<string> Keywords { get; }
Property Value
Type Description
System.Collections.Generic.List<T><string>
| Improve this Doc View Source

KeywordsMode

Gets/Sets whether Keywords Mode is in use.

Declaration
public bool KeywordsMode { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

SubGraph

Gets the current sub-graph (if any).

Declaration
public IGraph SubGraph { get; }
Property Value
Type Description
IGraph
| Improve this Doc View Source

VariableContext

Gets the Variable Context for Triples.

Declaration
public VariableContext VariableContext { get; set; }
Property Value
Type Description
VariableContext

Methods

| Improve this Doc View Source

PopGraph()

Pops a Graph from the Graph stack to become the in-scope Graph.

Declaration
public void PopGraph()
Remarks

Used for Graph Literal parsing.

| Improve this Doc View Source

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.

Implements

IParserContext
ITokenisingParserContext

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • Notation3ParserContext(IGraph, ITokeniser, bool, bool)
    • Notation3ParserContext(IGraph, ITokeniser, TokenQueueMode, bool, bool)
    • Notation3ParserContext(IGraph, ITokeniser, TokenQueueMode)
    • Notation3ParserContext(IGraph, ITokeniser)
    • Notation3ParserContext(IRdfHandler, ITokeniser, bool, bool)
    • Notation3ParserContext(IRdfHandler, ITokeniser, TokenQueueMode, bool, bool, IUriFactory)
    • Notation3ParserContext(IRdfHandler, ITokeniser, TokenQueueMode)
    • Notation3ParserContext(IRdfHandler, ITokeniser)
  • Properties
    • GraphLiteralMode
    • Keywords
    • KeywordsMode
    • SubGraph
    • VariableContext
  • Methods
    • PopGraph()
    • PushGraph()
  • Implements
  • Extension Methods
Back to top Generated by DocFX