Show / Hide Table of Contents

Class JsonParserContext

Parser Context for RDF/JSON Parsers.

Inheritance
System.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

| Improve this Doc 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.

Newtonsoft.Json.JsonTextReader input

JSON Text Reader to read from.

| Improve this Doc 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.

Newtonsoft.Json.JsonTextReader input

JSON Text Reader to read from.

Properties

| Improve this Doc View Source

CurrentPosition

Gets the Current Position of the JSON Text Reader.

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

Input

Gets the JSON Text Reader which input is read from.

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

Methods

| Improve this Doc 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)
  • Improve this Doc
  • 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