Show / Hide Table of Contents

Class Notation3ParserContext

Parser Context for Notation 3 Parsers.

Inheritance
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

| Edit this page 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.

| Edit this page 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.

bool traceParsing

Whether to trace parsing.

bool traceTokeniser

Whether to trace tokenisation.

| Edit this page 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.

| Edit this page 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.

bool traceParsing

Whether to trace parsing.

bool traceTokeniser

Whether to trace tokenisation.

| Edit this page 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.

| Edit this page 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.

bool traceParsing

Whether to trace parsing.

bool traceTokeniser

Whether to trace tokenisation.

| Edit this page 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.

| Edit this page 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.

bool traceParsing

Whether to trace parsing.

bool traceTokeniser

Whether to trace tokenisation.

IUriFactory uriFactory

The URI Factory to use.

Properties

| Edit this page View Source

GraphLiteralMode

Gets whether the Context is currently for a Graph Literal.

Declaration
public bool GraphLiteralMode { get; }
Property Value
Type Description
bool
| Edit this page View Source

Keywords

Gets the list of in-use Keywords.

Declaration
public List<string> Keywords { get; }
Property Value
Type Description
List<string>
| Edit this page View Source

KeywordsMode

Gets/Sets whether Keywords Mode is in use.

Declaration
public bool KeywordsMode { get; set; }
Property Value
Type Description
bool
| Edit this page View Source

SubGraph

Gets the current sub-graph (if any).

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

VariableContext

Gets the Variable Context for Triples.

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

Methods

| Edit this page 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.

| Edit this page 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)
  • Edit this page
  • View Source
In this article
  • Constructors
    • Notation3ParserContext(IGraph, ITokeniser)
    • Notation3ParserContext(IGraph, ITokeniser, bool, bool)
    • Notation3ParserContext(IGraph, ITokeniser, TokenQueueMode)
    • Notation3ParserContext(IGraph, ITokeniser, TokenQueueMode, bool, bool)
    • Notation3ParserContext(IRdfHandler, ITokeniser)
    • Notation3ParserContext(IRdfHandler, ITokeniser, bool, bool)
    • Notation3ParserContext(IRdfHandler, ITokeniser, TokenQueueMode)
    • Notation3ParserContext(IRdfHandler, ITokeniser, TokenQueueMode, bool, bool, IUriFactory)
  • Properties
    • GraphLiteralMode
    • Keywords
    • KeywordsMode
    • SubGraph
    • VariableContext
  • Methods
    • PopGraph()
    • PushGraph()
  • Implements
  • Extension Methods
Back to top Generated by DocFX