Class JsonParserContext
Parser Context for RDF/JSON Parsers.
Implements
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 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 |