eyereasoner 1.14.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,16 +1,14 @@
1
+ /// <reference types="emscripten" />
1
2
  import { Quad } from '@rdfjs/types';
3
+ import type { SWIPLModule } from 'swipl-wasm/dist/common';
2
4
  export * from './query';
3
5
  export * from './transformers';
4
- export { default as SWIPL } from './swipl-bundled.temp';
5
- export { default as EYE_PL } from './eye.pl';
6
- export { default as EYE_PVM } from './eye.pvm';
6
+ export declare const SWIPL: (options?: Partial<EmscriptenModule>) => Promise<SWIPLModule>;
7
+ export { default as EYE_PVM } from './eye';
7
8
  /**
8
9
  * Executes a basic query using the EYE Reasoner and default build of SWIPL
9
10
  * @param data The data for the query as RDF/JS quads
10
11
  * @param query The query as RDF/JS quads
11
12
  * @returns The result of the query as RDF/JS quads
12
13
  */
13
- export declare function basicQuery(data: Quad[], query: Quad[]): Promise<{
14
- result: Quad[];
15
- proof: Quad[];
16
- }>;
14
+ export declare function basicQuery(data: Quad[], query: Quad[]): Promise<Quad[]>;
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ /// <reference types="emscripten" />
2
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
4
  if (k2 === undefined) k2 = k;
4
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -17,19 +18,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
17
18
  return (mod && mod.__esModule) ? mod : { "default": mod };
18
19
  };
19
20
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.basicQuery = exports.EYE_PVM = exports.EYE_PL = exports.SWIPL = void 0;
21
+ exports.basicQuery = exports.EYE_PVM = exports.SWIPL = void 0;
21
22
  // @ts-ignore
22
23
  const swipl_bundled_temp_1 = __importDefault(require("./swipl-bundled.temp"));
23
24
  const transformers_1 = require("./transformers");
24
25
  __exportStar(require("./query"), exports);
25
26
  __exportStar(require("./transformers"), exports);
26
- // @ts-ignore
27
- var swipl_bundled_temp_2 = require("./swipl-bundled.temp");
28
- Object.defineProperty(exports, "SWIPL", { enumerable: true, get: function () { return __importDefault(swipl_bundled_temp_2).default; } });
29
- var eye_pl_1 = require("./eye.pl");
30
- Object.defineProperty(exports, "EYE_PL", { enumerable: true, get: function () { return __importDefault(eye_pl_1).default; } });
31
- var eye_pvm_1 = require("./eye.pvm");
32
- Object.defineProperty(exports, "EYE_PVM", { enumerable: true, get: function () { return __importDefault(eye_pvm_1).default; } });
27
+ // eslint-disable-next-line no-unused-vars
28
+ exports.SWIPL = swipl_bundled_temp_1.default;
29
+ var eye_1 = require("./eye");
30
+ Object.defineProperty(exports, "EYE_PVM", { enumerable: true, get: function () { return __importDefault(eye_1).default; } });
33
31
  /**
34
32
  * Executes a basic query using the EYE Reasoner and default build of SWIPL
35
33
  * @param data The data for the query as RDF/JS quads