eyeling 1.9.0 → 1.9.2
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 +17 -1
- package/eyeling.js +855 -853
- package/package.json +2 -2
- package/src/eyeling-buitins.ts +3348 -0
- package/src/eyeling-engine.ts +0 -3346
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ A [Notation3 (N3)](https://notation3.org/) reasoner in **JavaScript**.
|
|
|
4
4
|
|
|
5
5
|
`eyeling` is:
|
|
6
6
|
|
|
7
|
-
- a single self-contained file (`eyeling.js`, no external deps)
|
|
7
|
+
- a single self-contained distribution file (`eyeling.js`, no external deps) — built from the TypeScript sources in this repo
|
|
8
8
|
- a practical N3/Turtle superset (enough for lots of real rulesets)
|
|
9
9
|
- supports forward (`=>`) + backward (`<=`) chaining over Horn-style rules
|
|
10
10
|
- prints only newly derived forward facts, optionally preceded by compact proof comments
|
|
@@ -108,6 +108,22 @@ npm run test:packlist
|
|
|
108
108
|
- `test:package` does a “real consumer” smoke test: `npm pack` → install tarball into a temp project → run API + CLI + examples.
|
|
109
109
|
- `test:packlist` sanity-checks what will be published in the npm tarball (and the CLI shebang/bin wiring).
|
|
110
110
|
|
|
111
|
+
### Development (repo)
|
|
112
|
+
|
|
113
|
+
The published npm package ships prebuilt JavaScript. In this repository, Eyeling is authored in TypeScript (`src/`) and `npm run build` regenerates the top-level `eyeling.js` used by `demo.html` and the CLI.
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
npm ci
|
|
117
|
+
npm run build # writes ./eyeling.js
|
|
118
|
+
npm test # runs build first
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Tip: when a command expects JSON-only output (e.g. `npm pack --dry-run --json`), run:
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
npm run build -- --quiet
|
|
125
|
+
```
|
|
126
|
+
|
|
111
127
|
### Usage
|
|
112
128
|
|
|
113
129
|
```
|