UNPKG

@jahed/sparql-engine

Version:

SPARQL query engine for servers and web browsers.

21 lines 482 B
// SPDX-License-Identifier: MIT import Graph from "../../rdf/graph.js"; import { Consumable } from "./consumer.js"; /** * Clear all RDF triples in a RDF Graph */ export default class ClearConsumer extends Consumable { _graph; /** * Consuctor * @param graph - Input RDF Graph */ constructor(graph) { super(); this._graph = graph; } execute() { return this._graph.clear(); } } //# sourceMappingURL=clear-consumer.js.map