APIs @rdfjs-base

BaseFormats

interface BaseFormats {
  readonly attribute SinkMap parsers;
  readonly attribute SinkMap serializers;
};
1
2
3
4

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();
};
1
2
3
4

Factory

interface Factory {
  clone(Environment newEnvironment);
  init();
};
1
2
3
4

Fetch

FetchFactory

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

Formats

interface Formats extends BaseFormats {
  undefined import(BaseFormats)
};
1
2
3

FormatsFactory

interface FormatsFactory {
  readonly attribute Formats formats;
};
1
2
3

Namespace

NamedNode Namespace(String path);
1

NamespaceFactory

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

SinkMap

interface SinkMap extends Map {
};
1
2

TermMap

interface TermMap extends Map {
};
1
2

TermMapFactory

interface TermMapFactory {
  TermMap termMap();
};
1
2
3

TermSet

interface TermSet extends Set {
};
1
2

TermSetFactory

interface TermSetFactory {
  TermSet termSet();
};
1
2
3

Traverser

interface Traverser {
  undefined forEach ({ term, dataset }, callback);
  DatasetCore match ({ term, dataset });
  any reduce ({ term, dataset }, callback, initialValue);
};
1
2
3
4
5

TraverserFactory

interface TraverserFactory {
  Traverser traverser();
};
1
2
3