APIs RDF-Ext

The rdf-ext package exports an Environment that supports the following factories:

The following factories have experimental status:

Data Model

TermExt

[Exposed=(Window,Worker)]
interface TermExt : Term {
  DOMString toCanonical();
};

NamedNodeExt

[Exposed=(Window,Worker)]
interface NamedNodeExt : TermExt {
  attribute DOMString termType;
  attribute DOMString value;
  boolean equals(optional Term? other);
  DOMString toCanonical();
};

BlankNodeExt

[Exposed=(Window,Worker)]
interface BlankNodeExt : TermExt {
  attribute DOMString termType;
  attribute DOMString value;
  boolean equals(optional Term? other);
  DOMString toCanonical();
};

LiteralExt

[Exposed=(Window,Worker)]
interface LiteralExt : TermExt {
  attribute DOMString termType;
  attribute DOMString value;
  attribute DOMString language;
  attribute NamedNode datatype;
  boolean equals(optional Term? other);
  DOMString toCanonical();
};

VariableExt

[Exposed=(Window,Worker)]
interface VariableExt : TermExt {
  attribute DOMString termType;
  attribute DOMString value;
  boolean equals(optional Term? other);
  DOMString toCanonical();
};

DefaultGraphExt

[Exposed=(Window,Worker)]
interface DefaultGraphExt : TermExt {
  attribute DOMString termType;
  attribute DOMString value;
  boolean equals(optional Term? other);
  DOMString toCanonical();
};

QuadExt

[Exposed=(Window,Worker)]
interface QuadExt : TermExt {
  attribute DOMString termType;
  attribute DOMString value;
  attribute Term subject;
  attribute Term predicate;
  attribute Term _object;
  attribute Term graph;
  boolean equals(optional Quad? other);
  DOMString toCanonical();
};

DataFactoryExt

[Exposed=(Window,Worker)]
interface DataFactoryExt {
  NamedNodeExt namedNode(DOMString value);
  BlankNodeExt blankNode(optional DOMString value);
  LiteralExt literal(DOMString value, optional (DOMString or NamedNode) languageOrDatatype);
  VariableExt variable(DOMString value);
  DefaultGraphExt defaultGraph();
  QuadExt quad(TermExt subject, TermExt predicate, TermExt _object, optional TermExt? graph);
  TermExt fromTerm(Term original);
  QuadExt fromQuad(Quad original);
};

Dataset

DatasetExt

interface DatasetExt : DatasetCore {
  DatasetExt addAll((Dataset or sequence<Quad>) quads);
  DatasetExt clone();
  DatasetExt deleteMatches(optional TermExt subject, optional TermExt predicate, optional TermExt _object, optional TermExt graph);
  DatasetExt difference(DatasetExt other);
  boolean equals(DatasetExt other);
  boolean every(QuadFilterIteratee iteratee);
  DatasetExt filter(QuadFilterIteratee iteratee);
  void forEach(QuadRunIteratee iteratee);
  Promise<DatasetExt> import(Stream stream);
  DatasetExt intersection(DatasetExt other);
  DatasetExt map(QuadMapIteratee iteratee);
  DatasetExt merge(DatasetExt other);
  boolean some(QuadFilterIteratee iteratee);
  String toCanonical();
  Stream toStream();
  String toString();
};

DatasetFactoryExt

interface DatasetFactoryExt : DataFactoryCore {
  DatasetExt dataset(optional (Dataset or sequence<Quad>) quads);
};

QuadExtFilterIteratee

interface QuadExtFilterIteratee {
  boolean test(QuadExt quad, DatasetExt dataset);
};

QuadExtMapIteratee

interface QuadExtMapIteratee {
  Quad map(QuadExt quad, DatasetExt dataset);
};

QuadExtRunIteratee

interface QuadExtRunIteratee {
  void run(QuadExt quad, DatasetExt dataset);
};

Fetch

Namespace

Namespace

NamedNodeExt NamespaceExt(String path);

NamespaceFactory

interface NamespaceFactory {
  NamespaceExt namespace(String or NamedNode baseIRI);
};

PrefixMap

Clownface

Status: unstable

Traverser

Status: unstable