Show / Hide Table of Contents

Class BaseParserContext

Base Class for Parser Contexts.

Inheritance
object
BaseParserContext
JsonParserContext
RdfAParserContext<THtmlDocument>
RdfXmlParserContext
TokenisingParserContext
Implements
IParserContext
Inherited Members
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 abstract class BaseParserContext : IParserContext

Constructors

| Edit this page View Source

BaseParserContext(IGraph)

Creates a new Base Parser Context.

Declaration
public BaseParserContext(IGraph g)
Parameters
Type Name Description
IGraph g

Graph to parse into.

| Edit this page View Source

BaseParserContext(IGraph, bool)

Creates a new Base Parser Context.

Declaration
public BaseParserContext(IGraph g, bool traceParsing)
Parameters
Type Name Description
IGraph g

Graph to parse into.

bool traceParsing

Whether to trace parsing.

| Edit this page View Source

BaseParserContext(IRdfHandler)

Creates a new Base Parser Context.

Declaration
public BaseParserContext(IRdfHandler handler)
Parameters
Type Name Description
IRdfHandler handler

RDF Handler.

| Edit this page View Source

BaseParserContext(IRdfHandler, bool)

Creates a new Base Parser Context.

Declaration
public BaseParserContext(IRdfHandler handler, bool traceParsing)
Parameters
Type Name Description
IRdfHandler handler

RDF Handler.

bool traceParsing

Whether to trace parsing.

| Edit this page View Source

BaseParserContext(IRdfHandler, bool, IUriFactory)

Creates a new Base Parser Context.

Declaration
public BaseParserContext(IRdfHandler handler, bool traceParsing, IUriFactory uriFactory)
Parameters
Type Name Description
IRdfHandler handler

RDF Handler.

bool traceParsing

Whether to trace parsing.

IUriFactory uriFactory

The URI factory to use.

Fields

| Edit this page View Source

_handler

RDF Handler used to handle the generated RDF.

Declaration
protected IRdfHandler _handler
Field Value
Type Description
IRdfHandler
| Edit this page View Source

_traceParsing

Is Parsing Traced?.

Declaration
protected bool _traceParsing
Field Value
Type Description
bool

Properties

| Edit this page View Source

BaseUri

Gets the Base URI for the parsing context.

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

Handler

Gets the Handler used to handle the generated RDF.

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

Namespaces

Gets the Namespace Map for the parsing context.

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

TraceParsing

Gets/Sets whether to trace parsing.

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

UriFactory

Gets the URI factory for the handler.

Declaration
public IUriFactory UriFactory { get; }
Property Value
Type Description
IUriFactory

Implements

IParserContext

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • BaseParserContext(IGraph)
    • BaseParserContext(IGraph, bool)
    • BaseParserContext(IRdfHandler)
    • BaseParserContext(IRdfHandler, bool)
    • BaseParserContext(IRdfHandler, bool, IUriFactory)
  • Fields
    • _handler
    • _traceParsing
  • Properties
    • BaseUri
    • Handler
    • Namespaces
    • TraceParsing
    • UriFactory
  • Implements
  • Extension Methods
Back to top Generated by DocFX