|
| 1 | +/* eslint-disable class-methods-use-this */ |
1 | 2 | /* eslint-disable no-redeclare */ |
2 | 3 | /* eslint-disable block-scoped-var */ |
3 | 4 | /* eslint-disable no-var */ |
|
11 | 12 | /* eslint-disable no-restricted-syntax */ |
12 | 13 | /// /@ts-check |
13 | 14 | // WOQLQuery |
14 | | -const WOQLQuery = require('./woqlCore'); |
| 15 | +/** |
| 16 | + * defines the internal functions of the woql query object - the |
| 17 | + * language API is defined in WOQLQuery |
| 18 | + * @module WOQLQuery |
| 19 | + * @constructor |
| 20 | + * @param {object} [query] json-ld query for initialisation |
| 21 | + * @returns {WOQLQuery} |
| 22 | + */ |
| 23 | + |
| 24 | +const WOQLCore = require('./woqlCore'); |
15 | 25 | const { Var, Vars, Doc } = require('./woqlDoc'); |
16 | 26 |
|
17 | 27 | // I HAVE TO REVIEW THE Inheritance and the prototype chain |
18 | | -/* class WOQLQuery extends WOQLCore { |
19 | | - constructor(query) { |
20 | | - super(query) |
21 | | - } |
22 | | -} */ |
| 28 | +class WOQLQuery extends WOQLCore { |
| 29 | + /** |
| 30 | + * defines the internal functions of the woql query object - the |
| 31 | + * language API is defined in WOQLQuery |
| 32 | + * @module WOQLQuery |
| 33 | + * @constructor |
| 34 | + * @param {object} [query] json-ld query for initialisation |
| 35 | + * @returns {WOQLQuery} |
| 36 | + */ |
| 37 | + |
| 38 | + update_triple(subject, predicate, new_object, old_object) {} |
| 39 | + |
| 40 | + star(Graph, Subj, Pred, Obj) {} |
| 41 | + |
| 42 | + update_quad(subject, predicate, new_object, graph) {} |
| 43 | + |
| 44 | + insert(id, type, refGraph) {} |
| 45 | + |
| 46 | + graph(g) {} |
| 47 | + |
| 48 | + node(node, type) {} |
| 49 | + |
| 50 | + nuke(g) {} |
| 51 | + |
| 52 | + // eslint-disable-next-line no-useless-constructor |
| 53 | + constructor(query) { |
| 54 | + super(query); |
| 55 | + } |
| 56 | +} |
23 | 57 |
|
24 | 58 | WOQLQuery.prototype.read_document = function (IRI, OutputVar) { |
25 | 59 | if (this.cursor['@type']) this.wrapCursorWithAnd(); |
|
0 commit comments