Class JsonLdParser
Parser for JSON-LD 1.0/1.1.
Inheritance
Implements
Inherited Members
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, IUriFactory)
Loads an RDF dataset using and RDF handler.
Declaration
public void Load(IRdfHandler handler, TextReader input, IUriFactory uriFactory)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | RDF handler to use. |
System.IO.TextReader | input | File to load from. |
IUriFactory | uriFactory | URI factory to use. |
Load(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, IUriFactory)
Loads an RDF dataset using an RDF handler.
Declaration
public void Load(IRdfHandler handler, string filename, IUriFactory uriFactory)
Parameters
Type | Name | Description |
---|---|---|
IRdfHandler | handler | RDF handler to use. |
string | filename | File to load from. |
IUriFactory | uriFactory | URI factory to use. |
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. |
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. |
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 |
Remarks
This class does not raise this event.