eyereasoner 2.4.0 → 2.5.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 +14 -1
- package/dist/eye.d.ts +1 -1
- package/dist/eye.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/transformers.d.ts +3 -3
- package/dist/transformers.js +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,6 +22,19 @@ async function main() {
|
|
|
22
22
|
main();
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
+
or if you just wish to get all inferred facts
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
import { basicQuery } from 'eyereasoner';
|
|
29
|
+
|
|
30
|
+
async function main() {
|
|
31
|
+
// The result of the query (as an array of quads)
|
|
32
|
+
const result = await basicQuery(dataQuads);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
main();
|
|
36
|
+
```
|
|
37
|
+
|
|
25
38
|
Here the inputs and outputs are both arrays of RDF/JS Quads; for instance
|
|
26
39
|
|
|
27
40
|
```ts
|
|
@@ -190,7 +203,7 @@ Github also serves these files with a `gzip` content encoding which compresses t
|
|
|
190
203
|
|
|
191
204
|
We also distribute bundles that can be dynamically imported on github pages; for example
|
|
192
205
|
```ts
|
|
193
|
-
const { eyereasoner } = await import('https://eyereasoner.github.io/eye-js/2/latest/
|
|
206
|
+
const { eyereasoner } = await import('https://eyereasoner.github.io/eye-js/2/latest/dynamic-import.js');
|
|
194
207
|
|
|
195
208
|
// Instantiate a new SWIPL module and log any results it produces to the console
|
|
196
209
|
const Module = await eyereasoner.SwiplEye({ print: (str: string) => { console.log(str) }, arguments: ['-q'] });
|