Class JsonLdParser
Parser for JSON-LD 1.0/1.1.
Inheritance
System.Object
JsonLdParser
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
Assembly: dotNetRDF.dll
Syntax
public class JsonLdParser : IStoreReader
Constructors
| Improve this Doc View SourceJsonLdParser()
Create an instance of the parser configured to parser JSON-LD 1.1 with no pre-defined context.
Declaration
public JsonLdParser()
JsonLdParser(JsonLdProcessorOptions)
Create an instance of the parser configured with the provided parser options.
Declaration
public JsonLdParser(JsonLdProcessorOptions parserOptions)
Parameters
Type | Name | Description |
---|---|---|
JsonLdProcessorOptions | parserOptions |
Properties
| Improve this Doc View SourceParserOptions
Get the current parser options.
Declaration
public JsonLdProcessorOptions ParserOptions { get; }
Property Value
Type | Description |
---|---|
JsonLdProcessorOptions |
Methods
| Improve this Doc View SourceLoad(IRdfHandler, TextReader)
Loads a RDF dataset using a RDF Handler.
Declaration
public void Load(IRdfHandler handler, TextReader input)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | RDF Handler to use. |
System.IO.TextReader | input | Input to load from. |
Load(IRdfHandler, String)
Loads a RDF dataset using a RDF Handler.
Declaration
public void Load(IRdfHandler handler, string filename)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | RDF Handler to use. |
System.String | filename | File to load from. |
Load(ITripleStore, TextReader)
Loads a RDF dataset into a Triple Store.
Declaration
public void Load(ITripleStore store, TextReader input)
Parameters
Type | Name | Description |
---|---|---|
ITripleStore | store | Triple Store. |
System.IO.TextReader | input | Input to load from. |
Load(ITripleStore, String)
Read JSON-LD from the specified file and add the RDF quads found in the JSON-LD to the specified store.
Declaration
public void Load(ITripleStore store, string filename)
Parameters
Type | Name | Description |
---|---|---|
ITripleStore | store | The store to add the parsed RDF quads to. |
System.String | filename | The path to the JSON file to be parsed. |
Events
| Improve this Doc View SourceWarning
Event which Readers can raise when they notice syntax that is ambigious/deprecated etc which can still be parsed
Declaration
public event StoreReaderWarning Warning
Event Type
Type | Description |
---|---|
StoreReaderWarning |