Show / Hide Table of Contents

Class JsonLdWriter

Class for serializing a Triple Store in JSON-LD syntax.

Inheritance
object
BaseStoreWriter
JsonLdWriter
Implements
IStoreWriter
Inherited Members
BaseStoreWriter.Save(ITripleStore, string)
BaseStoreWriter.Save(ITripleStore, string, Encoding)
BaseStoreWriter.Save(ITripleStore, TextWriter)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Writing
Assembly: dotNetRdf.dll
Syntax
public class JsonLdWriter : BaseStoreWriter, IStoreWriter

Constructors

| Edit this page View Source

JsonLdWriter()

Create a new serializer with default serialization options.

Declaration
public JsonLdWriter()
| Edit this page View Source

JsonLdWriter(JsonLdWriterOptions)

Create a new serializer with the specified serialization options.

Declaration
public JsonLdWriter(JsonLdWriterOptions options)
Parameters
Type Name Description
JsonLdWriterOptions options

Methods

| Edit this page View Source

Save(ITripleStore, TextWriter, bool)

Method for saving data to a Triple Store.

Declaration
public override void Save(ITripleStore store, TextWriter output, bool leaveOpen)
Parameters
Type Name Description
ITripleStore store

Triple Store.

TextWriter output

Write to save to.

bool leaveOpen

Boolean flag indicating if the output writer should be left open by the writer when it completes.

Overrides
BaseStoreWriter.Save(ITripleStore, TextWriter, bool)
| Edit this page View Source

SerializeStore(ITripleStore)

Serialize a Triple Store to an expanded JSON-LD document.

Declaration
public JArray SerializeStore(ITripleStore store)
Parameters
Type Name Description
ITripleStore store
Returns
Type Description
JArray

Events

| Edit this page View Source

Warning

Event which writers can raise to indicate possible ambiguities or issues in the syntax they are producing

Declaration
public override event StoreWriterWarning Warning
Event Type
Type Description
StoreWriterWarning
Overrides
BaseStoreWriter.Warning
Remarks

This class does not raise this event.

Implements

IStoreWriter

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • JsonLdWriter()
    • JsonLdWriter(JsonLdWriterOptions)
  • Methods
    • Save(ITripleStore, TextWriter, bool)
    • SerializeStore(ITripleStore)
  • Events
    • Warning
  • Implements
  • Extension Methods
Back to top Generated by DocFX