@inrupt/solid-client / formats

Module: formats

Functions

solidDatasetAsTurtle

solidDatasetAsTurtle(dataset, options?): Promise<string>

A function to serialise a Solid Dataset as Turtle

since

Parameters

Name

Type

Description

dataset

Readonly<{}>

The Dataset to serialize as Turtle

options?

Object

-

options.prefixes?

Record<string, string>

The Prefixes to use for Turtle serialisation (defaulting to a set of well known prefixes)

options.thing?

string

Restricts serialisation to the part of a dataset related to the thing

Returns

Promise<string>

RDF serialised as Turtle

Defined in

src/formats/solidDatasetAsTurtle.ts:36