eyereasoner 2.10.1 → 2.11.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/eye.d.ts +1 -1
- package/dist/eye.js +1 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.js +6 -3
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -16,6 +16,19 @@ export { default as EYE_PVM } from './eye';
|
|
|
16
16
|
* - outputType: The type of output, either 'string' or 'quads' (default: type of input data)
|
|
17
17
|
* @returns The result of the query as RDF/JS quads
|
|
18
18
|
*/
|
|
19
|
+
export declare function n3reasoner(data: Quad[] | string, query: Quad[] | string | undefined, options: ({
|
|
20
|
+
outputType: 'string';
|
|
21
|
+
} & IQueryOptions)): Promise<string>;
|
|
22
|
+
export declare function n3reasoner(data: Quad[] | string, query: Quad[] | string | undefined, options: ({
|
|
23
|
+
outputType: 'quads';
|
|
24
|
+
} & IQueryOptions)): Promise<Quad[]>;
|
|
25
|
+
export declare function n3reasoner(data: Quad[], query: Quad[] | string | undefined, options?: ({
|
|
26
|
+
outputType?: undefined;
|
|
27
|
+
} & IQueryOptions)): Promise<Quad[]>;
|
|
28
|
+
export declare function n3reasoner(data: string, query: Quad[] | string | undefined, options?: ({
|
|
29
|
+
outputType?: undefined;
|
|
30
|
+
} & IQueryOptions)): Promise<string>;
|
|
31
|
+
export declare function n3reasoner(data: Quad[] | string, query?: Quad[] | string | undefined, options?: IQueryOptions): Promise<Quad[] | string>;
|
|
19
32
|
export declare function basicQuery(data: Quad[] | string, query: Quad[] | string | undefined, options: ({
|
|
20
33
|
outputType: 'string';
|
|
21
34
|
} & IQueryOptions)): Promise<string>;
|
|
@@ -29,4 +42,3 @@ export declare function basicQuery(data: string, query: Quad[] | string | undefi
|
|
|
29
42
|
outputType?: undefined;
|
|
30
43
|
} & IQueryOptions)): Promise<string>;
|
|
31
44
|
export declare function basicQuery(data: Quad[] | string, query?: Quad[] | string | undefined, options?: IQueryOptions): Promise<Quad[] | string>;
|
|
32
|
-
export { basicQuery as n3reasoner };
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
18
18
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.
|
|
21
|
+
exports.basicQuery = exports.n3reasoner = exports.EYE_PVM = exports.SWIPL = void 0;
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
const swipl_bundled_temp_1 = __importDefault(require("./swipl-bundled.temp"));
|
|
24
24
|
const transformers_1 = require("./transformers");
|
|
@@ -28,8 +28,11 @@ __exportStar(require("./transformers"), exports);
|
|
|
28
28
|
exports.SWIPL = swipl_bundled_temp_1.default;
|
|
29
29
|
var eye_1 = require("./eye");
|
|
30
30
|
Object.defineProperty(exports, "EYE_PVM", { enumerable: true, get: function () { return __importDefault(eye_1).default; } });
|
|
31
|
-
function
|
|
31
|
+
function n3reasoner(data, query, options) {
|
|
32
32
|
return (0, transformers_1.executeBasicEyeQuery)(swipl_bundled_temp_1.default, data, query, options);
|
|
33
33
|
}
|
|
34
|
+
exports.n3reasoner = n3reasoner;
|
|
35
|
+
function basicQuery(data, query, options = {}) {
|
|
36
|
+
return n3reasoner(data, query, { output: query ? undefined : 'deductive_closure', ...options });
|
|
37
|
+
}
|
|
34
38
|
exports.basicQuery = basicQuery;
|
|
35
|
-
exports.n3reasoner = basicQuery;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eyereasoner",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0",
|
|
4
4
|
"description": "Distributing the [EYE](https://github.com/josd/eye) reasoner for browser and node using WebAssembly.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.js",
|
|
@@ -123,8 +123,8 @@
|
|
|
123
123
|
},
|
|
124
124
|
"config": {
|
|
125
125
|
"eye": {
|
|
126
|
-
"name": "v2.
|
|
127
|
-
"url": "https://api.github.com/repos/eyereasoner/eye/releases/
|
|
126
|
+
"name": "v2.8.1",
|
|
127
|
+
"url": "https://api.github.com/repos/eyereasoner/eye/releases/91811694"
|
|
128
128
|
}
|
|
129
129
|
},
|
|
130
130
|
"dependencies": {
|