Show / Hide Table of Contents

Class JsonLdParser

Parser for JSON-LD 1.0/1.1.

Inheritance
object
JsonLdParser
Implements
IStoreReader
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
Assembly: dotNetRdf.dll
Syntax
public class JsonLdParser : IStoreReader

Constructors

| Edit this page View Source

JsonLdParser()

Create an instance of the parser configured to parser JSON-LD 1.1 with no pre-defined context.

Declaration
public JsonLdParser()
| Edit this page View Source

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

| Edit this page View Source

ParserOptions

Get the current parser options.

Declaration
public JsonLdProcessorOptions ParserOptions { get; }
Property Value
Type Description
JsonLdProcessorOptions

Methods

| Edit this page View Source

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.

TextReader input

Input to load from.

| Edit this page View Source

Load(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.

TextReader input

File to load from.

IUriFactory uriFactory

URI factory to use.

| Edit this page View Source

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.

| Edit this page View Source

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.

| Edit this page View Source

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.

TextReader input

Input to load from.

| Edit this page View Source

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

| Edit this page View Source

Warning

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.

Implements

IStoreReader

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • JsonLdParser()
    • JsonLdParser(JsonLdProcessorOptions)
  • Properties
    • ParserOptions
  • Methods
    • Load(IRdfHandler, TextReader)
    • Load(IRdfHandler, TextReader, IUriFactory)
    • Load(IRdfHandler, string)
    • Load(IRdfHandler, string, IUriFactory)
    • Load(ITripleStore, TextReader)
    • Load(ITripleStore, string)
  • Events
    • Warning
  • Implements
  • Extension Methods
Back to top Generated by DocFX