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/README.md +12 -8
- package/dist/bin/index.d.ts +2 -0
- package/dist/bin/index.js +21 -0
- package/dist/eye.d.ts +2 -0
- package/dist/eye.js +3 -0
- package/dist/index.d.ts +5 -7
- package/dist/index.js +6 -8
- package/dist/swipl-bundled.temp.js +227 -264
- package/dist/transformers.d.ts +5 -38
- package/dist/transformers.js +17 -87
- package/package.json +8 -10
- package/dist/eye.pl.d.ts +0 -2
- package/dist/eye.pl.js +0 -5
- package/dist/eye.pvm.d.ts +0 -2
- package/dist/eye.pvm.js +0 -5
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
|
|
5
|
-
export { default as
|
|
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.
|
|
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
|
-
//
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|