eyereasoner 1.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.
@@ -0,0 +1,10 @@
1
+ import { Quad } from '@rdfjs/types';
2
+ export * from './transformers';
3
+ export { default as SWIPL } from './swipl-bundled.temp';
4
+ /**
5
+ * Executes a basic query using the EYE Reasoner and default build of SWIPL
6
+ * @param data The data for the query as RDF/JS quads
7
+ * @param query The query as RDF/JS quads
8
+ * @returns The result of the query as RDF/JS quads
9
+ */
10
+ export declare function basicQuery(data: Quad[], query: Quad[]): Promise<Quad[]>;
package/dist/index.js ADDED
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ var __importDefault = (this && this.__importDefault) || function (mod) {
17
+ return (mod && mod.__esModule) ? mod : { "default": mod };
18
+ };
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.basicQuery = exports.SWIPL = void 0;
21
+ // @ts-ignore
22
+ const swipl_bundled_temp_1 = __importDefault(require("./swipl-bundled.temp"));
23
+ const transformers_1 = require("./transformers");
24
+ __exportStar(require("./transformers"), exports);
25
+ // @ts-ignore
26
+ var swipl_bundled_temp_2 = require("./swipl-bundled.temp");
27
+ Object.defineProperty(exports, "SWIPL", { enumerable: true, get: function () { return __importDefault(swipl_bundled_temp_2).default; } });
28
+ /**
29
+ * Executes a basic query using the EYE Reasoner and default build of SWIPL
30
+ * @param data The data for the query as RDF/JS quads
31
+ * @param query The query as RDF/JS quads
32
+ * @returns The result of the query as RDF/JS quads
33
+ */
34
+ function basicQuery(data, query) {
35
+ return (0, transformers_1.executeBasicEyeQueryQuads)(swipl_bundled_temp_1.default, data, query);
36
+ }
37
+ exports.basicQuery = basicQuery;
@@ -0,0 +1 @@
1
+ declare var SWIPL: (SWIPL: any) => any;