eyeling 1.11.21 → 1.11.22
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/HANDBOOK.md +405 -422
- package/LICENSE.md +3 -15
- package/README.md +3 -4
- package/SEMANTICS.md +10 -25
- package/examples/deep-taxonomy-10.n3 +0 -1
- package/examples/deep-taxonomy-100.n3 +0 -1
- package/examples/deep-taxonomy-1000.n3 +0 -1
- package/examples/deep-taxonomy-10000.n3 +0 -1
- package/examples/deep-taxonomy-100000.n3 +100015 -0
- package/examples/output/deep-taxonomy-100000.n3 +300004 -0
- package/eyeling.js +2 -2
- package/index.d.ts +2 -2
- package/lib/builtins.js +2 -2
- package/package.json +2 -1
- package/test/api.test.js +2 -2
- package/test/playground.test.js +1 -1
- package/tools/bundle.js +0 -0
- package/tools/n3gen.js +0 -0
package/eyeling.js
CHANGED
|
@@ -160,8 +160,8 @@ function normalizeLiteralForFastKey(lit) {
|
|
|
160
160
|
// Fast-key helpers (used for cheap dedup/indexing)
|
|
161
161
|
// ---------------------------------------------------------------------------
|
|
162
162
|
// Note: the engine also has a richer termFastKey for indexing facts. Builtins
|
|
163
|
-
//
|
|
164
|
-
//
|
|
163
|
+
// Use these local helpers for purely syntactic fast-paths (e.g., dedup in log:conjunction)
|
|
164
|
+
// and keep them robust even if the engine changes.
|
|
165
165
|
|
|
166
166
|
function __termFastKeyLocal(t) {
|
|
167
167
|
if (t instanceof Iri) return `I:${t.value}`;
|
package/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare module 'eyeling' {
|
|
2
|
-
|
|
1
|
+
declare module 'eyeling' {
|
|
2
|
+
export function reason(opts: any, input: string): string;
|
|
3
3
|
}
|
package/lib/builtins.js
CHANGED
|
@@ -148,8 +148,8 @@ function normalizeLiteralForFastKey(lit) {
|
|
|
148
148
|
// Fast-key helpers (used for cheap dedup/indexing)
|
|
149
149
|
// ---------------------------------------------------------------------------
|
|
150
150
|
// Note: the engine also has a richer termFastKey for indexing facts. Builtins
|
|
151
|
-
//
|
|
152
|
-
//
|
|
151
|
+
// Use these local helpers for purely syntactic fast-paths (e.g., dedup in log:conjunction)
|
|
152
|
+
// and keep them robust even if the engine changes.
|
|
153
153
|
|
|
154
154
|
function __termFastKeyLocal(t) {
|
|
155
155
|
if (t instanceof Iri) return `I:${t.value}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eyeling",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.22",
|
|
4
4
|
"description": "A minimal Notation3 (N3) reasoner in JavaScript.",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"keywords": [
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"node": ">=18"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
|
+
"prebuild": "prettier -w . && eslint . --fix",
|
|
39
40
|
"build": "node tools/bundle.js",
|
|
40
41
|
"test:packlist": "node test/packlist.test.js",
|
|
41
42
|
"test:api": "node test/api.test.js",
|
package/test/api.test.js
CHANGED
|
@@ -4,8 +4,8 @@ const assert = require('node:assert/strict');
|
|
|
4
4
|
const path = require('node:path');
|
|
5
5
|
const { spawnSync } = require('node:child_process');
|
|
6
6
|
const ROOT = path.resolve(__dirname, '..');
|
|
7
|
-
// Direct eyeling.js API (in-process) for testing reasonStream/onDerived.
|
|
8
|
-
// This is the
|
|
7
|
+
// Direct eyeling.js bundle API (in-process) for testing reasonStream/onDerived.
|
|
8
|
+
// This is the API surface used by demo.html (browser/worker).
|
|
9
9
|
const { reasonStream } = require('../eyeling.js');
|
|
10
10
|
|
|
11
11
|
// Run reason() in a subprocess with stderr captured, so expected parse errors
|
package/test/playground.test.js
CHANGED
|
@@ -438,7 +438,7 @@ async function main() {
|
|
|
438
438
|
{ ct: 'text/css', body: '/* stub */\n' },
|
|
439
439
|
],
|
|
440
440
|
|
|
441
|
-
// GitHub raw references used for "latest
|
|
441
|
+
// GitHub raw references used by demo.html for the "latest version" display.
|
|
442
442
|
[
|
|
443
443
|
'https://raw.githubusercontent.com/eyereasoner/eyeling/refs/heads/main/package.json',
|
|
444
444
|
{ ct: 'application/json', body: localPkg },
|
package/tools/bundle.js
CHANGED
|
File without changes
|
package/tools/n3gen.js
CHANGED
|
File without changes
|