eyeling 1.24.4 → 1.24.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/HANDBOOK.md +2 -101
- package/README.md +2 -2
- package/dist/browser/eyeling.browser.js +256 -4
- package/examples/annotation.n3 +3 -4
- package/{see/examples/n3/backward_recursion.n3 → examples/backward-recursion.n3} +0 -2
- package/examples/collection.n3 +1 -2
- package/examples/context-association.n3 +56 -30
- 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/{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/backward-recursion.n3 +4 -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 +256 -4
- package/lib/builtins.js +6 -0
- package/lib/lexer.js +250 -4
- package/package.json +4 -7
- package/test/api.test.js +65 -8
- package/test/examples.test.js +22 -2
- package/test/package.test.js +16 -2
- package/examples/arcling/README.md +0 -11
- package/examples/input/annotation.ttl +0 -6
- package/examples/input/collection.ttl +0 -13
- package/examples/input/reifies.ttl +0 -10
- package/examples/input/triple-term.ttl +0 -8
- package/examples/output/triple-term.n3 +0 -0
- package/examples/reifies.n3 +0 -8
- package/examples/triple-term.n3 +0 -7
- 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/annotation.n3 +0 -7
- 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/examples/output/{reifies.n3 → builtin-coverage.n3} +0 -0
package/see/examples/doc/age.md
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# Age checker
|
|
2
|
-
|
|
3
|
-
Generated by `see.js` from a Notation3 source file.
|
|
4
|
-
|
|
5
|
-
Is the age of a person above some duration?
|
|
6
|
-
|
|
7
|
-
## Compilation summary
|
|
8
|
-
|
|
9
|
-
- Example name: `age`
|
|
10
|
-
- Input facts emitted: 1
|
|
11
|
-
- Forward rules compiled: 0
|
|
12
|
-
- Backward predicate rules compiled: 1
|
|
13
|
-
- Fuses compiled: 0
|
|
14
|
-
- Predicate count: 6
|
|
15
|
-
|
|
16
|
-
## Built-ins used
|
|
17
|
-
|
|
18
|
-
- `math:difference`
|
|
19
|
-
- `math:greaterThan`
|
|
20
|
-
|
|
21
|
-
## Runtime model
|
|
22
|
-
|
|
23
|
-
The generated `examples/age.js` is a specialized JavaScript derivation program. For ordinary sources, `see.js` emits the source facts as `examples/input/age.trig`. For rules-only sources, generation can reuse an existing external evidence file such as `examples/input/age.trig` or `examples/input/age.trig`. The runner reads that TriG evidence directly and performs a local fixpoint derivation; it does not parse the program source or call an external reasoner.
|
|
24
|
-
|
|
25
|
-
## Output model
|
|
26
|
-
|
|
27
|
-
Running `node examples/age.js` produces a SEE-style Markdown report with an **Entailment** section, an **Explanation** section, and a **Formal TriG Output** section containing the selected derived/query facts.
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# Annotation
|
|
2
|
-
|
|
3
|
-
Generated by `see.js` from a Notation3 source file.
|
|
4
|
-
|
|
5
|
-
## Compilation summary
|
|
6
|
-
|
|
7
|
-
- Example name: `annotation`
|
|
8
|
-
- Input facts emitted: 4
|
|
9
|
-
- Forward rules compiled: 0
|
|
10
|
-
- Backward predicate rules compiled: 0
|
|
11
|
-
- Fuses compiled: 0
|
|
12
|
-
- Predicate count: 4
|
|
13
|
-
|
|
14
|
-
## Built-ins used
|
|
15
|
-
|
|
16
|
-
- `log:nameOf`
|
|
17
|
-
|
|
18
|
-
## Runtime model
|
|
19
|
-
|
|
20
|
-
The generated `examples/annotation.js` is a specialized JavaScript derivation program. For ordinary sources, `see.js` emits the source facts as `examples/input/annotation.trig`. For rules-only sources, generation can reuse an existing external evidence file such as `examples/input/annotation.trig` or `examples/input/annotation.trig`. The runner reads that TriG evidence directly and performs a local fixpoint derivation; it does not parse the program source or call an external reasoner.
|
|
21
|
-
|
|
22
|
-
## Output model
|
|
23
|
-
|
|
24
|
-
Running `node examples/annotation.js` produces a SEE-style Markdown report with an **Entailment** section, an **Explanation** section, and a **Formal TriG Output** section containing the selected derived/query facts.
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# Backward rule example
|
|
2
|
-
|
|
3
|
-
Generated by `see.js` from a Notation3 source file.
|
|
4
|
-
|
|
5
|
-
See https://www.w3.org/2000/10/swap/doc/tutorial-1.pdf page 17
|
|
6
|
-
|
|
7
|
-
## Compilation summary
|
|
8
|
-
|
|
9
|
-
- Example name: `backward`
|
|
10
|
-
- Input facts emitted: 0
|
|
11
|
-
- Forward rules compiled: 1
|
|
12
|
-
- Backward predicate rules compiled: 1
|
|
13
|
-
- Fuses compiled: 0
|
|
14
|
-
- Predicate count: 3
|
|
15
|
-
|
|
16
|
-
## Built-ins used
|
|
17
|
-
|
|
18
|
-
- `math:greaterThan`
|
|
19
|
-
|
|
20
|
-
## Runtime model
|
|
21
|
-
|
|
22
|
-
The generated `examples/backward.js` is a specialized JavaScript derivation program. For ordinary sources, `see.js` emits the source facts as `examples/input/backward.trig`. For rules-only sources, generation can reuse an existing external evidence file such as `examples/input/backward.trig` or `examples/input/backward.trig`. The runner reads that TriG evidence directly and performs a local fixpoint derivation; it does not parse the program source or call an external reasoner.
|
|
23
|
-
|
|
24
|
-
## Output model
|
|
25
|
-
|
|
26
|
-
Running `node examples/backward.js` produces a SEE-style Markdown report with an **Entailment** section, an **Explanation** section, and a **Formal TriG Output** section containing the selected derived/query facts.
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# Backward recursion coverage
|
|
2
|
-
|
|
3
|
-
Generated by `see.js` from a Notation3 source file.
|
|
4
|
-
|
|
5
|
-
Demonstrates recursive <= rules compiled into specialized JavaScript.
|
|
6
|
-
|
|
7
|
-
## Compilation summary
|
|
8
|
-
|
|
9
|
-
- Example name: `backward_recursion`
|
|
10
|
-
- Input facts emitted: 2
|
|
11
|
-
- Forward rules compiled: 1
|
|
12
|
-
- Backward predicate rules compiled: 2
|
|
13
|
-
- Fuses compiled: 0
|
|
14
|
-
- Predicate count: 3
|
|
15
|
-
|
|
16
|
-
## Built-ins used
|
|
17
|
-
|
|
18
|
-
- none
|
|
19
|
-
|
|
20
|
-
## Runtime model
|
|
21
|
-
|
|
22
|
-
The generated `examples/backward_recursion.js` is a specialized JavaScript derivation program. For ordinary sources, `see.js` emits the source facts as `examples/input/backward_recursion.trig`. For rules-only sources, generation can reuse an existing external evidence file such as `examples/input/backward-recursion.trig` or `examples/input/backward_recursion.trig`. The runner reads that TriG evidence directly and performs a local fixpoint derivation; it does not parse the program source or call an external reasoner.
|
|
23
|
-
|
|
24
|
-
## Output model
|
|
25
|
-
|
|
26
|
-
Running `node examples/backward_recursion.js` produces a SEE-style Markdown report with an **Entailment** section, an **Explanation** section, and a **Formal TriG Output** section containing the selected derived/query facts.
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
# Bayes Diagnosis
|
|
2
|
-
|
|
3
|
-
Generated by `see.js` from a Notation3 source file.
|
|
4
|
-
|
|
5
|
-
Naive Bayes diagnosis example, adapted from Eyeling's bayes-diagnosis.n3.
|
|
6
|
-
The facts and rules compute unnormalized likelihoods, normalize them into
|
|
7
|
-
posterior probabilities, and emit a SEE report for the highest posterior.
|
|
8
|
-
Values are illustrative only and are not medical advice.
|
|
9
|
-
|
|
10
|
-
## Compilation summary
|
|
11
|
-
|
|
12
|
-
- Example name: `bayes_diagnosis`
|
|
13
|
-
- Input facts emitted: 85
|
|
14
|
-
- Forward rules compiled: 4
|
|
15
|
-
- Backward predicate rules compiled: 5
|
|
16
|
-
- Fuses compiled: 4
|
|
17
|
-
- Predicate count: 34
|
|
18
|
-
|
|
19
|
-
## Built-ins used
|
|
20
|
-
|
|
21
|
-
- `list:firstRest`
|
|
22
|
-
- `list:iterate`
|
|
23
|
-
- `list:map`
|
|
24
|
-
- `list:memberAt`
|
|
25
|
-
- `log:outputString`
|
|
26
|
-
- `math:difference`
|
|
27
|
-
- `math:greaterThan`
|
|
28
|
-
- `math:lessThan`
|
|
29
|
-
- `math:notLessThan`
|
|
30
|
-
- `math:product`
|
|
31
|
-
- `math:quotient`
|
|
32
|
-
- `math:sum`
|
|
33
|
-
- `string:format`
|
|
34
|
-
|
|
35
|
-
## Runtime model
|
|
36
|
-
|
|
37
|
-
The generated `examples/bayes_diagnosis.js` is a specialized JavaScript derivation program. For ordinary sources, `see.js` emits the source facts as `examples/input/bayes_diagnosis.trig`. For rules-only sources, generation can reuse an existing external evidence file such as `examples/input/bayes-diagnosis.trig` or `examples/input/bayes_diagnosis.trig`. The runner reads that TriG evidence directly and performs a local fixpoint derivation; it does not parse the program source or call an external reasoner.
|
|
38
|
-
|
|
39
|
-
## Output model
|
|
40
|
-
|
|
41
|
-
Running `node examples/bayes_diagnosis.js` produces a SEE-style Markdown report with an **Entailment** section, an **Explanation** section, and a **Formal TriG Output** section containing the selected derived/query facts.
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# Bayes Therapy
|
|
2
|
-
|
|
3
|
-
Generated by `see.js` from a Notation3 source file.
|
|
4
|
-
|
|
5
|
-
Extends the Bayesian diagnosis model with a therapy utility layer. Adapted
|
|
6
|
-
from Eyeling's bayes-therapy.n3. Values are illustrative only and are not
|
|
7
|
-
medical advice.
|
|
8
|
-
|
|
9
|
-
## Compilation summary
|
|
10
|
-
|
|
11
|
-
- Example name: `bayes_therapy`
|
|
12
|
-
- Input facts emitted: 104
|
|
13
|
-
- Forward rules compiled: 5
|
|
14
|
-
- Backward predicate rules compiled: 15
|
|
15
|
-
- Fuses compiled: 8
|
|
16
|
-
- Predicate count: 45
|
|
17
|
-
|
|
18
|
-
## Built-ins used
|
|
19
|
-
|
|
20
|
-
- `list:firstRest`
|
|
21
|
-
- `list:iterate`
|
|
22
|
-
- `list:map`
|
|
23
|
-
- `list:memberAt`
|
|
24
|
-
- `log:outputString`
|
|
25
|
-
- `math:difference`
|
|
26
|
-
- `math:greaterThan`
|
|
27
|
-
- `math:lessThan`
|
|
28
|
-
- `math:notLessThan`
|
|
29
|
-
- `math:product`
|
|
30
|
-
- `math:quotient`
|
|
31
|
-
- `math:sum`
|
|
32
|
-
- `string:format`
|
|
33
|
-
|
|
34
|
-
## Runtime model
|
|
35
|
-
|
|
36
|
-
The generated `examples/bayes_therapy.js` is a specialized JavaScript derivation program. For ordinary sources, `see.js` emits the source facts as `examples/input/bayes_therapy.trig`. For rules-only sources, generation can reuse an existing external evidence file such as `examples/input/bayes-therapy.trig` or `examples/input/bayes_therapy.trig`. The runner reads that TriG evidence directly and performs a local fixpoint derivation; it does not parse the program source or call an external reasoner.
|
|
37
|
-
|
|
38
|
-
## Output model
|
|
39
|
-
|
|
40
|
-
Running `node examples/bayes_therapy.js` produces a SEE-style Markdown report with an **Entailment** section, an **Explanation** section, and a **Formal TriG Output** section containing the selected derived/query facts.
|
package/see/examples/doc/bmi.md
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# BMI — Body Mass Index example.
|
|
2
|
-
|
|
3
|
-
Generated by `see.js` from a Notation3 source file.
|
|
4
|
-
|
|
5
|
-
This example turns a familiar health calculation into a small, inspectable
|
|
6
|
-
SEE example. It normalizes either metric or US inputs, computes BMI, assigns
|
|
7
|
-
a WHO adult category, and derives a healthy-range weight band for the given
|
|
8
|
-
height. The report explains the result and includes independent validations for
|
|
9
|
-
boundary handling and category behavior.
|
|
10
|
-
For reproducibility and documentation only; not medical advice.
|
|
11
|
-
|
|
12
|
-
## Compilation summary
|
|
13
|
-
|
|
14
|
-
- Example name: `bmi`
|
|
15
|
-
- Input facts emitted: 3
|
|
16
|
-
- Forward rules compiled: 12
|
|
17
|
-
- Backward predicate rules compiled: 0
|
|
18
|
-
- Fuses compiled: 1
|
|
19
|
-
- Predicate count: 27
|
|
20
|
-
|
|
21
|
-
## Built-ins used
|
|
22
|
-
|
|
23
|
-
- `log:notEqualTo`
|
|
24
|
-
- `log:outputString`
|
|
25
|
-
- `math:lessThan`
|
|
26
|
-
- `math:notLessThan`
|
|
27
|
-
- `math:product`
|
|
28
|
-
- `math:quotient`
|
|
29
|
-
- `math:rounded`
|
|
30
|
-
- `string:concatenation`
|
|
31
|
-
|
|
32
|
-
## Runtime model
|
|
33
|
-
|
|
34
|
-
The generated `examples/bmi.js` is a specialized JavaScript derivation program. For ordinary sources, `see.js` emits the source facts as `examples/input/bmi.trig`. For rules-only sources, generation can reuse an existing external evidence file such as `examples/input/bmi.trig` or `examples/input/bmi.trig`. The runner reads that TriG evidence directly and performs a local fixpoint derivation; it does not parse the program source or call an external reasoner.
|
|
35
|
-
|
|
36
|
-
## Output model
|
|
37
|
-
|
|
38
|
-
Running `node examples/bmi.js` produces a SEE-style Markdown report with an **Entailment** section, an **Explanation** section, and a **Formal TriG Output** section containing the selected derived/query facts.
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
# Builtin coverage smoke
|
|
2
|
-
|
|
3
|
-
Generated by `see.js` from a Notation3 source file.
|
|
4
|
-
|
|
5
|
-
Exercises math, string, list, crypto, time, and log builtins in compiled JavaScript.
|
|
6
|
-
|
|
7
|
-
## Compilation summary
|
|
8
|
-
|
|
9
|
-
- Example name: `builtin_coverage`
|
|
10
|
-
- Input facts emitted: 0
|
|
11
|
-
- Forward rules compiled: 1
|
|
12
|
-
- Backward predicate rules compiled: 0
|
|
13
|
-
- Fuses compiled: 0
|
|
14
|
-
- Predicate count: 58
|
|
15
|
-
|
|
16
|
-
## Built-ins used
|
|
17
|
-
|
|
18
|
-
- `crypto:sha256`
|
|
19
|
-
- `list:append`
|
|
20
|
-
- `list:first`
|
|
21
|
-
- `list:in`
|
|
22
|
-
- `list:last`
|
|
23
|
-
- `list:length`
|
|
24
|
-
- `list:member`
|
|
25
|
-
- `list:remove`
|
|
26
|
-
- `list:rest`
|
|
27
|
-
- `list:reverse`
|
|
28
|
-
- `log:conjunction`
|
|
29
|
-
- `math:absoluteValue`
|
|
30
|
-
- `math:degrees`
|
|
31
|
-
- `math:difference`
|
|
32
|
-
- `math:integerQuotient`
|
|
33
|
-
- `math:negation`
|
|
34
|
-
- `math:product`
|
|
35
|
-
- `math:quotient`
|
|
36
|
-
- `math:remainder`
|
|
37
|
-
- `math:sum`
|
|
38
|
-
- `string:charAt`
|
|
39
|
-
- `string:concatenation`
|
|
40
|
-
- `string:contains`
|
|
41
|
-
- `string:containsIgnoringCase`
|
|
42
|
-
- `string:format`
|
|
43
|
-
- `string:length`
|
|
44
|
-
- `string:scrape`
|
|
45
|
-
- `string:setCharAt`
|
|
46
|
-
|
|
47
|
-
## Runtime model
|
|
48
|
-
|
|
49
|
-
The generated `examples/builtin_coverage.js` is a specialized JavaScript derivation program. For ordinary sources, `see.js` emits the source facts as `examples/input/builtin_coverage.trig`. For rules-only sources, generation can reuse an existing external evidence file such as `examples/input/builtin-coverage.trig` or `examples/input/builtin_coverage.trig`. The runner reads that TriG evidence directly and performs a local fixpoint derivation; it does not parse the program source or call an external reasoner.
|
|
50
|
-
|
|
51
|
-
## Output model
|
|
52
|
-
|
|
53
|
-
Running `node examples/builtin_coverage.js` produces a SEE-style Markdown report with an **Entailment** section, an **Explanation** section, and a **Formal TriG Output** section containing the selected derived/query facts.
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# Collection
|
|
2
|
-
|
|
3
|
-
Generated by `see.js` from a Notation3 source file.
|
|
4
|
-
|
|
5
|
-
## Compilation summary
|
|
6
|
-
|
|
7
|
-
- Example name: `collection`
|
|
8
|
-
- Input facts emitted: 2
|
|
9
|
-
- Forward rules compiled: 0
|
|
10
|
-
- Backward predicate rules compiled: 0
|
|
11
|
-
- Fuses compiled: 0
|
|
12
|
-
- Predicate count: 2
|
|
13
|
-
|
|
14
|
-
## Built-ins used
|
|
15
|
-
|
|
16
|
-
- none
|
|
17
|
-
|
|
18
|
-
## Runtime model
|
|
19
|
-
|
|
20
|
-
The generated `examples/collection.js` is a specialized JavaScript derivation program. For ordinary sources, `see.js` emits the source facts as `examples/input/collection.trig`. For rules-only sources, generation can reuse an existing external evidence file such as `examples/input/collection.trig` or `examples/input/collection.trig`. The runner reads that TriG evidence directly and performs a local fixpoint derivation; it does not parse the program source or call an external reasoner.
|
|
21
|
-
|
|
22
|
-
## Output model
|
|
23
|
-
|
|
24
|
-
Running `node examples/collection.js` produces a SEE-style Markdown report with an **Entailment** section, an **Explanation** section, and a **Formal TriG Output** section containing the selected derived/query facts.
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# Complex numbers
|
|
2
|
-
|
|
3
|
-
Generated by `see.js` from a Notation3 source file.
|
|
4
|
-
|
|
5
|
-
See https://en.wikipedia.org/wiki/Complex_number
|
|
6
|
-
|
|
7
|
-
## Compilation summary
|
|
8
|
-
|
|
9
|
-
- Example name: `complex`
|
|
10
|
-
- Input facts emitted: 0
|
|
11
|
-
- Forward rules compiled: 1
|
|
12
|
-
- Backward predicate rules compiled: 8
|
|
13
|
-
- Fuses compiled: 0
|
|
14
|
-
- Predicate count: 19
|
|
15
|
-
|
|
16
|
-
## Built-ins used
|
|
17
|
-
|
|
18
|
-
- `math:absoluteValue`
|
|
19
|
-
- `math:acos`
|
|
20
|
-
- `math:asin`
|
|
21
|
-
- `math:cos`
|
|
22
|
-
- `math:difference`
|
|
23
|
-
- `math:exponentiation`
|
|
24
|
-
- `math:lessThan`
|
|
25
|
-
- `math:negation`
|
|
26
|
-
- `math:notLessThan`
|
|
27
|
-
- `math:product`
|
|
28
|
-
- `math:quotient`
|
|
29
|
-
- `math:sin`
|
|
30
|
-
- `math:sum`
|
|
31
|
-
|
|
32
|
-
## Runtime model
|
|
33
|
-
|
|
34
|
-
The generated `examples/complex.js` is a specialized JavaScript derivation program. For ordinary sources, `see.js` emits the source facts as `examples/input/complex.trig`. For rules-only sources, generation can reuse an existing external evidence file such as `examples/input/complex.trig` or `examples/input/complex.trig`. The runner reads that TriG evidence directly and performs a local fixpoint derivation; it does not parse the program source or call an external reasoner.
|
|
35
|
-
|
|
36
|
-
## Output model
|
|
37
|
-
|
|
38
|
-
Running `node examples/complex.js` produces a SEE-style Markdown report with an **Entailment** section, an **Explanation** section, and a **Formal TriG Output** section containing the selected derived/query facts.
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# Complex Matrix Stability
|
|
2
|
-
|
|
3
|
-
Generated by `see.js` from a Notation3 source file.
|
|
4
|
-
|
|
5
|
-
Diagonal 2x2 complex matrices are classified for discrete-time stability.
|
|
6
|
-
This adapts the Eyeling complex matrix example as a committed SEE N3
|
|
7
|
-
source that compiles to a standalone JavaScript example.
|
|
8
|
-
|
|
9
|
-
## Compilation summary
|
|
10
|
-
|
|
11
|
-
- Example name: `complex_matrix_stability`
|
|
12
|
-
- Input facts emitted: 40
|
|
13
|
-
- Forward rules compiled: 2
|
|
14
|
-
- Backward predicate rules compiled: 15
|
|
15
|
-
- Fuses compiled: 0
|
|
16
|
-
- Predicate count: 28
|
|
17
|
-
|
|
18
|
-
## Built-ins used
|
|
19
|
-
|
|
20
|
-
- `log:outputString`
|
|
21
|
-
- `math:difference`
|
|
22
|
-
- `math:greaterThan`
|
|
23
|
-
- `math:lessThan`
|
|
24
|
-
- `math:notLessThan`
|
|
25
|
-
- `math:product`
|
|
26
|
-
- `math:sum`
|
|
27
|
-
- `string:format`
|
|
28
|
-
|
|
29
|
-
## Runtime model
|
|
30
|
-
|
|
31
|
-
The generated `examples/complex_matrix_stability.js` is a specialized JavaScript derivation program. For ordinary sources, `see.js` emits the source facts as `examples/input/complex_matrix_stability.trig`. For rules-only sources, generation can reuse an existing external evidence file such as `examples/input/complex-matrix-stability.trig` or `examples/input/complex_matrix_stability.trig`. The runner reads that TriG evidence directly and performs a local fixpoint derivation; it does not parse the program source or call an external reasoner.
|
|
32
|
-
|
|
33
|
-
## Output model
|
|
34
|
-
|
|
35
|
-
Running `node examples/complex_matrix_stability.js` produces a SEE-style Markdown report with an **Entailment** section, an **Explanation** section, and a **Formal TriG Output** section containing the selected derived/query facts.
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# Composition of injective functions is injective.
|
|
2
|
-
|
|
3
|
-
Generated by `see.js` from a Notation3 source file.
|
|
4
|
-
|
|
5
|
-
## Compilation summary
|
|
6
|
-
|
|
7
|
-
- Example name: `composition_of_injective_functions_is_injective`
|
|
8
|
-
- Input facts emitted: 12
|
|
9
|
-
- Forward rules compiled: 8
|
|
10
|
-
- Backward predicate rules compiled: 0
|
|
11
|
-
- Fuses compiled: 0
|
|
12
|
-
- Predicate count: 10
|
|
13
|
-
|
|
14
|
-
## Built-ins used
|
|
15
|
-
|
|
16
|
-
- `log:notEqualTo`
|
|
17
|
-
|
|
18
|
-
## Runtime model
|
|
19
|
-
|
|
20
|
-
The generated `examples/composition_of_injective_functions_is_injective.js` is a specialized JavaScript derivation program. For ordinary sources, `see.js` emits the source facts as `examples/input/composition_of_injective_functions_is_injective.trig`. For rules-only sources, generation can reuse an existing external evidence file such as `examples/input/composition-of-injective-functions-is-injective.trig` or `examples/input/composition_of_injective_functions_is_injective.trig`. The runner reads that TriG evidence directly and performs a local fixpoint derivation; it does not parse the program source or call an external reasoner.
|
|
21
|
-
|
|
22
|
-
## Output model
|
|
23
|
-
|
|
24
|
-
Running `node examples/composition_of_injective_functions_is_injective.js` produces a SEE-style Markdown report with an **Entailment** section, an **Explanation** section, and a **Formal TriG Output** section containing the selected derived/query facts.
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# Control System
|
|
2
|
-
|
|
3
|
-
Generated by `see.js` from a Notation3 source file.
|
|
4
|
-
|
|
5
|
-
Compact SEE version of the EYE reasoning/control-system example.
|
|
6
|
-
|
|
7
|
-
## Compilation summary
|
|
8
|
-
|
|
9
|
-
- Example name: `control_system`
|
|
10
|
-
- Input facts emitted: 7
|
|
11
|
-
- Forward rules compiled: 2
|
|
12
|
-
- Backward predicate rules compiled: 2
|
|
13
|
-
- Fuses compiled: 0
|
|
14
|
-
- Predicate count: 15
|
|
15
|
-
|
|
16
|
-
## Built-ins used
|
|
17
|
-
|
|
18
|
-
- `math:difference`
|
|
19
|
-
- `math:exponentiation`
|
|
20
|
-
- `math:lessThan`
|
|
21
|
-
- `math:notLessThan`
|
|
22
|
-
- `math:product`
|
|
23
|
-
- `math:quotient`
|
|
24
|
-
- `math:sum`
|
|
25
|
-
|
|
26
|
-
## Runtime model
|
|
27
|
-
|
|
28
|
-
The generated `examples/control_system.js` is a specialized JavaScript derivation program. For ordinary sources, `see.js` emits the source facts as `examples/input/control_system.trig`. For rules-only sources, generation can reuse an existing external evidence file such as `examples/input/control-system.trig` or `examples/input/control_system.trig`. The runner reads that TriG evidence directly and performs a local fixpoint derivation; it does not parse the program source or call an external reasoner.
|
|
29
|
-
|
|
30
|
-
## Output model
|
|
31
|
-
|
|
32
|
-
Running `node examples/control_system.js` produces a SEE-style Markdown report with an **Entailment** section, an **Explanation** section, and a **Formal TriG Output** section containing the selected derived/query facts.
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# crypto builtins tests
|
|
2
|
-
|
|
3
|
-
Generated by `see.js` from a Notation3 source file.
|
|
4
|
-
|
|
5
|
-
## Compilation summary
|
|
6
|
-
|
|
7
|
-
- Example name: `crypto_builtins_tests`
|
|
8
|
-
- Input facts emitted: 0
|
|
9
|
-
- Forward rules compiled: 4
|
|
10
|
-
- Backward predicate rules compiled: 0
|
|
11
|
-
- Fuses compiled: 0
|
|
12
|
-
- Predicate count: 5
|
|
13
|
-
|
|
14
|
-
## Built-ins used
|
|
15
|
-
|
|
16
|
-
- `crypto:md5`
|
|
17
|
-
- `crypto:sha`
|
|
18
|
-
- `crypto:sha256`
|
|
19
|
-
- `crypto:sha512`
|
|
20
|
-
|
|
21
|
-
## Runtime model
|
|
22
|
-
|
|
23
|
-
The generated `examples/crypto_builtins_tests.js` is a specialized JavaScript derivation program. For ordinary sources, `see.js` emits the source facts as `examples/input/crypto_builtins_tests.trig`. For rules-only sources, generation can reuse an existing external evidence file such as `examples/input/crypto-builtins-tests.trig` or `examples/input/crypto_builtins_tests.trig`. The runner reads that TriG evidence directly and performs a local fixpoint derivation; it does not parse the program source or call an external reasoner.
|
|
24
|
-
|
|
25
|
-
## Output model
|
|
26
|
-
|
|
27
|
-
Running `node examples/crypto_builtins_tests.js` produces a SEE-style Markdown report with an **Entailment** section, an **Explanation** section, and a **Formal TriG Output** section containing the selected derived/query facts.
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# Delfour
|
|
2
|
-
|
|
3
|
-
Generated by `see.js` from a Notation3 source file.
|
|
4
|
-
|
|
5
|
-
N3-compiled version of the Delfour insight-economy example. A private phone
|
|
6
|
-
condition is desensitized into a scoped low-sugar insight; the scanner may use
|
|
7
|
-
it for shopping assistance, but not for marketing.
|
|
8
|
-
|
|
9
|
-
## Compilation summary
|
|
10
|
-
|
|
11
|
-
- Example name: `delfour`
|
|
12
|
-
- Input facts emitted: 61
|
|
13
|
-
- Forward rules compiled: 16
|
|
14
|
-
- Backward predicate rules compiled: 0
|
|
15
|
-
- Fuses compiled: 3
|
|
16
|
-
- Predicate count: 62
|
|
17
|
-
|
|
18
|
-
## Built-ins used
|
|
19
|
-
|
|
20
|
-
- `crypto:sha256`
|
|
21
|
-
- `log:notEqualTo`
|
|
22
|
-
- `log:notIncludes`
|
|
23
|
-
- `log:outputString`
|
|
24
|
-
- `math:greaterThan`
|
|
25
|
-
- `math:notEqualTo`
|
|
26
|
-
- `math:notGreaterThan`
|
|
27
|
-
- `math:notLessThan`
|
|
28
|
-
- `string:format`
|
|
29
|
-
- `string:notMatches`
|
|
30
|
-
|
|
31
|
-
## Runtime model
|
|
32
|
-
|
|
33
|
-
The generated `examples/delfour.js` is a specialized JavaScript derivation program. For ordinary sources, `see.js` emits the source facts as `examples/input/delfour.trig`. For rules-only sources, generation can reuse an existing external evidence file such as `examples/input/delfour.trig` or `examples/input/delfour.trig`. The runner reads that TriG evidence directly and performs a local fixpoint derivation; it does not parse the program source or call an external reasoner.
|
|
34
|
-
|
|
35
|
-
## Output model
|
|
36
|
-
|
|
37
|
-
Running `node examples/delfour.js` produces a SEE-style Markdown report with an **Entailment** section, an **Explanation** section, and a **Formal TriG Output** section containing the selected derived/query facts.
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
# Digital Product Passport
|
|
2
|
-
|
|
3
|
-
Generated by `see.js` from a Notation3 source file.
|
|
4
|
-
|
|
5
|
-
N3-compiled version of the smartphone Digital Product Passport example. The
|
|
6
|
-
rules fold component mass, recycled content, critical raw materials, public
|
|
7
|
-
documents, lifecycle footprint, and access-policy validations into a public PASS.
|
|
8
|
-
|
|
9
|
-
## Compilation summary
|
|
10
|
-
|
|
11
|
-
- Example name: `digital_product_passport`
|
|
12
|
-
- Input facts emitted: 90
|
|
13
|
-
- Forward rules compiled: 12
|
|
14
|
-
- Backward predicate rules compiled: 0
|
|
15
|
-
- Fuses compiled: 2
|
|
16
|
-
- Predicate count: 53
|
|
17
|
-
|
|
18
|
-
## Built-ins used
|
|
19
|
-
|
|
20
|
-
- `log:notEqualTo`
|
|
21
|
-
- `log:outputString`
|
|
22
|
-
- `math:greaterThan`
|
|
23
|
-
- `math:integerQuotient`
|
|
24
|
-
- `math:notGreaterThan`
|
|
25
|
-
- `math:product`
|
|
26
|
-
- `math:sum`
|
|
27
|
-
- `string:format`
|
|
28
|
-
- `string:notGreaterThan`
|
|
29
|
-
|
|
30
|
-
## Runtime model
|
|
31
|
-
|
|
32
|
-
The generated `examples/digital_product_passport.js` is a specialized JavaScript derivation program. For ordinary sources, `see.js` emits the source facts as `examples/input/digital_product_passport.trig`. For rules-only sources, generation can reuse an existing external evidence file such as `examples/input/digital-product-passport.trig` or `examples/input/digital_product_passport.trig`. The runner reads that TriG evidence directly and performs a local fixpoint derivation; it does not parse the program source or call an external reasoner.
|
|
33
|
-
|
|
34
|
-
## Output model
|
|
35
|
-
|
|
36
|
-
Running `node examples/digital_product_passport.js` produces a SEE-style Markdown report with an **Entailment** section, an **Explanation** section, and a **Formal TriG Output** section containing the selected derived/query facts.
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# Dijkstra's algorithm to find the shortest path
|
|
2
|
-
|
|
3
|
-
Generated by `see.js` from a Notation3 source file.
|
|
4
|
-
|
|
5
|
-
## Compilation summary
|
|
6
|
-
|
|
7
|
-
- Example name: `dijkstra`
|
|
8
|
-
- Input facts emitted: 9
|
|
9
|
-
- Forward rules compiled: 2
|
|
10
|
-
- Backward predicate rules compiled: 3
|
|
11
|
-
- Fuses compiled: 0
|
|
12
|
-
- Predicate count: 9
|
|
13
|
-
|
|
14
|
-
## Built-ins used
|
|
15
|
-
|
|
16
|
-
- `list:append`
|
|
17
|
-
- `list:firstRest`
|
|
18
|
-
- `list:reverse`
|
|
19
|
-
- `list:sort`
|
|
20
|
-
- `log:collectAllIn`
|
|
21
|
-
|
|
22
|
-
## Runtime model
|
|
23
|
-
|
|
24
|
-
The generated `examples/dijkstra.js` is a specialized JavaScript derivation program. For ordinary sources, `see.js` emits the source facts as `examples/input/dijkstra.trig`. For rules-only sources, generation can reuse an existing external evidence file such as `examples/input/dijkstra.trig` or `examples/input/dijkstra.trig`. The runner reads that TriG evidence directly and performs a local fixpoint derivation; it does not parse the program source or call an external reasoner.
|
|
25
|
-
|
|
26
|
-
## Output model
|
|
27
|
-
|
|
28
|
-
Running `node examples/dijkstra.js` produces a SEE-style Markdown report with an **Entailment** section, an **Explanation** section, and a **Formal TriG Output** section containing the selected derived/query facts.
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# Dijkstra Risk Path
|
|
2
|
-
|
|
3
|
-
Generated by `see.js` from a Notation3 source file.
|
|
4
|
-
|
|
5
|
-
N3-compiled version of the risk-adjusted route example. The original JSON
|
|
6
|
-
input is preserved as the data-input sidecar; this source compiles the
|
|
7
|
-
executable derivation and report.
|
|
8
|
-
|
|
9
|
-
## Compilation summary
|
|
10
|
-
|
|
11
|
-
- Example name: `dijkstra_risk_path`
|
|
12
|
-
- Input facts emitted: 21
|
|
13
|
-
- Forward rules compiled: 3
|
|
14
|
-
- Backward predicate rules compiled: 0
|
|
15
|
-
- Fuses compiled: 0
|
|
16
|
-
- Predicate count: 17
|
|
17
|
-
|
|
18
|
-
## Built-ins used
|
|
19
|
-
|
|
20
|
-
- `log:outputString`
|
|
21
|
-
- `math:lessThan`
|
|
22
|
-
- `string:format`
|
|
23
|
-
|
|
24
|
-
## Runtime model
|
|
25
|
-
|
|
26
|
-
The generated `examples/dijkstra_risk_path.js` is a specialized JavaScript derivation program. For ordinary sources, `see.js` emits the source facts as `examples/input/dijkstra_risk_path.trig`. For rules-only sources, generation can reuse an existing external evidence file such as `examples/input/dijkstra-risk-path.trig` or `examples/input/dijkstra_risk_path.trig`. The runner reads that TriG evidence directly and performs a local fixpoint derivation; it does not parse the program source or call an external reasoner.
|
|
27
|
-
|
|
28
|
-
## Output model
|
|
29
|
-
|
|
30
|
-
Running `node examples/dijkstra_risk_path.js` produces a SEE-style Markdown report with an **Entailment** section, an **Explanation** section, and a **Formal TriG Output** section containing the selected derived/query facts.
|
package/see/examples/doc/dog.md
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# Dog license example
|
|
2
|
-
|
|
3
|
-
Generated by `see.js` from a Notation3 source file.
|
|
4
|
-
|
|
5
|
-
If you have more than 4 dogs you need a license.
|
|
6
|
-
|
|
7
|
-
## Compilation summary
|
|
8
|
-
|
|
9
|
-
- Example name: `dog`
|
|
10
|
-
- Input facts emitted: 7
|
|
11
|
-
- Forward rules compiled: 1
|
|
12
|
-
- Backward predicate rules compiled: 0
|
|
13
|
-
- Fuses compiled: 0
|
|
14
|
-
- Predicate count: 5
|
|
15
|
-
|
|
16
|
-
## Built-ins used
|
|
17
|
-
|
|
18
|
-
- `log:collectAllIn`
|
|
19
|
-
- `math:greaterThan`
|
|
20
|
-
- `math:sum`
|
|
21
|
-
|
|
22
|
-
## Runtime model
|
|
23
|
-
|
|
24
|
-
The generated `examples/dog.js` is a specialized JavaScript derivation program. For ordinary sources, `see.js` emits the source facts as `examples/input/dog.trig`. For rules-only sources, generation can reuse an existing external evidence file such as `examples/input/dog.trig` or `examples/input/dog.trig`. The runner reads that TriG evidence directly and performs a local fixpoint derivation; it does not parse the program source or call an external reasoner.
|
|
25
|
-
|
|
26
|
-
## Output model
|
|
27
|
-
|
|
28
|
-
Running `node examples/dog.js` produces a SEE-style Markdown report with an **Entailment** section, an **Explanation** section, and a **Formal TriG Output** section containing the selected derived/query facts.
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# Eco Route Insight
|
|
2
|
-
|
|
3
|
-
Generated by `see.js` from a Notation3 source file.
|
|
4
|
-
|
|
5
|
-
N3-compiled version of the privacy-preserving eco route insight. The JSON
|
|
6
|
-
input remains the data-input sidecar; this source compiles the local decision
|
|
7
|
-
and signed-envelope explanation.
|
|
8
|
-
|
|
9
|
-
## Compilation summary
|
|
10
|
-
|
|
11
|
-
- Example name: `eco_route_insight`
|
|
12
|
-
- Input facts emitted: 33
|
|
13
|
-
- Forward rules compiled: 2
|
|
14
|
-
- Backward predicate rules compiled: 0
|
|
15
|
-
- Fuses compiled: 0
|
|
16
|
-
- Predicate count: 30
|
|
17
|
-
|
|
18
|
-
## Built-ins used
|
|
19
|
-
|
|
20
|
-
- `log:outputString`
|
|
21
|
-
- `math:difference`
|
|
22
|
-
- `math:greaterThan`
|
|
23
|
-
- `math:lessThan`
|
|
24
|
-
- `math:notGreaterThan`
|
|
25
|
-
- `string:format`
|
|
26
|
-
|
|
27
|
-
## Runtime model
|
|
28
|
-
|
|
29
|
-
The generated `examples/eco_route_insight.js` is a specialized JavaScript derivation program. For ordinary sources, `see.js` emits the source facts as `examples/input/eco_route_insight.trig`. For rules-only sources, generation can reuse an existing external evidence file such as `examples/input/eco-route-insight.trig` or `examples/input/eco_route_insight.trig`. The runner reads that TriG evidence directly and performs a local fixpoint derivation; it does not parse the program source or call an external reasoner.
|
|
30
|
-
|
|
31
|
-
## Output model
|
|
32
|
-
|
|
33
|
-
Running `node examples/eco_route_insight.js` produces a SEE-style Markdown report with an **Entailment** section, an **Explanation** section, and a **Formal TriG Output** section containing the selected derived/query facts.
|