eyeling 1.24.5 → 1.24.7
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 +0 -99
- package/README.md +2 -2
- package/dist/browser/eyeling.browser.js +6 -0
- package/{see/examples/n3 → examples}/annotation.n3 +1 -1
- package/{see/examples/n3/backward_recursion.n3 → examples/backward-recursion.n3} +0 -2
- package/examples/collection.n3 +3 -0
- package/examples/context-association.n3 +59 -0
- package/{see/examples/n3/dijkstra_risk_path.n3 → examples/dijkstra-risk-path.n3} +3 -18
- package/{see/examples/n3/eco_route_insight.n3 → examples/eco-route-insight.n3} +2 -47
- package/{see/examples/n3/genetic_knapsack_selection.n3 → examples/genetic-knapsack-selection.n3} +2 -24
- package/{see/examples → examples}/input/annotation.trig +3 -3
- package/{see/examples/input/backward_recursion.trig → examples/input/backward-recursion.trig} +2 -2
- package/{see/examples/input/builtin_coverage.trig → examples/input/builtin-coverage.trig} +2 -2
- package/{see/examples → examples}/input/collection.trig +3 -3
- package/examples/input/context-association.trig +35 -0
- package/{see/examples/input/dijkstra_risk_path.trig → examples/input/dijkstra-risk-path.trig} +4 -4
- package/{see/examples/input/eco_route_insight.trig → examples/input/eco-route-insight.trig} +4 -4
- package/{see/examples/input/genetic_knapsack_selection.trig → examples/input/genetic-knapsack-selection.trig} +4 -4
- package/{see/examples/input/rc_discharge_envelope.trig → examples/input/rc-discharge-envelope.trig} +4 -4
- package/{see/examples/input/rdf_dataset.trig → examples/input/rdf-dataset.trig} +4 -4
- package/{see/examples/input/rdf_message_flow.trig → examples/input/rdf-message-flow.trig} +3 -3
- package/{see/examples/input/rdf_messages.trig → examples/input/rdf-messages.trig} +4 -4
- package/{see/examples/input/school_placement_audit.trig → examples/input/school-placement-audit.trig} +4 -4
- package/{see/examples/input/smoke_arithmetic.trig → examples/input/smoke-arithmetic.trig} +3 -3
- package/{see/examples/input/triple_terms.trig → examples/input/triple-terms.trig} +3 -3
- package/examples/output/annotation.n3 +0 -0
- package/examples/output/backward-recursion.n3 +4 -0
- package/examples/output/builtin-coverage.n3 +0 -0
- package/examples/output/collection.n3 +0 -0
- package/examples/output/context-association.n3 +9 -0
- package/examples/output/dijkstra-risk-path.n3 +3 -0
- package/examples/output/eco-route-insight.n3 +3 -0
- package/examples/output/genetic-knapsack-selection.n3 +3 -0
- package/examples/output/rc-discharge-envelope.n3 +9 -0
- package/examples/output/rc-discharge-envelope.txt +9 -0
- package/examples/output/rdf-dataset.n3 +5 -0
- package/examples/output/rdf-message-flow.n3 +7 -0
- package/examples/output/rdf-messages.n3 +7 -0
- package/examples/output/school-placement-audit.n3 +3 -0
- package/examples/output/smoke-arithmetic.n3 +5 -0
- package/examples/output/smoke-arithmetic.txt +5 -0
- package/examples/output/triple-terms.n3 +5 -0
- package/{see/examples/n3/rc_discharge_envelope.n3 → examples/rc-discharge-envelope.n3} +2 -15
- package/{see/examples/n3/rdf_dataset.n3 → examples/rdf-dataset.n3} +2 -11
- package/{see/examples/n3/rdf_message_flow.n3 → examples/rdf-message-flow.n3} +9 -75
- package/{see/examples/n3/rdf_messages.n3 → examples/rdf-messages.n3} +6 -43
- package/{see/examples/n3/school_placement_audit.n3 → examples/school-placement-audit.n3} +2 -14
- package/{see/examples/n3/smoke_arithmetic.n3 → examples/smoke-arithmetic.n3} +3 -5
- package/{see/examples/n3/triple_terms.n3 → examples/triple-terms.n3} +1 -4
- package/eyeling.js +6 -0
- package/lib/builtins.js +6 -0
- package/package.json +4 -7
- package/test/api.test.js +25 -8
- package/test/examples.test.js +22 -2
- package/test/package.test.js +16 -2
- package/see/README.md +0 -149
- package/see/examples/_see.js +0 -249
- package/see/examples/age.js +0 -1459
- package/see/examples/annotation.js +0 -1320
- package/see/examples/backward.js +0 -1405
- package/see/examples/backward_recursion.js +0 -1504
- package/see/examples/bayes_diagnosis.js +0 -2883
- package/see/examples/bayes_therapy.js +0 -4152
- package/see/examples/bmi.js +0 -3038
- package/see/examples/builtin_coverage.js +0 -2524
- package/see/examples/collection.js +0 -1320
- package/see/examples/complex.js +0 -3762
- package/see/examples/complex_matrix_stability.js +0 -2973
- package/see/examples/composition_of_injective_functions_is_injective.js +0 -2170
- package/see/examples/control_system.js +0 -1918
- package/see/examples/crypto_builtins_tests.js +0 -1489
- package/see/examples/delfour.js +0 -3174
- package/see/examples/digital_product_passport.js +0 -2856
- package/see/examples/dijkstra.js +0 -2070
- package/see/examples/dijkstra_risk_path.js +0 -1874
- package/see/examples/doc/age.md +0 -27
- package/see/examples/doc/annotation.md +0 -24
- package/see/examples/doc/backward.md +0 -26
- package/see/examples/doc/backward_recursion.md +0 -26
- package/see/examples/doc/bayes_diagnosis.md +0 -41
- package/see/examples/doc/bayes_therapy.md +0 -40
- package/see/examples/doc/bmi.md +0 -38
- package/see/examples/doc/builtin_coverage.md +0 -53
- package/see/examples/doc/collection.md +0 -24
- package/see/examples/doc/complex.md +0 -38
- package/see/examples/doc/complex_matrix_stability.md +0 -35
- package/see/examples/doc/composition_of_injective_functions_is_injective.md +0 -24
- package/see/examples/doc/control_system.md +0 -32
- package/see/examples/doc/crypto_builtins_tests.md +0 -27
- package/see/examples/doc/delfour.md +0 -37
- package/see/examples/doc/digital_product_passport.md +0 -36
- package/see/examples/doc/dijkstra.md +0 -28
- package/see/examples/doc/dijkstra_risk_path.md +0 -30
- package/see/examples/doc/dog.md +0 -28
- package/see/examples/doc/eco_route_insight.md +0 -33
- package/see/examples/doc/equals.md +0 -26
- package/see/examples/doc/equivalence_classes_overlap_implies_same_class.md +0 -24
- package/see/examples/doc/euler_identity.md +0 -39
- package/see/examples/doc/ev_roundtrip_planner.md +0 -32
- package/see/examples/doc/existential_rule.md +0 -24
- package/see/examples/doc/expression_eval.md +0 -26
- package/see/examples/doc/family_cousins.md +0 -24
- package/see/examples/doc/fastpow.md +0 -29
- package/see/examples/doc/fibonacci.md +0 -28
- package/see/examples/doc/french_cities.md +0 -28
- package/see/examples/doc/fundamental_theorem_arithmetic.md +0 -36
- package/see/examples/doc/genetic_knapsack_selection.md +0 -29
- package/see/examples/doc/goldbach_1000.md +0 -31
- package/see/examples/doc/good_cobbler.md +0 -27
- package/see/examples/doc/gps.md +0 -35
- package/see/examples/doc/gray_code_counter.md +0 -31
- package/see/examples/doc/greatest_lower_bound_uniqueness.md +0 -24
- package/see/examples/doc/group_inverse_uniqueness.md +0 -24
- package/see/examples/doc/hadamard_approx.md +0 -32
- package/see/examples/doc/hanoi.md +0 -26
- package/see/examples/doc/odrl_dpv_risk_ranked.md +0 -57
- package/see/examples/doc/path_discovery.md +0 -33
- package/see/examples/doc/rc_discharge_envelope.md +0 -33
- package/see/examples/doc/rdf_dataset.md +0 -26
- package/see/examples/doc/rdf_message_flow.md +0 -35
- package/see/examples/doc/rdf_messages.md +0 -37
- package/see/examples/doc/school_placement_audit.md +0 -31
- package/see/examples/doc/smoke_arithmetic.md +0 -31
- package/see/examples/doc/socrates.md +0 -24
- package/see/examples/doc/triple_terms.md +0 -26
- package/see/examples/doc/wind_turbine.md +0 -37
- package/see/examples/doc/witch.md +0 -28
- package/see/examples/dog.js +0 -1436
- package/see/examples/eco_route_insight.js +0 -2110
- package/see/examples/equals.js +0 -1363
- package/see/examples/equivalence_classes_overlap_implies_same_class.js +0 -1792
- package/see/examples/euler_identity.js +0 -2038
- package/see/examples/ev_roundtrip_planner.js +0 -2562
- package/see/examples/existential_rule.js +0 -1363
- package/see/examples/expression_eval.js +0 -1798
- package/see/examples/family_cousins.js +0 -1586
- package/see/examples/fastpow.js +0 -2207
- package/see/examples/fibonacci.js +0 -1594
- package/see/examples/french_cities.js +0 -1492
- package/see/examples/fundamental_theorem_arithmetic.js +0 -2106
- package/see/examples/genetic_knapsack_selection.js +0 -1743
- package/see/examples/goldbach_1000.js +0 -1798
- package/see/examples/good_cobbler.js +0 -1396
- package/see/examples/gps.js +0 -2813
- package/see/examples/gray_code_counter.js +0 -1641
- package/see/examples/greatest_lower_bound_uniqueness.js +0 -1918
- package/see/examples/group_inverse_uniqueness.js +0 -1897
- package/see/examples/hadamard_approx.js +0 -4417
- package/see/examples/hanoi.js +0 -1625
- package/see/examples/input/age.trig +0 -27
- package/see/examples/input/backward.trig +0 -25
- package/see/examples/input/bayes_diagnosis.trig +0 -111
- package/see/examples/input/bayes_therapy.trig +0 -130
- package/see/examples/input/bmi.trig +0 -28
- package/see/examples/input/complex.trig +0 -26
- package/see/examples/input/complex_matrix_stability.trig +0 -65
- package/see/examples/input/composition_of_injective_functions_is_injective.trig +0 -35
- package/see/examples/input/control_system.trig +0 -31
- package/see/examples/input/crypto_builtins_tests.trig +0 -25
- package/see/examples/input/delfour.trig +0 -90
- package/see/examples/input/digital_product_passport.trig +0 -116
- package/see/examples/input/dijkstra.trig +0 -34
- package/see/examples/input/dog.trig +0 -31
- package/see/examples/input/equals.trig +0 -25
- package/see/examples/input/equivalence_classes_overlap_implies_same_class.trig +0 -28
- package/see/examples/input/euler_identity.trig +0 -34
- package/see/examples/input/ev_roundtrip_planner.trig +0 -90
- package/see/examples/input/existential_rule.trig +0 -26
- package/see/examples/input/expression_eval.trig +0 -41
- package/see/examples/input/family_cousins.trig +0 -39
- package/see/examples/input/fastpow.trig +0 -25
- package/see/examples/input/fibonacci.trig +0 -51
- package/see/examples/input/french_cities.trig +0 -38
- package/see/examples/input/fundamental_theorem_arithmetic.trig +0 -42
- package/see/examples/input/goldbach_1000.trig +0 -53
- package/see/examples/input/good_cobbler.trig +0 -24
- package/see/examples/input/gps.trig +0 -35
- package/see/examples/input/gray_code_counter.trig +0 -33
- package/see/examples/input/greatest_lower_bound_uniqueness.trig +0 -29
- package/see/examples/input/group_inverse_uniqueness.trig +0 -29
- package/see/examples/input/hadamard_approx.trig +0 -32
- package/see/examples/input/hanoi.trig +0 -26
- package/see/examples/input/odrl_dpv_risk_ranked.trig +0 -107
- package/see/examples/input/path-discovery.trig +0 -96448
- package/see/examples/input/path_discovery.trig +0 -29
- package/see/examples/input/socrates.trig +0 -26
- package/see/examples/input/wind_turbine.trig +0 -48
- package/see/examples/input/witch.trig +0 -26
- package/see/examples/n3/age.n3 +0 -28
- package/see/examples/n3/backward.n3 +0 -22
- package/see/examples/n3/bayes_diagnosis.n3 +0 -122
- package/see/examples/n3/bayes_therapy.n3 +0 -149
- package/see/examples/n3/bmi.n3 +0 -145
- package/see/examples/n3/collection.n3 +0 -3
- package/see/examples/n3/complex.n3 +0 -140
- package/see/examples/n3/complex_matrix_stability.n3 +0 -113
- package/see/examples/n3/composition_of_injective_functions_is_injective.n3 +0 -27
- package/see/examples/n3/control_system.n3 +0 -59
- package/see/examples/n3/crypto_builtins_tests.n3 +0 -18
- package/see/examples/n3/delfour.n3 +0 -167
- package/see/examples/n3/digital_product_passport.n3 +0 -156
- package/see/examples/n3/dijkstra.n3 +0 -46
- package/see/examples/n3/dog.n3 +0 -20
- package/see/examples/n3/equals.n3 +0 -11
- package/see/examples/n3/equivalence_classes_overlap_implies_same_class.n3 +0 -19
- package/see/examples/n3/euler_identity.n3 +0 -41
- package/see/examples/n3/ev_roundtrip_planner.n3 +0 -82
- package/see/examples/n3/existential_rule.n3 +0 -10
- package/see/examples/n3/expression_eval.n3 +0 -21
- package/see/examples/n3/family_cousins.n3 +0 -62
- package/see/examples/n3/fastpow.n3 +0 -56
- package/see/examples/n3/fibonacci.n3 +0 -44
- package/see/examples/n3/french_cities.n3 +0 -28
- package/see/examples/n3/fundamental_theorem_arithmetic.n3 +0 -84
- package/see/examples/n3/goldbach_1000.n3 +0 -66
- package/see/examples/n3/good_cobbler.n3 +0 -10
- package/see/examples/n3/gps.n3 +0 -70
- package/see/examples/n3/gray_code_counter.n3 +0 -53
- package/see/examples/n3/greatest_lower_bound_uniqueness.n3 +0 -20
- package/see/examples/n3/group_inverse_uniqueness.n3 +0 -19
- package/see/examples/n3/hadamard_approx.n3 +0 -43
- package/see/examples/n3/hanoi.n3 +0 -16
- package/see/examples/n3/odrl_dpv_risk_ranked.n3 +0 -460
- package/see/examples/n3/path_discovery.n3 +0 -43
- package/see/examples/n3/socrates.n3 +0 -21
- package/see/examples/n3/wind_turbine.n3 +0 -85
- package/see/examples/n3/witch.n3 +0 -30
- package/see/examples/odrl_dpv_risk_ranked.js +0 -5128
- package/see/examples/output/age.md +0 -48
- package/see/examples/output/annotation.md +0 -43
- package/see/examples/output/backward.md +0 -50
- package/see/examples/output/backward_recursion.md +0 -54
- package/see/examples/output/bayes_diagnosis.md +0 -103
- package/see/examples/output/bayes_therapy.md +0 -84
- package/see/examples/output/bmi.md +0 -164
- package/see/examples/output/builtin_coverage.md +0 -99
- package/see/examples/output/collection.md +0 -44
- package/see/examples/output/complex.md +0 -61
- package/see/examples/output/complex_matrix_stability.md +0 -55
- package/see/examples/output/composition_of_injective_functions_is_injective.md +0 -62
- package/see/examples/output/control_system.md +0 -61
- package/see/examples/output/crypto_builtins_tests.md +0 -68
- package/see/examples/output/delfour.md +0 -100
- package/see/examples/output/digital_product_passport.md +0 -100
- package/see/examples/output/dijkstra.md +0 -74
- package/see/examples/output/dijkstra_risk_path.md +0 -76
- package/see/examples/output/dog.md +0 -50
- package/see/examples/output/eco_route_insight.md +0 -88
- package/see/examples/output/equals.md +0 -50
- package/see/examples/output/equivalence_classes_overlap_implies_same_class.md +0 -86
- package/see/examples/output/euler_identity.md +0 -73
- package/see/examples/output/ev_roundtrip_planner.md +0 -79
- package/see/examples/output/existential_rule.md +0 -54
- package/see/examples/output/expression_eval.md +0 -50
- package/see/examples/output/family_cousins.md +0 -187
- package/see/examples/output/fastpow.md +0 -36
- package/see/examples/output/fibonacci.md +0 -53
- package/see/examples/output/french_cities.md +0 -70
- package/see/examples/output/fundamental_theorem_arithmetic.md +0 -101
- package/see/examples/output/genetic_knapsack_selection.md +0 -66
- package/see/examples/output/goldbach_1000.md +0 -58
- package/see/examples/output/good_cobbler.md +0 -54
- package/see/examples/output/gps.md +0 -102
- package/see/examples/output/gray_code_counter.md +0 -68
- package/see/examples/output/greatest_lower_bound_uniqueness.md +0 -60
- package/see/examples/output/group_inverse_uniqueness.md +0 -60
- package/see/examples/output/hadamard_approx.md +0 -510
- package/see/examples/output/hanoi.md +0 -51
- package/see/examples/output/odrl_dpv_risk_ranked.md +0 -139
- package/see/examples/output/path_discovery.md +0 -65
- package/see/examples/output/rc_discharge_envelope.md +0 -102
- package/see/examples/output/rdf_dataset.md +0 -54
- package/see/examples/output/rdf_message_flow.md +0 -198
- package/see/examples/output/rdf_messages.md +0 -134
- package/see/examples/output/school_placement_audit.md +0 -99
- package/see/examples/output/smoke_arithmetic.md +0 -54
- package/see/examples/output/socrates.md +0 -55
- package/see/examples/output/triple_terms.md +0 -53
- package/see/examples/output/wind_turbine.md +0 -108
- package/see/examples/output/witch.md +0 -87
- package/see/examples/path_discovery.js +0 -1774
- package/see/examples/rc_discharge_envelope.js +0 -1993
- package/see/examples/rdf_dataset.js +0 -1512
- package/see/examples/rdf_message_flow.js +0 -2580
- package/see/examples/rdf_messages.js +0 -2176
- package/see/examples/school_placement_audit.js +0 -1867
- package/see/examples/smoke_arithmetic.js +0 -1483
- package/see/examples/socrates.js +0 -1420
- package/see/examples/triple_terms.js +0 -1442
- package/see/examples/wind_turbine.js +0 -2853
- package/see/examples/witch.js +0 -1519
- package/see/see.js +0 -2179
- package/test/see.test.js +0 -159
- /package/{see/examples/n3/builtin_coverage.n3 → examples/builtin-coverage.n3} +0 -0
package/HANDBOOK.md
CHANGED
|
@@ -36,7 +36,6 @@
|
|
|
36
36
|
- [Appendix I — The Eyeling Playground](#app-i)
|
|
37
37
|
- [Appendix J — Formalism Is Fine](#app-j)
|
|
38
38
|
- [Appendix K — Whitehead-inspired becoming examples](#app-k)
|
|
39
|
-
- [Appendix L — SEE: Specialized Eyeling Executables](#app-l)
|
|
40
39
|
|
|
41
40
|
---
|
|
42
41
|
|
|
@@ -3830,101 +3829,3 @@ For the handbook, these examples matter for two reasons. First, they provide a c
|
|
|
3830
3829
|
|
|
3831
3830
|
That is why this appendix belongs after Appendix J. “Formalism is fine” not only because it supports rigor, but because it can remain flexible enough to describe worlds in motion. The becoming examples are small demonstrations of that claim. They show that a compact N3 reasoner can host process-oriented models without ceasing to be simple, readable, and executable.
|
|
3832
3831
|
|
|
3833
|
-
---
|
|
3834
|
-
|
|
3835
|
-
<a id="app-l"></a>
|
|
3836
|
-
|
|
3837
|
-
## Appendix L — SEE: Specialized Eyeling Executables
|
|
3838
|
-
|
|
3839
|
-
SEE, **Specialized Eyeling Executables**, is the companion example system under `see/`. It compiles selected Eyeling-style N3 programs into small, standalone JavaScript runners. The goal is not to replace the main reasoner. The goal is to turn a particular reasoning task into an executable artifact that carries its input evidence, derivation logic, entailment, explanation, and reference output together.
|
|
3840
|
-
|
|
3841
|
-
The short mental model is:
|
|
3842
|
-
|
|
3843
|
-
```text
|
|
3844
|
-
N3 source + TriG evidence -> specialized JavaScript -> entailment + explanation
|
|
3845
|
-
```
|
|
3846
|
-
|
|
3847
|
-
### L.1 Why SEE exists
|
|
3848
|
-
|
|
3849
|
-
The normal Eyeling CLI is a general reasoner: it parses an input file, runs the engine, and prints the resulting closure, selected query output, or rendered `log:outputString` report.
|
|
3850
|
-
|
|
3851
|
-
SEE is narrower and more packageable. For each committed example, `see.js` generates:
|
|
3852
|
-
|
|
3853
|
-
- `see/examples/<name>.js` — a runnable JavaScript derivation program,
|
|
3854
|
-
- `see/examples/input/<name>.trig` — the RDF/TriG evidence read by the runner,
|
|
3855
|
-
- `see/examples/output/<name>.md` — the expected Markdown result,
|
|
3856
|
-
- `see/examples/doc/<name>.md` — a short generated explanation of the compiled example.
|
|
3857
|
-
|
|
3858
|
-
That makes each example easier to audit. A reviewer can inspect the source N3, the generated runner, the input evidence, and the expected entailment/explanation without reconstructing the whole test setup.
|
|
3859
|
-
|
|
3860
|
-
### L.2 Entailment plus explanation
|
|
3861
|
-
|
|
3862
|
-
SEE reports use an **Entailment** section and an **Explanation** section. The entailment is the selected result of the reasoning task. The explanation records how the compiled runner reached it: source facts, rules, selected support trees, and the formal TriG output when relevant.
|
|
3863
|
-
|
|
3864
|
-
This vocabulary is deliberately more precise than a generic “result”. It says: the program is not merely presenting a suggestion; it is presenting something that follows from the encoded facts, rules, gates, and query projection.
|
|
3865
|
-
|
|
3866
|
-
### L.3 Direct TriG input
|
|
3867
|
-
|
|
3868
|
-
Generated SEE runners read their committed `.trig` input directly. Earlier versions used an intermediate `.n3` conversion step, but the current design keeps the evidence in TriG and lets the runner parse that committed input. This matters for examples that are closer to RDF data exchange than to hand-written N3 rule files.
|
|
3869
|
-
|
|
3870
|
-
SEE includes RDF compatibility examples. The `triple_terms` example uses RDF 1.2 triple terms, and the `rdf_dataset` example combines ordinary default-graph triples, an RDF/TriG named graph block, and RDF 1.2 triple terms.
|
|
3871
|
-
|
|
3872
|
-
A triple-term input can contain:
|
|
3873
|
-
|
|
3874
|
-
```trig
|
|
3875
|
-
VERSION "1.2"
|
|
3876
|
-
|
|
3877
|
-
:observation rdf:reifies <<( :sensor :reports :overheating )>> .
|
|
3878
|
-
```
|
|
3879
|
-
|
|
3880
|
-
In RDF compatibility mode, Eyeling accepts this surface form by translating the triple term to a singleton quoted formula internally:
|
|
3881
|
-
|
|
3882
|
-
```n3
|
|
3883
|
-
:observation rdf:reifies { :sensor :reports :overheating } .
|
|
3884
|
-
```
|
|
3885
|
-
|
|
3886
|
-
The dataset example also uses named graph syntax, which RDF compatibility mode normalizes to `log:nameOf` graph terms:
|
|
3887
|
-
|
|
3888
|
-
```trig
|
|
3889
|
-
:factoryDataset {
|
|
3890
|
-
:observation rdf:reifies <<( :sensor :reports :overheating )>> .
|
|
3891
|
-
}
|
|
3892
|
-
```
|
|
3893
|
-
|
|
3894
|
-
is compiled through the same internal N3 shape:
|
|
3895
|
-
|
|
3896
|
-
```n3
|
|
3897
|
-
:factoryDataset log:nameOf {
|
|
3898
|
-
:observation rdf:reifies { :sensor :reports :overheating } .
|
|
3899
|
-
} .
|
|
3900
|
-
```
|
|
3901
|
-
|
|
3902
|
-
That is enough for SEE to demonstrate RDF 1.1/RDF 1.2-style dataset input and triple-term output without forcing Eyeling to implement a separate full RDF dataset model. The compatibility layer is explicit rather than default, so ordinary N3 files remain strict N3.
|
|
3903
|
-
|
|
3904
|
-
### L.4 Generation and tests
|
|
3905
|
-
|
|
3906
|
-
The root package scripts treat SEE as part of the normal repository workflow:
|
|
3907
|
-
|
|
3908
|
-
```bash
|
|
3909
|
-
npm run generate
|
|
3910
|
-
npm run test:see
|
|
3911
|
-
```
|
|
3912
|
-
|
|
3913
|
-
`npm run generate` refreshes the generated SEE artifacts from `see/examples/n3/*.n3`. `npm run test:see` runs every generated SEE example and compares its Markdown output with the committed reference output.
|
|
3914
|
-
|
|
3915
|
-
In the full test suite, this means SEE is not just documentation. It is executable regression coverage for a broad range of Eyeling behavior: forward rules, backward rules, builtins, fuses, queries, RDF lists, formula-valued terms, generated explanations, opt-in RDF 1.2 triple-term compatibility, and opt-in RDF/TriG dataset-syntax compatibility.
|
|
3916
|
-
|
|
3917
|
-
### L.5 When to add a SEE example
|
|
3918
|
-
|
|
3919
|
-
A normal Eyeling example is best when you want to demonstrate a language feature or a compact reasoning pattern directly in N3.
|
|
3920
|
-
|
|
3921
|
-
A SEE example is best when you want a more self-contained artifact:
|
|
3922
|
-
|
|
3923
|
-
- the input evidence matters,
|
|
3924
|
-
- the final entailment should be explained in Markdown,
|
|
3925
|
-
- the example should be runnable without an external reasoner at runtime,
|
|
3926
|
-
- the generated JavaScript itself is worth inspecting,
|
|
3927
|
-
- or the example should become stable regression coverage for a specific reasoning workflow.
|
|
3928
|
-
|
|
3929
|
-
In that sense, SEE is an executable publication format for selected Eyeling examples: small enough to read, deterministic enough to test, and explicit enough to audit.
|
|
3930
|
-
|
package/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# eyeling
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/eyeling)
|
|
3
|
+
[](https://www.npmjs.com/package/eyeling)
|
|
4
|
+
[](https://doi.org/10.5281/zenodo.19068086)
|
|
4
5
|
|
|
5
6
|
A compact [Notation3 (N3)](https://notation3.org/) reasoner in **JavaScript**.
|
|
6
7
|
|
|
@@ -16,5 +17,4 @@ echo '@prefix : <http://example.org/> .
|
|
|
16
17
|
|
|
17
18
|
- [Handbook](https://eyereasoner.github.io/eyeling/HANDBOOK)
|
|
18
19
|
- [Playground](https://eyereasoner.github.io/eyeling/demo)
|
|
19
|
-
- [SEE: Specialized Eyeling Executables](https://github.com/eyereasoner/eyeling/tree/main/see)
|
|
20
20
|
- [Conformance report](https://codeberg.org/phochste/notation3tests/src/branch/main/reports/report.md)
|
|
@@ -4249,6 +4249,12 @@ function isBuiltinPred(p) {
|
|
|
4249
4249
|
return v === LOG_NS + 'implies' || v === LOG_NS + 'impliedBy';
|
|
4250
4250
|
}
|
|
4251
4251
|
|
|
4252
|
+
// log:nameOf is the ordinary fact predicate used by the RDF/TriG
|
|
4253
|
+
// compatibility layer for named graph blocks. It must remain matchable
|
|
4254
|
+
// against extensional facts instead of being swallowed as an unimplemented
|
|
4255
|
+
// log:* builtin.
|
|
4256
|
+
if (v === LOG_NS + 'nameOf') return false;
|
|
4257
|
+
|
|
4252
4258
|
// Treat RDF Collections as list-term builtins too.
|
|
4253
4259
|
if (v === RDF_NS + 'first' || v === RDF_NS + 'rest') {
|
|
4254
4260
|
return true;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Context association
|
|
2
|
+
#
|
|
3
|
+
# Uses an external RDF/TriG input dataset whose named graph blocks associate a
|
|
4
|
+
# data graph, a signature graph, and a metadata graph. This Eyeling example
|
|
5
|
+
# verifies that the graph contexts form a signed association around Bob's data.
|
|
6
|
+
|
|
7
|
+
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
|
|
8
|
+
@prefix sec: <https://w3id.org/security#>.
|
|
9
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
|
|
10
|
+
@prefix log: <http://www.w3.org/2000/10/swap/log#>.
|
|
11
|
+
@prefix : <http://example.org/#>.
|
|
12
|
+
|
|
13
|
+
{
|
|
14
|
+
?dataGraph log:nameOf ?dataContext.
|
|
15
|
+
?dataContext log:includes { :Bob foaf:name "Bob" }.
|
|
16
|
+
|
|
17
|
+
?signatureGraph log:nameOf ?signatureContext.
|
|
18
|
+
?signatureContext log:includes {
|
|
19
|
+
?dataGraph sec:proof ?dataSignature.
|
|
20
|
+
?proof a sec:DataIntegrityProof.
|
|
21
|
+
?proof sec:cryptosuite "ecdsa-rdfc-2019".
|
|
22
|
+
?proof sec:issuer <https://university.example/issuers/14>.
|
|
23
|
+
?proof sec:validUntil "2025-04-03T00:00:00.000Z"^^xsd:dateTime.
|
|
24
|
+
}.
|
|
25
|
+
|
|
26
|
+
?metadataGraph log:nameOf ?metadataContext.
|
|
27
|
+
?metadataContext log:includes {
|
|
28
|
+
?signatureGraph sec:proof ?metadataSignature.
|
|
29
|
+
?metadataProof a sec:DataIntegrityProof.
|
|
30
|
+
?metadataProof sec:proofPurpose "assertionMethod".
|
|
31
|
+
}.
|
|
32
|
+
}
|
|
33
|
+
=>
|
|
34
|
+
{
|
|
35
|
+
:association :subject :Bob.
|
|
36
|
+
:association :dataGraph ?dataGraph.
|
|
37
|
+
:association :signatureGraph ?signatureGraph.
|
|
38
|
+
:association :metadataGraph ?metadataGraph.
|
|
39
|
+
:association :cryptosuite "ecdsa-rdfc-2019".
|
|
40
|
+
:association :issuer <https://university.example/issuers/14>.
|
|
41
|
+
:association :status :contextAssociationVerified.
|
|
42
|
+
}.
|
|
43
|
+
|
|
44
|
+
{
|
|
45
|
+
:association :status :contextAssociationVerified.
|
|
46
|
+
}
|
|
47
|
+
=>
|
|
48
|
+
{
|
|
49
|
+
:report log:outputString "# Context association\n\n## Entailment\nThe RDF dataset associates Bob's data graph with a Data Integrity proof graph and a second metadata proof graph.\n\n## Explanation\nThe input TriG names three graph contexts. The data graph states Bob's name. The signature graph links to that data graph with a proof and records an ecdsa-rdfc-2019 Data Integrity proof from the university issuer. The metadata graph then signs the signature graph itself, giving a chained context association.".
|
|
50
|
+
}.
|
|
51
|
+
|
|
52
|
+
# query
|
|
53
|
+
{
|
|
54
|
+
:association ?P ?O.
|
|
55
|
+
}
|
|
56
|
+
log:query
|
|
57
|
+
{
|
|
58
|
+
:association ?P ?O.
|
|
59
|
+
}.
|
|
@@ -1,35 +1,20 @@
|
|
|
1
1
|
# ==================
|
|
2
2
|
# Dijkstra Risk Path
|
|
3
3
|
# ==================
|
|
4
|
-
# N3
|
|
4
|
+
# N3 version of the risk-adjusted route example. The original JSON
|
|
5
5
|
# input is preserved as the data-input sidecar; this source compiles the
|
|
6
6
|
# executable derivation and report.
|
|
7
7
|
|
|
8
|
-
@prefix : <https://eyereasoner.github.io/
|
|
8
|
+
@prefix : <https://eyereasoner.github.io/eyeling/examples/dijkstra-risk-path#>.
|
|
9
9
|
@prefix math: <http://www.w3.org/2000/10/swap/math#>.
|
|
10
10
|
@prefix log: <http://www.w3.org/2000/10/swap/log#>.
|
|
11
11
|
@prefix string: <http://www.w3.org/2000/10/swap/string#>.
|
|
12
12
|
|
|
13
|
-
:Case
|
|
14
|
-
:question "Which clinic-to-hub route has the lowest risk-adjusted score?";
|
|
15
|
-
:start :ClinicA;
|
|
16
|
-
:goal :HubZ;
|
|
17
|
-
:riskWeight 2.0.
|
|
18
13
|
|
|
19
|
-
:pathB
|
|
20
|
-
:routeText "ClinicA -> DepotB -> LabD -> HubZ";
|
|
21
|
-
:rawCost 10.0;
|
|
22
|
-
:riskSum 0.55;
|
|
23
|
-
:score 11.10;
|
|
24
|
-
:edgeCount 3;
|
|
25
|
-
:uses :ClinicA, :DepotB, :LabD, :HubZ.
|
|
26
14
|
|
|
27
|
-
:pathC :score 11.30.
|
|
28
|
-
:pathRelay :score 11.70.
|
|
29
|
-
:pathDirectC :rawCost 10.0; :score 11.60; :riskSum 0.80.
|
|
30
|
-
:pathViaC :rawCost 8.0; :score 11.20; :riskSum 1.60.
|
|
31
15
|
|
|
32
16
|
# The selected route must be strictly lower than each enumerated alternative.
|
|
17
|
+
|
|
33
18
|
{
|
|
34
19
|
:pathB :score ?Best.
|
|
35
20
|
:pathC :score ?CScore.
|
|
@@ -1,60 +1,15 @@
|
|
|
1
1
|
# =================
|
|
2
2
|
# Eco Route Insight
|
|
3
3
|
# =================
|
|
4
|
-
# N3
|
|
4
|
+
# N3 version of the privacy-preserving eco route insight. The JSON
|
|
5
5
|
# input remains the data-input sidecar; this source compiles the local decision
|
|
6
6
|
# and signed-envelope explanation.
|
|
7
7
|
|
|
8
|
-
@prefix : <https://eyereasoner.github.io/
|
|
8
|
+
@prefix : <https://eyereasoner.github.io/eyeling/examples/eco-route-insight#>.
|
|
9
9
|
@prefix math: <http://www.w3.org/2000/10/swap/math#>.
|
|
10
10
|
@prefix log: <http://www.w3.org/2000/10/swap/log#>.
|
|
11
11
|
@prefix string: <http://www.w3.org/2000/10/swap/string#>.
|
|
12
12
|
|
|
13
|
-
:Scenario
|
|
14
|
-
:driver "Jamal";
|
|
15
|
-
:audience "Depot X";
|
|
16
|
-
:allowedUse "ui.eco.banner";
|
|
17
|
-
:issuedAt "2025-01-01T09:00:00Z";
|
|
18
|
-
:expiresAt "2025-01-01T11:00:00Z".
|
|
19
|
-
|
|
20
|
-
:Policy
|
|
21
|
-
:fuelIndexThreshold 120.0;
|
|
22
|
-
:maxEtaDelayMinutes 5;
|
|
23
|
-
:allowedUse "ui.eco.banner";
|
|
24
|
-
:signatureAlgorithm "HMAC-SHA256".
|
|
25
|
-
|
|
26
|
-
:Shipment :id "shipment-1"; :payloadTons 2.5.
|
|
27
|
-
|
|
28
|
-
:currentRoute
|
|
29
|
-
:id "current-route";
|
|
30
|
-
:label "Current urban route";
|
|
31
|
-
:distanceKm 42.0;
|
|
32
|
-
:gradientFactor 1.15;
|
|
33
|
-
:etaMinutes 64;
|
|
34
|
-
:fuelIndex 120.75.
|
|
35
|
-
|
|
36
|
-
:altLowFuel
|
|
37
|
-
:id "alt-low-fuel";
|
|
38
|
-
:label "Lower-fuel route";
|
|
39
|
-
:distanceKm 38.0;
|
|
40
|
-
:gradientFactor 1.05;
|
|
41
|
-
:etaMinutes 66;
|
|
42
|
-
:fuelIndex 99.75.
|
|
43
|
-
|
|
44
|
-
:altHillyShortcut
|
|
45
|
-
:id "alt-hilly-shortcut";
|
|
46
|
-
:label "Shorter hilly shortcut";
|
|
47
|
-
:distanceKm 35.0;
|
|
48
|
-
:gradientFactor 1.42;
|
|
49
|
-
:etaMinutes 63;
|
|
50
|
-
:fuelIndex 124.25.
|
|
51
|
-
|
|
52
|
-
:Envelope
|
|
53
|
-
:rawDataExported "no";
|
|
54
|
-
:payloadDigest "00e19becd91e81d6881749655d23d43002d9ea714bba61e855eafbc8ef9a5135";
|
|
55
|
-
:signatureKey "local-demo-key";
|
|
56
|
-
:signature "7fFGBN8fyI7xrmRz5VreeAUSf3LC_ywbj32NGk2ovUs".
|
|
57
|
-
|
|
58
13
|
{
|
|
59
14
|
:currentRoute :fuelIndex ?Current; :etaMinutes ?CurrentEta.
|
|
60
15
|
:altLowFuel :fuelIndex ?Alt; :etaMinutes ?AltEta.
|
package/{see/examples/n3/genetic_knapsack_selection.n3 → examples/genetic-knapsack-selection.n3}
RENAMED
|
@@ -1,36 +1,14 @@
|
|
|
1
1
|
# ===========================
|
|
2
2
|
# Genetic Knapsack Selection
|
|
3
3
|
# ===========================
|
|
4
|
-
# N3
|
|
4
|
+
# N3 version of the deterministic one-bit mutation knapsack example.
|
|
5
5
|
# The original item list JSON is preserved as the data-input sidecar.
|
|
6
6
|
|
|
7
|
-
@prefix : <https://eyereasoner.github.io/
|
|
7
|
+
@prefix : <https://eyereasoner.github.io/eyeling/examples/genetic-knapsack-selection#>.
|
|
8
8
|
@prefix math: <http://www.w3.org/2000/10/swap/math#>.
|
|
9
9
|
@prefix log: <http://www.w3.org/2000/10/swap/log#>.
|
|
10
10
|
@prefix string: <http://www.w3.org/2000/10/swap/string#>.
|
|
11
11
|
|
|
12
|
-
:Run
|
|
13
|
-
:capacity 50;
|
|
14
|
-
:startGenome "000000000000";
|
|
15
|
-
:maxGenerations 64.
|
|
16
|
-
|
|
17
|
-
:FinalLocal
|
|
18
|
-
:genome "101000000101";
|
|
19
|
-
:selectedItems "item01, item03, item10, item12";
|
|
20
|
-
:weight 50;
|
|
21
|
-
:value 101;
|
|
22
|
-
:fitness 999899;
|
|
23
|
-
:generationsEvaluated 5.
|
|
24
|
-
|
|
25
|
-
:ExhaustiveOptimum
|
|
26
|
-
:genome "001000011111";
|
|
27
|
-
:value 104.
|
|
28
|
-
|
|
29
|
-
:NeighborSummary
|
|
30
|
-
:oneBitNeighborsEvaluated 12;
|
|
31
|
-
:bestNeighborValue 101;
|
|
32
|
-
:capacityRespected true.
|
|
33
|
-
|
|
34
12
|
{
|
|
35
13
|
:Run :capacity ?Capacity.
|
|
36
14
|
:FinalLocal :weight ?Weight; :value ?Value.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
@prefix : <https://eyereasoner.github.io/
|
|
1
|
+
@prefix : <https://eyereasoner.github.io/eyeling/examples/annotation#> .
|
|
2
2
|
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
|
|
3
3
|
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
4
4
|
@prefix see: <https://example.org/see#> .
|
|
5
5
|
@prefix in: <https://example.org/see/input#> .
|
|
6
6
|
|
|
7
|
-
# Formal
|
|
7
|
+
# Formal Eyeling input evidence in RDF 1.2 TriG.
|
|
8
8
|
# The generated runner reads this TriG evidence directly.
|
|
9
9
|
|
|
10
10
|
:a :name "Alice" .
|
|
@@ -22,7 +22,7 @@ in:metadata {
|
|
|
22
22
|
in:run see:sourceFile "examples/n3/annotation.n3" .
|
|
23
23
|
in:run see:sourceSHA256 "fa6faef8fac2e328ccfb894c21eef260b0935a936b5e9806f8889719e7f39e4f" .
|
|
24
24
|
in:run see:description "" .
|
|
25
|
-
in:run see:compiler "
|
|
25
|
+
in:run see:compiler "Eyeling RDF/TriG input sidecar" .
|
|
26
26
|
in:run see:inputFacts 4 .
|
|
27
27
|
in:run see:compiledRules 0 .
|
|
28
28
|
in:run see:compiledBackwardRules 0 .
|
package/{see/examples/input/backward_recursion.trig → examples/input/backward-recursion.trig}
RENAMED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
@prefix see: <https://example.org/see#> .
|
|
4
4
|
@prefix in: <https://example.org/see/input#> .
|
|
5
5
|
|
|
6
|
-
# Formal
|
|
6
|
+
# Formal Eyeling input evidence in RDF 1.2 TriG.
|
|
7
7
|
# The generated runner reads this TriG evidence directly.
|
|
8
8
|
|
|
9
9
|
:a :parent :b .
|
|
@@ -16,7 +16,7 @@ in:metadata {
|
|
|
16
16
|
in:run see:sourceFile "examples/n3/backward_recursion.n3" .
|
|
17
17
|
in:run see:sourceSHA256 "1249b9825793b7f0174c87a4d0e44752cb63f3940cc332c0d00fc6bb15a081d1" .
|
|
18
18
|
in:run see:description "Demonstrates recursive <= rules compiled into specialized JavaScript." .
|
|
19
|
-
in:run see:compiler "
|
|
19
|
+
in:run see:compiler "Eyeling RDF/TriG input sidecar" .
|
|
20
20
|
in:run see:inputFacts 2 .
|
|
21
21
|
in:run see:compiledRules 1 .
|
|
22
22
|
in:run see:compiledBackwardRules 2 .
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
@prefix see: <https://example.org/see#> .
|
|
4
4
|
@prefix in: <https://example.org/see/input#> .
|
|
5
5
|
|
|
6
|
-
# Formal
|
|
6
|
+
# Formal Eyeling input evidence in RDF 1.2 TriG.
|
|
7
7
|
# The generated runner reads this TriG evidence directly.
|
|
8
8
|
|
|
9
9
|
# No source facts were present in the N3 program.
|
|
@@ -15,7 +15,7 @@ in:metadata {
|
|
|
15
15
|
in:run see:sourceFile "examples/n3/builtin_coverage.n3" .
|
|
16
16
|
in:run see:sourceSHA256 "4ea25a79da436dd28fb54de1a7d0f5d49729b47f384f9bd36411c5cc1b821dbc" .
|
|
17
17
|
in:run see:description "Exercises math, string, list, crypto, time, and log builtins in compiled JavaScript." .
|
|
18
|
-
in:run see:compiler "
|
|
18
|
+
in:run see:compiler "Eyeling RDF/TriG input sidecar" .
|
|
19
19
|
in:run see:inputFacts 0 .
|
|
20
20
|
in:run see:compiledRules 1 .
|
|
21
21
|
in:run see:compiledBackwardRules 0 .
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
@prefix : <https://eyereasoner.github.io/
|
|
1
|
+
@prefix : <https://eyereasoner.github.io/eyeling/examples/collection#> .
|
|
2
2
|
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
|
|
3
3
|
@prefix see: <https://example.org/see#> .
|
|
4
4
|
@prefix in: <https://example.org/see/input#> .
|
|
5
5
|
|
|
6
|
-
# Formal
|
|
6
|
+
# Formal Eyeling input evidence in RDF 1.2 TriG.
|
|
7
7
|
# The generated runner reads this TriG evidence directly.
|
|
8
8
|
|
|
9
9
|
(1 _:b2 (2)) :p2 :q2 .
|
|
@@ -16,7 +16,7 @@ in:metadata {
|
|
|
16
16
|
in:run see:sourceFile "examples/n3/collection.n3" .
|
|
17
17
|
in:run see:sourceSHA256 "ebce812d5e37729432cb77a638cde078af333450cc12ebd66b06083867cee7fa" .
|
|
18
18
|
in:run see:description "" .
|
|
19
|
-
in:run see:compiler "
|
|
19
|
+
in:run see:compiler "Eyeling RDF/TriG input sidecar" .
|
|
20
20
|
in:run see:inputFacts 2 .
|
|
21
21
|
in:run see:compiledRules 0 .
|
|
22
22
|
in:run see:compiledBackwardRules 0 .
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
|
|
2
|
+
@prefix sec: <https://w3id.org/security#>.
|
|
3
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
|
|
4
|
+
@prefix : <http://example.org/#>.
|
|
5
|
+
|
|
6
|
+
_:g0 {
|
|
7
|
+
:Bob foaf:name "Bob".
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
# sign data graph
|
|
11
|
+
_:g1 {
|
|
12
|
+
_:g0 sec:proof _:dataSignature.
|
|
13
|
+
_:signature1
|
|
14
|
+
a sec:DataIntegrityProof;
|
|
15
|
+
sec:cryptosuite "ecdsa-rdfc-2019";
|
|
16
|
+
sec:created "2021-11-13T18:19:39Z";
|
|
17
|
+
sec:verificationMethod "https://university.example/issuers/14#key-1";
|
|
18
|
+
sec:proofPurpose "assertionMethod";
|
|
19
|
+
sec:proofValue "z58DAdFfa9SkqZMVPxAQp...jQCrfFPP2oumHKtz";
|
|
20
|
+
sec:issuer <https://university.example/issuers/14>;
|
|
21
|
+
sec:validFrom "2024-04-03T00:00:00.000Z"^^xsd:dateTime;
|
|
22
|
+
sec:validUntil "2025-04-03T00:00:00.000Z"^^xsd:dateTime.
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
# sign signature graph for verifiable metadata if needed
|
|
26
|
+
_:g3 {
|
|
27
|
+
_:g1 sec:proof _:signature2.
|
|
28
|
+
_:signature2
|
|
29
|
+
a sec:DataIntegrityProof;
|
|
30
|
+
sec:cryptosuite "ecdsa-rdfc-2019";
|
|
31
|
+
sec:created "2021-11-13T18:19:39Z";
|
|
32
|
+
sec:verificationMethod "https://university.example/issuers/14#key-1";
|
|
33
|
+
sec:proofPurpose "assertionMethod";
|
|
34
|
+
sec:proofValue "adad123efv434r5200...dqed2t44v43das".
|
|
35
|
+
}
|
package/{see/examples/input/dijkstra_risk_path.trig → examples/input/dijkstra-risk-path.trig}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
@prefix : <https://eyereasoner.github.io/
|
|
1
|
+
@prefix : <https://eyereasoner.github.io/eyeling/examples/dijkstra-risk-path#> .
|
|
2
2
|
@prefix math: <http://www.w3.org/2000/10/swap/math#> .
|
|
3
3
|
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
|
|
4
4
|
@prefix string: <http://www.w3.org/2000/10/swap/string#> .
|
|
5
5
|
@prefix see: <https://example.org/see#> .
|
|
6
6
|
@prefix in: <https://example.org/see/input#> .
|
|
7
7
|
|
|
8
|
-
# Formal
|
|
8
|
+
# Formal Eyeling input evidence in RDF 1.2 TriG.
|
|
9
9
|
# The generated runner reads this TriG evidence directly.
|
|
10
10
|
|
|
11
11
|
:Case :question "Which clinic-to-hub route has the lowest risk-adjusted score?" .
|
|
@@ -36,8 +36,8 @@ in:metadata {
|
|
|
36
36
|
in:run see:title "Dijkstra Risk Path" .
|
|
37
37
|
in:run see:sourceFile "examples/n3/dijkstra_risk_path.n3" .
|
|
38
38
|
in:run see:sourceSHA256 "a11f23a58252e557817c5d26cabdfee5ce8c5c08a40a54ab680eaa8960c88937" .
|
|
39
|
-
in:run see:description "N3
|
|
40
|
-
in:run see:compiler "
|
|
39
|
+
in:run see:description "N3 version of the risk-adjusted route example. The original JSON\ninput is preserved as the data-input sidecar; this source compiles the\nexecutable derivation and report." .
|
|
40
|
+
in:run see:compiler "Eyeling RDF/TriG input sidecar" .
|
|
41
41
|
in:run see:inputFacts 21 .
|
|
42
42
|
in:run see:compiledRules 3 .
|
|
43
43
|
in:run see:compiledBackwardRules 0 .
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
@prefix : <https://eyereasoner.github.io/
|
|
1
|
+
@prefix : <https://eyereasoner.github.io/eyeling/examples/eco-route-insight#> .
|
|
2
2
|
@prefix math: <http://www.w3.org/2000/10/swap/math#> .
|
|
3
3
|
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
|
|
4
4
|
@prefix string: <http://www.w3.org/2000/10/swap/string#> .
|
|
5
5
|
@prefix see: <https://example.org/see#> .
|
|
6
6
|
@prefix in: <https://example.org/see/input#> .
|
|
7
7
|
|
|
8
|
-
# Formal
|
|
8
|
+
# Formal Eyeling input evidence in RDF 1.2 TriG.
|
|
9
9
|
# The generated runner reads this TriG evidence directly.
|
|
10
10
|
|
|
11
11
|
:Scenario :driver "Jamal" .
|
|
@@ -48,8 +48,8 @@ in:metadata {
|
|
|
48
48
|
in:run see:title "Eco Route Insight" .
|
|
49
49
|
in:run see:sourceFile "examples/n3/eco_route_insight.n3" .
|
|
50
50
|
in:run see:sourceSHA256 "b5af0caa2e473b5957ba8cec647ee4e2edf4cdc2a5c28110e8536c19381b0bd3" .
|
|
51
|
-
in:run see:description "N3
|
|
52
|
-
in:run see:compiler "
|
|
51
|
+
in:run see:description "N3 version of the privacy-preserving eco route insight. The JSON\ninput remains the data-input sidecar; this source compiles the local decision\nand signed-envelope explanation." .
|
|
52
|
+
in:run see:compiler "Eyeling RDF/TriG input sidecar" .
|
|
53
53
|
in:run see:inputFacts 33 .
|
|
54
54
|
in:run see:compiledRules 2 .
|
|
55
55
|
in:run see:compiledBackwardRules 0 .
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
@prefix : <https://eyereasoner.github.io/
|
|
1
|
+
@prefix : <https://eyereasoner.github.io/eyeling/examples/genetic-knapsack-selection#> .
|
|
2
2
|
@prefix math: <http://www.w3.org/2000/10/swap/math#> .
|
|
3
3
|
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
|
|
4
4
|
@prefix string: <http://www.w3.org/2000/10/swap/string#> .
|
|
5
5
|
@prefix see: <https://example.org/see#> .
|
|
6
6
|
@prefix in: <https://example.org/see/input#> .
|
|
7
7
|
|
|
8
|
-
# Formal
|
|
8
|
+
# Formal Eyeling input evidence in RDF 1.2 TriG.
|
|
9
9
|
# The generated runner reads this TriG evidence directly.
|
|
10
10
|
|
|
11
11
|
:Run :capacity 50 .
|
|
@@ -29,8 +29,8 @@ in:metadata {
|
|
|
29
29
|
in:run see:title "Genetic Knapsack Selection" .
|
|
30
30
|
in:run see:sourceFile "examples/n3/genetic_knapsack_selection.n3" .
|
|
31
31
|
in:run see:sourceSHA256 "c8fb351156e7656f2e3600f0d1eaf8a624742a91f688425564822cea78530855" .
|
|
32
|
-
in:run see:description "N3
|
|
33
|
-
in:run see:compiler "
|
|
32
|
+
in:run see:description "N3 version of the deterministic one-bit mutation knapsack example.\nThe original item list JSON is preserved as the data-input sidecar." .
|
|
33
|
+
in:run see:compiler "Eyeling RDF/TriG input sidecar" .
|
|
34
34
|
in:run see:inputFacts 14 .
|
|
35
35
|
in:run see:compiledRules 2 .
|
|
36
36
|
in:run see:compiledBackwardRules 0 .
|
package/{see/examples/input/rc_discharge_envelope.trig → examples/input/rc-discharge-envelope.trig}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
@prefix : <https://eyereasoner.github.io/
|
|
1
|
+
@prefix : <https://eyereasoner.github.io/eyeling/examples/rc-discharge-envelope#> .
|
|
2
2
|
@prefix math: <http://www.w3.org/2000/10/swap/math#> .
|
|
3
3
|
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
|
|
4
4
|
@prefix string: <http://www.w3.org/2000/10/swap/string#> .
|
|
5
5
|
@prefix see: <https://example.org/see#> .
|
|
6
6
|
@prefix in: <https://example.org/see/input#> .
|
|
7
7
|
|
|
8
|
-
# Formal
|
|
8
|
+
# Formal Eyeling input evidence in RDF 1.2 TriG.
|
|
9
9
|
# The generated runner reads this TriG evidence directly.
|
|
10
10
|
|
|
11
11
|
:case :samplePeriod 0.025 .
|
|
@@ -27,8 +27,8 @@ in:metadata {
|
|
|
27
27
|
in:run see:title "RC Discharge Envelope" .
|
|
28
28
|
in:run see:sourceFile "examples/n3/rc_discharge_envelope.n3" .
|
|
29
29
|
in:run see:sourceSHA256 "41acff69cd2994230faedf5a466b4c43d47cdff9dc6d834baecd9865979160b8" .
|
|
30
|
-
in:run see:description "Certify when a sampled RC capacitor is guaranteed below tolerance using an\nupper decay bound. The witness is derived by N3 rules and
|
|
31
|
-
in:run see:compiler "
|
|
30
|
+
in:run see:description "Certify when a sampled RC capacitor is guaranteed below tolerance using an\nupper decay bound. The witness is derived by N3 rules and run by Eyeling." .
|
|
31
|
+
in:run see:compiler "Eyeling RDF/TriG input sidecar" .
|
|
32
32
|
in:run see:inputFacts 12 .
|
|
33
33
|
in:run see:compiledRules 6 .
|
|
34
34
|
in:run see:compiledBackwardRules 0 .
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
VERSION "1.2"
|
|
2
2
|
|
|
3
|
-
@prefix : <https://eyereasoner.github.io/
|
|
3
|
+
@prefix : <https://eyereasoner.github.io/eyeling/examples/rdf-dataset#> .
|
|
4
4
|
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
|
|
5
5
|
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
6
6
|
@prefix see: <https://example.org/see#> .
|
|
7
7
|
@prefix in: <https://example.org/see/input#> .
|
|
8
8
|
|
|
9
|
-
# Formal
|
|
9
|
+
# Formal Eyeling input evidence in RDF 1.2 TriG.
|
|
10
10
|
# The generated runner reads this TriG evidence directly.
|
|
11
11
|
|
|
12
12
|
:sensor :reports :overheating .
|
|
@@ -24,8 +24,8 @@ in:metadata {
|
|
|
24
24
|
in:run see:title "RDF dataset compatibility" .
|
|
25
25
|
in:run see:sourceFile "examples/n3/rdf_dataset.n3" .
|
|
26
26
|
in:run see:sourceSHA256 "76035a24eb72fc1d28a5e1f3021baefee0dde667aa8fc9f2b0a111f9c773b744" .
|
|
27
|
-
in:run see:description "RDF 1.1 named graph data and RDF 1.2 triple terms are normalized to ordinary N3 graph terms before
|
|
28
|
-
in:run see:compiler "
|
|
27
|
+
in:run see:description "RDF 1.1 named graph data and RDF 1.2 triple terms are normalized to ordinary N3 graph terms before Eyeling reads the derivation." .
|
|
28
|
+
in:run see:compiler "Eyeling RDF/TriG input sidecar" .
|
|
29
29
|
in:run see:inputFacts 4 .
|
|
30
30
|
in:run see:compiledRules 1 .
|
|
31
31
|
in:run see:compiledBackwardRules 0 .
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@prefix : <https://eyereasoner.github.io/
|
|
1
|
+
@prefix : <https://eyereasoner.github.io/eyeling/examples/rdf-message-flow#> .
|
|
2
2
|
@prefix msg: <https://example.org/msg#> .
|
|
3
3
|
@prefix prov: <http://www.w3.org/ns/prov#> .
|
|
4
4
|
@prefix sosa: <http://www.w3.org/ns/sosa/> .
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
@prefix see: <https://example.org/see#> .
|
|
11
11
|
@prefix in: <https://example.org/see/input#> .
|
|
12
12
|
|
|
13
|
-
# Formal
|
|
13
|
+
# Formal Eyeling input evidence in RDF 1.2 TriG.
|
|
14
14
|
# The generated runner reads this TriG evidence directly.
|
|
15
15
|
|
|
16
16
|
:temperatureFlow rdf:type msg:MessageStream .
|
|
@@ -91,7 +91,7 @@ in:metadata {
|
|
|
91
91
|
in:run see:sourceFile "examples/n3/rdf_message_flow.n3" .
|
|
92
92
|
in:run see:sourceSHA256 "e4e534c8ac3c2aa276e7158cca8d3146531879033f73685c302b486be2ab0099" .
|
|
93
93
|
in:run see:description "A companion to rdf_messages.n3. This example focuses on a live stream where\nRDF Messages continuously flow through a small processing pipeline. The next\nmessage is released only after the current message reaches the sink, so the\nstream behaves as an ordered, replayable flow rather than a single merged RDF\ngraph." .
|
|
94
|
-
in:run see:compiler "
|
|
94
|
+
in:run see:compiler "Eyeling RDF/TriG input sidecar" .
|
|
95
95
|
in:run see:inputFacts 42 .
|
|
96
96
|
in:run see:compiledRules 9 .
|
|
97
97
|
in:run see:compiledBackwardRules 0 .
|