APIs @rdfjs-base

BaseFormats

interface BaseFormats {
  readonly attribute SinkMap parsers;
  readonly attribute SinkMap serializers;
};

DataModel

The @rdfjs/data-modelopen in new window package implements the RDF/JS: Data model specificationopen in new window. See the specification for more details.

DataModelFactory

Dataset

The @rdfjs/datasetopen in new window package implements the RDF/JS: Dataset specificationopen in new window. See the specification for more details.

DatasetFactory

Environment

[Constructor(iterable<Factory> factories)]
interface Environment {
  Environment clone();
};

Factory

interface Factory {
  clone(Environment newEnvironment);
  init();
};

Fetch

FetchFactory

interface FetchFactory {
  [NewObject] Promise<Response> fetch(RequestInfo input, optional RequestInit init = {});
};

Formats

interface Formats extends BaseFormats {
  undefined import(BaseFormats)
};

FormatsFactory

interface FormatsFactory {
  readonly attribute Formats formats;
};

Namespace

NamedNode Namespace(String path);

NamespaceFactory

interface FormatsFactory {
  Namespace namespace(String or NamedNode baseIRI);
};

SinkMap

interface SinkMap extends Map {
};

TermMap

interface TermMap extends Map {
};

TermMapFactory

interface TermMapFactory {
  TermMap termMap();
};

TermSet

interface TermSet extends Set {
};

TermSetFactory

interface TermSetFactory {
  TermSet termSet();
};

Traverser

interface Traverser {
  undefined forEach ({ term, dataset }, callback);
  DatasetCore match ({ term, dataset });
  any reduce ({ term, dataset }, callback, initialValue);
};

TraverserFactory

interface TraverserFactory {
  Traverser traverser();
};