eyeling 1.13.5 → 1.13.6
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 +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,8 +4,7 @@ A compact [Notation3 (N3)](https://notation3.org/) reasoner in **JavaScript**.
|
|
|
4
4
|
|
|
5
5
|
- Single self-contained bundle (`eyeling.js`), no external runtime deps
|
|
6
6
|
- Forward (`=>`) + backward (`<=`) chaining over Horn-style rules
|
|
7
|
-
- CLI / npm `reason()` output is mode-dependent by default
|
|
8
|
-
- If the input contains one or more top-level `{ ... } log:query { ... }.` directives, the output becomes the **unique instantiated conclusion triples** of those queries (a forward-rule-like projection)
|
|
7
|
+
- **CLI / npm `reason()` output is mode-dependent by default**: **newly derived forward facts** in normal mode, or — when top-level `{ ... } log:query { ... }.` directives are present — the **unique instantiated conclusion triples** of those queries (a forward-rule-like projection), optionally with compact proof comments
|
|
9
8
|
- Works in Node.js and fully client-side (browser/worker)
|
|
10
9
|
|
|
11
10
|
## Links
|
|
@@ -91,10 +90,11 @@ const { closureN3 } = eyeling.reasonStream(input, {
|
|
|
91
90
|
onDerived: ({ triple }) => console.log(triple),
|
|
92
91
|
});
|
|
93
92
|
|
|
94
|
-
//
|
|
95
|
-
//
|
|
93
|
+
// `closureN3` is also mode-dependent:
|
|
94
|
+
// - normal forward mode: closure (input facts + derived facts) by default
|
|
95
|
+
// - `log:query` mode: the query-selected triples
|
|
96
|
+
// To exclude input facts from the normal-mode closure, pass:
|
|
96
97
|
// includeInputFactsInClosure: false
|
|
97
|
-
// With log:query directives present, closureN3 contains the query-selected triples.
|
|
98
98
|
// The return value also includes `queryMode`, `queryTriples`, and `queryDerived`.
|
|
99
99
|
```
|
|
100
100
|
|