Class JsonParserContext
Parser Context for RDF/JSON Parsers.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VDS.RDF.Parsing.Contexts
Assembly: dotNetRDF.dll
Syntax
public class JsonParserContext : BaseParserContext, IParserContext
Constructors
| Improve this Doc View SourceJsonParserContext(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. |
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 SourceCurrentPosition
Gets the Current Position of the JSON Text Reader.
Declaration
public PositionInfo CurrentPosition { get; }
Property Value
| Type | Description |
|---|---|
| PositionInfo |
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 SourceGetPositionRange(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 |