Class JsonParserContext
Parser Context for RDF/JSON Parsers.
Implements
Inherited Members
Namespace: VDS.RDF.Parsing.Contexts
Assembly: dotNetRdf.dll
Syntax
public class JsonParserContext : BaseParserContext, IParserContext
Constructors
| Edit this page 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. |
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. |
JsonTextReader | input | JSON Text Reader to read from. |
Properties
| Edit this page 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 |
---|---|
JsonTextReader |
Methods
| Edit this page 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 |