Show / Hide Table of Contents

Class JsonParserContext

Parser Context for RDF/JSON Parsers.

Inheritance
object
BaseParserContext
JsonParserContext
Implements
IParserContext
Inherited Members
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 JsonParserContext : BaseParserContext, IParserContext

Constructors

| Edit this page View Source

JsonParserContext(IGraph, JsonTextReader)

Creates a new JSON Parser Context.

Declaration
public JsonParserContext(IGraph g, JsonTextReader input)
Parameters
Type Name Description
IGraph g

Graph to parse into.

JsonTextReader input

JSON Text Reader to read from.

| Edit this page View Source

JsonParserContext(IRdfHandler, JsonTextReader)

Creates a new JSON Parser Context.

Declaration
public JsonParserContext(IRdfHandler handler, JsonTextReader input)
Parameters
Type Name Description
IRdfHandler handler

RDF Handler to use.

JsonTextReader input

JSON Text Reader to read from.

Properties

| Edit this page View Source

CurrentPosition

Gets the Current Position of the JSON Text Reader.

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

Input

Gets the JSON Text Reader which input is read from.

Declaration
public JsonTextReader Input { get; }
Property Value
Type Description
JsonTextReader

Methods

| Edit this page View Source

GetPositionRange(PositionInfo)

Gets the Position range from the given Start Position to the current Position.

Declaration
public PositionInfo GetPositionRange(PositionInfo startPosition)
Parameters
Type Name Description
PositionInfo startPosition

Start Position.

Returns
Type Description
PositionInfo

Implements

IParserContext

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • JsonParserContext(IGraph, JsonTextReader)
    • JsonParserContext(IRdfHandler, JsonTextReader)
  • Properties
    • CurrentPosition
    • Input
  • Methods
    • GetPositionRange(PositionInfo)
  • Implements
  • Extension Methods
Back to top Generated by DocFX