eyemind 0.5.8 → 0.5.11
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 +16 -12
- package/SPEC.md +1 -1
- package/package.json +1 -1
- package/src/version.js +1 -1
package/README.md
CHANGED
|
@@ -192,7 +192,7 @@ eyemind --to trig rules.js data.trig # the conclusions as TriG
|
|
|
192
192
|
| Triple term | `triple(S, P, O)`, which may nest |
|
|
193
193
|
| Default graph, named graph | `'default_graph'`, `iri(Name)` |
|
|
194
194
|
|
|
195
|
-
A reified triple `<< s p o >>` and an annotation `{| ... |}` become their reifier and its `rdf:reifies` triple, as RDF 1.2 defines. A Skolem term is written as a blank node, the same one for the same rule firing. The RDF examples load Turtle or TriG files from `examples/data/` alongside companion rules in `examples/`. They show triple terms, annotations, directional strings, typed numbers and named graphs. The W3C RDF test suites run in `npm test` from
|
|
195
|
+
A reified triple `<< s p o >>` and an annotation `{| ... |}` become their reifier and its `rdf:reifies` triple, as RDF 1.2 defines. A Skolem term is written as a blank node, the same one for the same rule firing. The RDF examples load Turtle or TriG files from `examples/data/` alongside companion rules in `examples/`. They show triple terms, annotations, directional strings, typed numbers and named graphs. The W3C RDF test suites run in `npm test` from `.cache/w3c/rdf-tests`: all 1065 tests of N-Triples, N-Quads, Turtle and TriG, in RDF 1.1 and 1.2, pass.
|
|
196
196
|
|
|
197
197
|
### Notation3
|
|
198
198
|
|
|
@@ -309,7 +309,7 @@ eyemind --all rules.srl facts.ttl # the base graph too
|
|
|
309
309
|
eyemind -c rules.srl facts.ttl # a proof of it, checked
|
|
310
310
|
```
|
|
311
311
|
|
|
312
|
-
Triples are `rdf(Subject, Predicate, Object)`, with `base/3` marking the base graph and `inf/3` the inference graph. A rule becomes `implies`, `NOT` becomes `not` of a helper, `GROUP` becomes `findall`, a blank node in a rule head becomes the Skolem term of its firing, and a SPARQL error is a goal that fails, so `FILTER` rejects the solution and `SET` drops it. The W3C SPARQL 1.2 RL test suite runs in `npm test` from
|
|
312
|
+
Triples are `rdf(Subject, Predicate, Object)`, with `base/3` marking the base graph and `inf/3` the inference graph. A rule becomes `implies`, `NOT` becomes `not` of a helper, `GROUP` becomes `findall`, a blank node in a rule head becomes the Skolem term of its firing, and a SPARQL error is a goal that fails, so `FILTER` rejects the solution and `SET` drops it. The W3C SPARQL 1.2 RL test suite runs in `npm test` from `.cache/w3c/sparql-rl`: all 241 tests pass. `NOW`, `UUID` and `STRUUID` are not supported, as eyemind has no clock or randomness; decimals and doubles are computed as binary64 floats.
|
|
313
313
|
|
|
314
314
|
The [example catalog](https://eyereasoner.github.io/eyemind/examples/) includes
|
|
315
315
|
SRL programs for deployment dependencies, route distances, ancestry, inventory,
|
|
@@ -519,14 +519,16 @@ npm test -- -k skolem # only tests whose line co
|
|
|
519
519
|
EYEMIND_PROPERTY_SCALE=20 npm test -- -k properties # deeper generated tests
|
|
520
520
|
node tools/update-examples.js # regenerate example artifacts after an intended change
|
|
521
521
|
node tools/report.js # the table npm test ends with, into REPORT.md
|
|
522
|
-
node tools/notation3tests.js # the
|
|
522
|
+
node tools/notation3tests.js # the cached Notation3 suite
|
|
523
523
|
npm run sync # refresh all three upstream test suites
|
|
524
524
|
node conformance/run.js --command "my-eyemind" # run the conformance suite against another implementation
|
|
525
525
|
```
|
|
526
526
|
|
|
527
527
|
The full suite needs a few GB of memory; on a small machine run it under a cap, such as `systemd-run --user --scope -q -p MemoryMax=3G -p MemorySwapMax=0 -- npm test`. Generated tests forge saved proofs at random and require the checker to reject every forgery that claims more than the program entails. The playground tests need Chrome (`CHROME` names it). When adding an example, register it in [examples/manifest.json](https://github.com/eyereasoner/eyemind/blob/main/examples/manifest.json), write its deck in `examples/deck/`, and generate its artifacts.
|
|
528
528
|
|
|
529
|
-
|
|
529
|
+
A full `npm test` writes `REPORT.md` from the summary table it prints.
|
|
530
|
+
|
|
531
|
+
Every `npm test` invocation, including a filtered run, also runs both cached
|
|
530
532
|
W3C format suites and rewrites [reports/w3c-rdf-earl.ttl](reports/w3c-rdf-earl.ttl)
|
|
531
533
|
and [reports/w3c-sparql-rl-earl.ttl](reports/w3c-sparql-rl-earl.ttl).
|
|
532
534
|
These [EARL](https://www.w3.org/TR/EARL10-Schema/) reports contain one
|
|
@@ -534,13 +536,15 @@ assertion per manifest case, its actual outcome and diagnostic, the eyemind
|
|
|
534
536
|
version and the run date. A W3C failure makes the command fail. A negative
|
|
535
537
|
syntax test passes when the parser rejects its input as required.
|
|
536
538
|
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
539
|
+
The [upstream suites](test/UPSTREAM.md) live in Git-ignored `.cache/`.
|
|
540
|
+
`npm test` reuses them without fetching. If the cache is missing or incomplete,
|
|
541
|
+
it downloads the suites first; that first run needs Git and network access.
|
|
542
|
+
`npm run sync` explicitly refreshes all three suites and the Notation3 document
|
|
543
|
+
fixtures. Downloads and manifest resource checks finish before the cached
|
|
544
|
+
suites are replaced; a failed refresh retains the old set. Upstream licensing
|
|
545
|
+
and documentation stay with the cached files. The small tracked
|
|
546
|
+
[test/upstream.json](test/upstream.json) records their revisions and case counts.
|
|
547
|
+
Run `npm test` after a sync to verify the suites and refresh EARL.
|
|
544
548
|
|
|
545
549
|
Local Git checkouts can supply any of the sources:
|
|
546
550
|
|
|
@@ -549,7 +553,7 @@ npm run sync -- --notation3tests /path/to/notation3tests --w3c-rdf /path/to/rdf-
|
|
|
549
553
|
```
|
|
550
554
|
|
|
551
555
|
`node tools/sync-notation3tests.js [UPSTREAM_CHECKOUT]` still refreshes only
|
|
552
|
-
Notation3
|
|
556
|
+
Notation3 in `.cache/`. Once cached, tests use saved documents with no network fallback;
|
|
553
557
|
the scorer's `--live` option checks the current remote resources instead.
|
|
554
558
|
|
|
555
559
|
### Releases
|
package/SPEC.md
CHANGED
package/package.json
CHANGED
package/src/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// The release this checkout is; ./release keeps it in step with package.json.
|
|
2
|
-
export const VERSION = '0.5.
|
|
2
|
+
export const VERSION = '0.5.11';
|