Show / Hide Table of Contents

Class JsonLdWriter

Class for serializing a Triple Store in JSON-LD syntax.
Inheritance
System.Object
JsonLdWriter
Implements
IStoreWriter
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.Writing
Assembly: dotNetRDF.dll
Syntax
public class JsonLdWriter : IStoreWriter

Constructors

| Improve this Doc View Source

JsonLdWriter()

Create a new serializer with default serialization options.
Declaration
public JsonLdWriter()
| Improve this Doc 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

| Improve this Doc View Source

Save(ITripleStore, TextWriter)

Method for saving data to a Triple Store.
Declaration
public void Save(ITripleStore store, TextWriter output)
Parameters
Type Name Description
ITripleStore store Triple Store.
System.IO.TextWriter output Write to save to.
| Improve this Doc View Source

Save(ITripleStore, TextWriter, Boolean)

Method for saving data to a Triple Store.
Declaration
public void Save(ITripleStore store, TextWriter output, bool leaveOpen)
Parameters
Type Name Description
ITripleStore store Triple Store.
System.IO.TextWriter output Write to save to.
System.Boolean leaveOpen Boolean flag indicating if the output writer should be left open by the writer when it completes.
| Improve this Doc View Source

Save(ITripleStore, String)

Method for saving data to a Triple Store.
Declaration
public void Save(ITripleStore store, string filename)
Parameters
Type Name Description
ITripleStore store Triple Store.
System.String filename File to save to.
| Improve this Doc 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
Newtonsoft.Json.Linq.JArray

Events

| Improve this Doc View Source

Warning

Event which writers can raise to indicate possible ambiguities or issues in the syntax they are producing
Declaration
public event StoreWriterWarning Warning
Event Type
Type Description
StoreWriterWarning

Implements

IStoreWriter

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • JsonLdWriter()
    • JsonLdWriter(JsonLdWriterOptions)
  • Methods
    • Save(ITripleStore, TextWriter)
    • Save(ITripleStore, TextWriter, Boolean)
    • Save(ITripleStore, String)
    • SerializeStore(ITripleStore)
  • Events
    • Warning
  • Implements
  • Extension Methods
Back to top Generated by DocFX