eyeling 1.23.4 → 1.24.0
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 +6 -6
- package/README.md +1 -0
- package/dist/browser/eyeling.browser.js +11812 -11836
- package/eyeling.js +40 -12
- package/lib/prelude.js +40 -12
- package/package.json +7 -5
- package/see/README.md +146 -0
- package/see/examples/_see.js +218 -0
- package/see/examples/age.js +1433 -0
- package/see/examples/annotation.js +1294 -0
- package/see/examples/backward.js +1379 -0
- package/see/examples/backward_recursion.js +1478 -0
- package/see/examples/bayes_diagnosis.js +2857 -0
- package/see/examples/bayes_therapy.js +4126 -0
- package/see/examples/bmi.js +3012 -0
- package/see/examples/builtin_coverage.js +2498 -0
- package/see/examples/collection.js +1294 -0
- package/see/examples/complex.js +3736 -0
- package/see/examples/complex_matrix_stability.js +2947 -0
- package/see/examples/composition_of_injective_functions_is_injective.js +2144 -0
- package/see/examples/control_system.js +1892 -0
- package/see/examples/crypto_builtins_tests.js +1463 -0
- package/see/examples/delfour.js +3148 -0
- package/see/examples/digital_product_passport.js +2830 -0
- package/see/examples/dijkstra.js +2044 -0
- package/see/examples/dijkstra_risk_path.js +1848 -0
- package/see/examples/doc/age.md +27 -0
- package/see/examples/doc/annotation.md +24 -0
- package/see/examples/doc/backward.md +26 -0
- package/see/examples/doc/backward_recursion.md +26 -0
- package/see/examples/doc/bayes_diagnosis.md +41 -0
- package/see/examples/doc/bayes_therapy.md +40 -0
- package/see/examples/doc/bmi.md +38 -0
- package/see/examples/doc/builtin_coverage.md +53 -0
- package/see/examples/doc/collection.md +24 -0
- package/see/examples/doc/complex.md +38 -0
- package/see/examples/doc/complex_matrix_stability.md +35 -0
- package/see/examples/doc/composition_of_injective_functions_is_injective.md +24 -0
- package/see/examples/doc/control_system.md +32 -0
- package/see/examples/doc/crypto_builtins_tests.md +27 -0
- package/see/examples/doc/delfour.md +37 -0
- package/see/examples/doc/digital_product_passport.md +36 -0
- package/see/examples/doc/dijkstra.md +28 -0
- package/see/examples/doc/dijkstra_risk_path.md +30 -0
- package/see/examples/doc/dog.md +28 -0
- package/see/examples/doc/eco_route_insight.md +33 -0
- package/see/examples/doc/equals.md +26 -0
- package/see/examples/doc/equivalence_classes_overlap_implies_same_class.md +24 -0
- package/see/examples/doc/euler_identity.md +39 -0
- package/see/examples/doc/ev_roundtrip_planner.md +32 -0
- package/see/examples/doc/existential_rule.md +24 -0
- package/see/examples/doc/expression_eval.md +26 -0
- package/see/examples/doc/family_cousins.md +24 -0
- package/see/examples/doc/fastpow.md +29 -0
- package/see/examples/doc/fibonacci.md +28 -0
- package/see/examples/doc/french_cities.md +28 -0
- package/see/examples/doc/fundamental_theorem_arithmetic.md +36 -0
- package/see/examples/doc/genetic_knapsack_selection.md +29 -0
- package/see/examples/doc/goldbach_1000.md +31 -0
- package/see/examples/doc/good_cobbler.md +27 -0
- package/see/examples/doc/gps.md +35 -0
- package/see/examples/doc/gray_code_counter.md +31 -0
- package/see/examples/doc/greatest_lower_bound_uniqueness.md +24 -0
- package/see/examples/doc/group_inverse_uniqueness.md +24 -0
- package/see/examples/doc/hadamard_approx.md +32 -0
- package/see/examples/doc/hanoi.md +26 -0
- package/see/examples/doc/odrl_dpv_risk_ranked.md +57 -0
- package/see/examples/doc/path_discovery.md +33 -0
- package/see/examples/doc/rc_discharge_envelope.md +33 -0
- package/see/examples/doc/rdf_message_flow.md +35 -0
- package/see/examples/doc/rdf_messages.md +37 -0
- package/see/examples/doc/school_placement_audit.md +31 -0
- package/see/examples/doc/smoke_arithmetic.md +31 -0
- package/see/examples/doc/socrates.md +24 -0
- package/see/examples/doc/wind_turbine.md +37 -0
- package/see/examples/doc/witch.md +28 -0
- package/see/examples/dog.js +1410 -0
- package/see/examples/eco_route_insight.js +2084 -0
- package/see/examples/equals.js +1337 -0
- package/see/examples/equivalence_classes_overlap_implies_same_class.js +1766 -0
- package/see/examples/euler_identity.js +2012 -0
- package/see/examples/ev_roundtrip_planner.js +2536 -0
- package/see/examples/existential_rule.js +1337 -0
- package/see/examples/expression_eval.js +1772 -0
- package/see/examples/family_cousins.js +1560 -0
- package/see/examples/fastpow.js +2181 -0
- package/see/examples/fibonacci.js +1568 -0
- package/see/examples/french_cities.js +1466 -0
- package/see/examples/fundamental_theorem_arithmetic.js +2080 -0
- package/see/examples/genetic_knapsack_selection.js +1717 -0
- package/see/examples/goldbach_1000.js +1772 -0
- package/see/examples/good_cobbler.js +1370 -0
- package/see/examples/gps.js +2787 -0
- package/see/examples/gray_code_counter.js +1615 -0
- package/see/examples/greatest_lower_bound_uniqueness.js +1892 -0
- package/see/examples/group_inverse_uniqueness.js +1871 -0
- package/see/examples/hadamard_approx.js +4391 -0
- package/see/examples/hanoi.js +1599 -0
- package/see/examples/input/age.trig +27 -0
- package/see/examples/input/annotation.trig +31 -0
- package/see/examples/input/backward.trig +25 -0
- package/see/examples/input/backward_recursion.trig +25 -0
- package/see/examples/input/bayes_diagnosis.trig +111 -0
- package/see/examples/input/bayes_therapy.trig +130 -0
- package/see/examples/input/bmi.trig +28 -0
- package/see/examples/input/builtin_coverage.trig +24 -0
- package/see/examples/input/collection.trig +25 -0
- package/see/examples/input/complex.trig +26 -0
- package/see/examples/input/complex_matrix_stability.trig +65 -0
- package/see/examples/input/composition_of_injective_functions_is_injective.trig +35 -0
- package/see/examples/input/control_system.trig +31 -0
- package/see/examples/input/crypto_builtins_tests.trig +25 -0
- package/see/examples/input/delfour.trig +90 -0
- package/see/examples/input/digital_product_passport.trig +116 -0
- package/see/examples/input/dijkstra.trig +34 -0
- package/see/examples/input/dijkstra_risk_path.trig +46 -0
- package/see/examples/input/dog.trig +31 -0
- package/see/examples/input/eco_route_insight.trig +58 -0
- package/see/examples/input/equals.trig +25 -0
- package/see/examples/input/equivalence_classes_overlap_implies_same_class.trig +28 -0
- package/see/examples/input/euler_identity.trig +34 -0
- package/see/examples/input/ev_roundtrip_planner.trig +90 -0
- package/see/examples/input/existential_rule.trig +26 -0
- package/see/examples/input/expression_eval.trig +41 -0
- package/see/examples/input/family_cousins.trig +39 -0
- package/see/examples/input/fastpow.trig +25 -0
- package/see/examples/input/fibonacci.trig +51 -0
- package/see/examples/input/french_cities.trig +38 -0
- package/see/examples/input/fundamental_theorem_arithmetic.trig +42 -0
- package/see/examples/input/genetic_knapsack_selection.trig +39 -0
- package/see/examples/input/goldbach_1000.trig +53 -0
- package/see/examples/input/good_cobbler.trig +24 -0
- package/see/examples/input/gps.trig +35 -0
- package/see/examples/input/gray_code_counter.trig +33 -0
- package/see/examples/input/greatest_lower_bound_uniqueness.trig +29 -0
- package/see/examples/input/group_inverse_uniqueness.trig +29 -0
- package/see/examples/input/hadamard_approx.trig +32 -0
- package/see/examples/input/hanoi.trig +26 -0
- package/see/examples/input/odrl_dpv_risk_ranked.trig +107 -0
- package/see/examples/input/path-discovery.trig +96448 -0
- package/see/examples/input/path_discovery.trig +29 -0
- package/see/examples/input/rc_discharge_envelope.trig +37 -0
- package/see/examples/input/rdf_message_flow.trig +100 -0
- package/see/examples/input/rdf_messages.trig +69 -0
- package/see/examples/input/school_placement_audit.trig +51 -0
- package/see/examples/input/smoke_arithmetic.trig +27 -0
- package/see/examples/input/socrates.trig +26 -0
- package/see/examples/input/wind_turbine.trig +48 -0
- package/see/examples/input/witch.trig +26 -0
- package/see/examples/n3/age.n3 +28 -0
- package/see/examples/n3/annotation.n3 +7 -0
- package/see/examples/n3/backward.n3 +22 -0
- package/see/examples/n3/backward_recursion.n3 +12 -0
- package/see/examples/n3/bayes_diagnosis.n3 +122 -0
- package/see/examples/n3/bayes_therapy.n3 +149 -0
- package/see/examples/n3/bmi.n3 +145 -0
- package/see/examples/n3/builtin_coverage.n3 +68 -0
- package/see/examples/n3/collection.n3 +3 -0
- package/see/examples/n3/complex.n3 +140 -0
- package/see/examples/n3/complex_matrix_stability.n3 +113 -0
- package/see/examples/n3/composition_of_injective_functions_is_injective.n3 +27 -0
- package/see/examples/n3/control_system.n3 +59 -0
- package/see/examples/n3/crypto_builtins_tests.n3 +18 -0
- package/see/examples/n3/delfour.n3 +167 -0
- package/see/examples/n3/digital_product_passport.n3 +156 -0
- package/see/examples/n3/dijkstra.n3 +46 -0
- package/see/examples/n3/dijkstra_risk_path.n3 +67 -0
- package/see/examples/n3/dog.n3 +20 -0
- package/see/examples/n3/eco_route_insight.n3 +88 -0
- package/see/examples/n3/equals.n3 +11 -0
- package/see/examples/n3/equivalence_classes_overlap_implies_same_class.n3 +19 -0
- package/see/examples/n3/euler_identity.n3 +41 -0
- package/see/examples/n3/ev_roundtrip_planner.n3 +82 -0
- package/see/examples/n3/existential_rule.n3 +10 -0
- package/see/examples/n3/expression_eval.n3 +21 -0
- package/see/examples/n3/family_cousins.n3 +62 -0
- package/see/examples/n3/fastpow.n3 +56 -0
- package/see/examples/n3/fibonacci.n3 +44 -0
- package/see/examples/n3/french_cities.n3 +28 -0
- package/see/examples/n3/fundamental_theorem_arithmetic.n3 +84 -0
- package/see/examples/n3/genetic_knapsack_selection.n3 +54 -0
- package/see/examples/n3/goldbach_1000.n3 +66 -0
- package/see/examples/n3/good_cobbler.n3 +10 -0
- package/see/examples/n3/gps.n3 +70 -0
- package/see/examples/n3/gray_code_counter.n3 +53 -0
- package/see/examples/n3/greatest_lower_bound_uniqueness.n3 +20 -0
- package/see/examples/n3/group_inverse_uniqueness.n3 +19 -0
- package/see/examples/n3/hadamard_approx.n3 +43 -0
- package/see/examples/n3/hanoi.n3 +16 -0
- package/see/examples/n3/odrl_dpv_risk_ranked.n3 +460 -0
- package/see/examples/n3/path_discovery.n3 +43 -0
- package/see/examples/n3/rc_discharge_envelope.n3 +61 -0
- package/see/examples/n3/rdf_message_flow.n3 +209 -0
- package/see/examples/n3/rdf_messages.n3 +143 -0
- package/see/examples/n3/school_placement_audit.n3 +63 -0
- package/see/examples/n3/smoke_arithmetic.n3 +22 -0
- package/see/examples/n3/socrates.n3 +21 -0
- package/see/examples/n3/wind_turbine.n3 +85 -0
- package/see/examples/n3/witch.n3 +30 -0
- package/see/examples/odrl_dpv_risk_ranked.js +5102 -0
- package/see/examples/output/age.md +48 -0
- package/see/examples/output/annotation.md +43 -0
- package/see/examples/output/backward.md +50 -0
- package/see/examples/output/backward_recursion.md +54 -0
- package/see/examples/output/bayes_diagnosis.md +103 -0
- package/see/examples/output/bayes_therapy.md +84 -0
- package/see/examples/output/bmi.md +164 -0
- package/see/examples/output/builtin_coverage.md +99 -0
- package/see/examples/output/collection.md +44 -0
- package/see/examples/output/complex.md +61 -0
- package/see/examples/output/complex_matrix_stability.md +55 -0
- package/see/examples/output/composition_of_injective_functions_is_injective.md +62 -0
- package/see/examples/output/control_system.md +61 -0
- package/see/examples/output/crypto_builtins_tests.md +68 -0
- package/see/examples/output/delfour.md +100 -0
- package/see/examples/output/digital_product_passport.md +100 -0
- package/see/examples/output/dijkstra.md +74 -0
- package/see/examples/output/dijkstra_risk_path.md +76 -0
- package/see/examples/output/dog.md +50 -0
- package/see/examples/output/eco_route_insight.md +88 -0
- package/see/examples/output/equals.md +50 -0
- package/see/examples/output/equivalence_classes_overlap_implies_same_class.md +86 -0
- package/see/examples/output/euler_identity.md +73 -0
- package/see/examples/output/ev_roundtrip_planner.md +79 -0
- package/see/examples/output/existential_rule.md +54 -0
- package/see/examples/output/expression_eval.md +50 -0
- package/see/examples/output/family_cousins.md +187 -0
- package/see/examples/output/fastpow.md +36 -0
- package/see/examples/output/fibonacci.md +53 -0
- package/see/examples/output/french_cities.md +70 -0
- package/see/examples/output/fundamental_theorem_arithmetic.md +101 -0
- package/see/examples/output/genetic_knapsack_selection.md +66 -0
- package/see/examples/output/goldbach_1000.md +58 -0
- package/see/examples/output/good_cobbler.md +54 -0
- package/see/examples/output/gps.md +102 -0
- package/see/examples/output/gray_code_counter.md +68 -0
- package/see/examples/output/greatest_lower_bound_uniqueness.md +60 -0
- package/see/examples/output/group_inverse_uniqueness.md +60 -0
- package/see/examples/output/hadamard_approx.md +510 -0
- package/see/examples/output/hanoi.md +51 -0
- package/see/examples/output/odrl_dpv_risk_ranked.md +139 -0
- package/see/examples/output/path_discovery.md +65 -0
- package/see/examples/output/rc_discharge_envelope.md +102 -0
- package/see/examples/output/rdf_message_flow.md +198 -0
- package/see/examples/output/rdf_messages.md +134 -0
- package/see/examples/output/school_placement_audit.md +99 -0
- package/see/examples/output/smoke_arithmetic.md +54 -0
- package/see/examples/output/socrates.md +55 -0
- package/see/examples/output/wind_turbine.md +108 -0
- package/see/examples/output/witch.md +87 -0
- package/see/examples/path_discovery.js +1748 -0
- package/see/examples/rc_discharge_envelope.js +1967 -0
- package/see/examples/rdf_message_flow.js +2554 -0
- package/see/examples/rdf_messages.js +2150 -0
- package/see/examples/school_placement_audit.js +1841 -0
- package/see/examples/smoke_arithmetic.js +1457 -0
- package/see/examples/socrates.js +1394 -0
- package/see/examples/wind_turbine.js +2827 -0
- package/see/examples/witch.js +1493 -0
- package/see/see.js +1794 -0
- package/test/api.test.js +27 -0
- package/test/see.test.js +159 -0
- package/tools/n3gen.js +1 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Path Discovery
|
|
2
|
+
|
|
3
|
+
Generated by `see.js` from a Notation3 source file.
|
|
4
|
+
|
|
5
|
+
SEE version of the Eyeling airport path-discovery example.
|
|
6
|
+
The full airroutes evidence is intentionally stored in
|
|
7
|
+
examples/input/path-discovery.trig, not in this source file. This file keeps
|
|
8
|
+
only the path-finding rules and the query shape from the upstream example.
|
|
9
|
+
|
|
10
|
+
## Compilation summary
|
|
11
|
+
|
|
12
|
+
- Example name: `path_discovery`
|
|
13
|
+
- Input facts emitted: 0
|
|
14
|
+
- Forward rules compiled: 1
|
|
15
|
+
- Backward predicate rules compiled: 2
|
|
16
|
+
- Fuses compiled: 0
|
|
17
|
+
- Predicate count: 9
|
|
18
|
+
|
|
19
|
+
## Built-ins used
|
|
20
|
+
|
|
21
|
+
- `list:firstRest`
|
|
22
|
+
- `list:notMember`
|
|
23
|
+
- `log:collectAllIn`
|
|
24
|
+
- `math:notGreaterThan`
|
|
25
|
+
- `math:sum`
|
|
26
|
+
|
|
27
|
+
## Runtime model
|
|
28
|
+
|
|
29
|
+
The generated `examples/path_discovery.js` is a specialized JavaScript derivation program. For ordinary sources, `see.js` emits the source facts as `examples/input/path_discovery.trig`. For rules-only sources, generation can reuse an existing external evidence file such as `examples/input/path-discovery.trig` or `examples/input/path_discovery.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/path_discovery.js` produces a SEE-style Markdown report with an **Insight** section, an **Explanation** section, and a **Formal TriG Output** section containing the selected derived/query facts.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# RC Discharge Envelope
|
|
2
|
+
|
|
3
|
+
Generated by `see.js` from a Notation3 source file.
|
|
4
|
+
|
|
5
|
+
Certify when a sampled RC capacitor is guaranteed below tolerance using an
|
|
6
|
+
upper decay bound. The witness is derived by N3 rules and compiled to SEE.
|
|
7
|
+
|
|
8
|
+
## Compilation summary
|
|
9
|
+
|
|
10
|
+
- Example name: `rc_discharge_envelope`
|
|
11
|
+
- Input facts emitted: 12
|
|
12
|
+
- Forward rules compiled: 6
|
|
13
|
+
- Backward predicate rules compiled: 0
|
|
14
|
+
- Fuses compiled: 0
|
|
15
|
+
- Predicate count: 22
|
|
16
|
+
|
|
17
|
+
## Built-ins used
|
|
18
|
+
|
|
19
|
+
- `log:outputString`
|
|
20
|
+
- `math:exponentiation`
|
|
21
|
+
- `math:lessThan`
|
|
22
|
+
- `math:notGreaterThan`
|
|
23
|
+
- `math:notLessThan`
|
|
24
|
+
- `math:product`
|
|
25
|
+
- `string:format`
|
|
26
|
+
|
|
27
|
+
## Runtime model
|
|
28
|
+
|
|
29
|
+
The generated `examples/rc_discharge_envelope.js` is a specialized JavaScript derivation program. For ordinary sources, `see.js` emits the source facts as `examples/input/rc_discharge_envelope.trig`. For rules-only sources, generation can reuse an existing external evidence file such as `examples/input/rc-discharge-envelope.trig` or `examples/input/rc_discharge_envelope.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/rc_discharge_envelope.js` produces a SEE-style Markdown report with an **Insight** section, an **Explanation** section, and a **Formal TriG Output** section containing the selected derived/query facts.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# RDF Message Flow
|
|
2
|
+
|
|
3
|
+
Generated by `see.js` from a Notation3 source file.
|
|
4
|
+
|
|
5
|
+
A companion to rdf_messages.n3. This example focuses on a live stream where
|
|
6
|
+
RDF Messages continuously flow through a small processing pipeline. The next
|
|
7
|
+
message is released only after the current message reaches the sink, so the
|
|
8
|
+
stream behaves as an ordered, replayable flow rather than a single merged RDF
|
|
9
|
+
graph.
|
|
10
|
+
|
|
11
|
+
## Compilation summary
|
|
12
|
+
|
|
13
|
+
- Example name: `rdf_message_flow`
|
|
14
|
+
- Input facts emitted: 42
|
|
15
|
+
- Forward rules compiled: 9
|
|
16
|
+
- Backward predicate rules compiled: 0
|
|
17
|
+
- Fuses compiled: 0
|
|
18
|
+
- Predicate count: 25
|
|
19
|
+
|
|
20
|
+
## Built-ins used
|
|
21
|
+
|
|
22
|
+
- `list:length`
|
|
23
|
+
- `log:includes`
|
|
24
|
+
- `log:outputString`
|
|
25
|
+
- `math:greaterThan`
|
|
26
|
+
- `math:notGreaterThan`
|
|
27
|
+
- `string:format`
|
|
28
|
+
|
|
29
|
+
## Runtime model
|
|
30
|
+
|
|
31
|
+
The generated `examples/rdf_message_flow.js` is a specialized JavaScript derivation program. For ordinary sources, `see.js` emits the source facts as `examples/input/rdf_message_flow.trig`. For rules-only sources, generation can reuse an existing external evidence file such as `examples/input/rdf-message-flow.trig` or `examples/input/rdf_message_flow.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/rdf_message_flow.js` produces a SEE-style Markdown report with an **Insight** section, an **Explanation** section, and a **Formal TriG Output** section containing the selected derived/query facts.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# RDF Messages
|
|
2
|
+
|
|
3
|
+
Generated by `see.js` from a Notation3 source file.
|
|
4
|
+
|
|
5
|
+
This SEE example models the main idea from
|
|
6
|
+
https://pietercolpaert.be/papers/eswc2026-rdf-messages/:
|
|
7
|
+
a message stream/log is not just one freely mergeable RDF graph. It is an
|
|
8
|
+
ordered sequence of RDF Datasets that are interpreted atomically, one message
|
|
9
|
+
at a time. The middle message is deliberately empty to model a heartbeat, and
|
|
10
|
+
the local blank-node label "_:b0" is deliberately reused by two messages to
|
|
11
|
+
show message-scoped blank nodes.
|
|
12
|
+
|
|
13
|
+
## Compilation summary
|
|
14
|
+
|
|
15
|
+
- Example name: `rdf_messages`
|
|
16
|
+
- Input facts emitted: 25
|
|
17
|
+
- Forward rules compiled: 6
|
|
18
|
+
- Backward predicate rules compiled: 0
|
|
19
|
+
- Fuses compiled: 0
|
|
20
|
+
- Predicate count: 26
|
|
21
|
+
|
|
22
|
+
## Built-ins used
|
|
23
|
+
|
|
24
|
+
- `list:length`
|
|
25
|
+
- `log:includes`
|
|
26
|
+
- `log:notEqualTo`
|
|
27
|
+
- `log:outputString`
|
|
28
|
+
- `math:notEqualTo`
|
|
29
|
+
- `string:format`
|
|
30
|
+
|
|
31
|
+
## Runtime model
|
|
32
|
+
|
|
33
|
+
The generated `examples/rdf_messages.js` is a specialized JavaScript derivation program. For ordinary sources, `see.js` emits the source facts as `examples/input/rdf_messages.trig`. For rules-only sources, generation can reuse an existing external evidence file such as `examples/input/rdf-messages.trig` or `examples/input/rdf_messages.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/rdf_messages.js` produces a SEE-style Markdown report with an **Insight** section, an **Explanation** section, and a **Formal TriG Output** section containing the selected derived/query facts.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# School Placement Route Audit
|
|
2
|
+
|
|
3
|
+
Generated by `see.js` from a Notation3 source file.
|
|
4
|
+
|
|
5
|
+
N3-compiled version of the school placement audit. The original student,
|
|
6
|
+
school, distance, and policy JSON is preserved as the data-input sidecar.
|
|
7
|
+
|
|
8
|
+
## Compilation summary
|
|
9
|
+
|
|
10
|
+
- Example name: `school_placement_audit`
|
|
11
|
+
- Input facts emitted: 26
|
|
12
|
+
- Forward rules compiled: 4
|
|
13
|
+
- Backward predicate rules compiled: 0
|
|
14
|
+
- Fuses compiled: 0
|
|
15
|
+
- Predicate count: 19
|
|
16
|
+
|
|
17
|
+
## Built-ins used
|
|
18
|
+
|
|
19
|
+
- `log:notEqualTo`
|
|
20
|
+
- `log:outputString`
|
|
21
|
+
- `math:greaterThan`
|
|
22
|
+
- `math:lessThan`
|
|
23
|
+
- `string:format`
|
|
24
|
+
|
|
25
|
+
## Runtime model
|
|
26
|
+
|
|
27
|
+
The generated `examples/school_placement_audit.js` is a specialized JavaScript derivation program. For ordinary sources, `see.js` emits the source facts as `examples/input/school_placement_audit.trig`. For rules-only sources, generation can reuse an existing external evidence file such as `examples/input/school-placement-audit.trig` or `examples/input/school_placement_audit.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.
|
|
28
|
+
|
|
29
|
+
## Output model
|
|
30
|
+
|
|
31
|
+
Running `node examples/school_placement_audit.js` produces a SEE-style Markdown report with an **Insight** section, an **Explanation** section, and a **Formal TriG Output** section containing the selected derived/query facts.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Smoke Arithmetic
|
|
2
|
+
|
|
3
|
+
Generated by `see.js` from a Notation3 source file.
|
|
4
|
+
|
|
5
|
+
Small Notation3 source used to prove that see.js generates a specialized JS
|
|
6
|
+
example which derives its answer from facts, math built-ins, fuses, and string
|
|
7
|
+
formatting instead of reading a prewritten conclusion.
|
|
8
|
+
|
|
9
|
+
## Compilation summary
|
|
10
|
+
|
|
11
|
+
- Example name: `smoke_arithmetic`
|
|
12
|
+
- Input facts emitted: 2
|
|
13
|
+
- Forward rules compiled: 2
|
|
14
|
+
- Backward predicate rules compiled: 0
|
|
15
|
+
- Fuses compiled: 0
|
|
16
|
+
- Predicate count: 7
|
|
17
|
+
|
|
18
|
+
## Built-ins used
|
|
19
|
+
|
|
20
|
+
- `log:outputString`
|
|
21
|
+
- `math:greaterThan`
|
|
22
|
+
- `math:product`
|
|
23
|
+
- `string:format`
|
|
24
|
+
|
|
25
|
+
## Runtime model
|
|
26
|
+
|
|
27
|
+
The generated `examples/smoke_arithmetic.js` is a specialized JavaScript derivation program. For ordinary sources, `see.js` emits the source facts as `examples/input/smoke_arithmetic.trig`. For rules-only sources, generation can reuse an existing external evidence file such as `examples/input/smoke-arithmetic.trig` or `examples/input/smoke_arithmetic.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.
|
|
28
|
+
|
|
29
|
+
## Output model
|
|
30
|
+
|
|
31
|
+
Running `node examples/smoke_arithmetic.js` produces a SEE-style Markdown report with an **Insight** section, an **Explanation** section, and a **Formal TriG Output** section containing the selected derived/query facts.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Socrates inference
|
|
2
|
+
|
|
3
|
+
Generated by `see.js` from a Notation3 source file.
|
|
4
|
+
|
|
5
|
+
## Compilation summary
|
|
6
|
+
|
|
7
|
+
- Example name: `socrates`
|
|
8
|
+
- Input facts emitted: 2
|
|
9
|
+
- Forward rules compiled: 1
|
|
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/socrates.js` is a specialized JavaScript derivation program. For ordinary sources, `see.js` emits the source facts as `examples/input/socrates.trig`. For rules-only sources, generation can reuse an existing external evidence file such as `examples/input/socrates.trig` or `examples/input/socrates.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/socrates.js` produces a SEE-style Markdown report with an **Insight** section, an **Explanation** section, and a **Formal TriG Output** section containing the selected derived/query facts.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Wind Turbine Envelope
|
|
2
|
+
|
|
3
|
+
Generated by `see.js` from a Notation3 source file.
|
|
4
|
+
|
|
5
|
+
Classify wind-speed samples against a turbine operating envelope and compute
|
|
6
|
+
interval energy. The classification and cubic power curve are expressed in N3
|
|
7
|
+
rules and compiled into a standalone SEE JavaScript example.
|
|
8
|
+
|
|
9
|
+
## Compilation summary
|
|
10
|
+
|
|
11
|
+
- Example name: `wind_turbine`
|
|
12
|
+
- Input facts emitted: 23
|
|
13
|
+
- Forward rules compiled: 7
|
|
14
|
+
- Backward predicate rules compiled: 0
|
|
15
|
+
- Fuses compiled: 0
|
|
16
|
+
- Predicate count: 22
|
|
17
|
+
|
|
18
|
+
## Built-ins used
|
|
19
|
+
|
|
20
|
+
- `log:outputString`
|
|
21
|
+
- `math:difference`
|
|
22
|
+
- `math:exponentiation`
|
|
23
|
+
- `math:lessThan`
|
|
24
|
+
- `math:notGreaterThan`
|
|
25
|
+
- `math:notLessThan`
|
|
26
|
+
- `math:product`
|
|
27
|
+
- `math:quotient`
|
|
28
|
+
- `math:sum`
|
|
29
|
+
- `string:format`
|
|
30
|
+
|
|
31
|
+
## Runtime model
|
|
32
|
+
|
|
33
|
+
The generated `examples/wind_turbine.js` is a specialized JavaScript derivation program. For ordinary sources, `see.js` emits the source facts as `examples/input/wind_turbine.trig`. For rules-only sources, generation can reuse an existing external evidence file such as `examples/input/wind-turbine.trig` or `examples/input/wind_turbine.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/wind_turbine.js` produces a SEE-style Markdown report with an **Insight** section, an **Explanation** section, and a **Formal TriG Output** section containing the selected derived/query facts.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Burn the witch
|
|
2
|
+
|
|
3
|
+
Generated by `see.js` from a Notation3 source file.
|
|
4
|
+
|
|
5
|
+
http://clarkparsia.com/weblog/2007/01/02/burn-the-witch/
|
|
6
|
+
http://www.netfunny.com/rhf/jokes/90q4/burnher.html
|
|
7
|
+
original http://www.w3.org/2000/10/swap/test/reason/witch.n3
|
|
8
|
+
|
|
9
|
+
## Compilation summary
|
|
10
|
+
|
|
11
|
+
- Example name: `witch`
|
|
12
|
+
- Input facts emitted: 3
|
|
13
|
+
- Forward rules compiled: 4
|
|
14
|
+
- Backward predicate rules compiled: 0
|
|
15
|
+
- Fuses compiled: 0
|
|
16
|
+
- Predicate count: 2
|
|
17
|
+
|
|
18
|
+
## Built-ins used
|
|
19
|
+
|
|
20
|
+
- none
|
|
21
|
+
|
|
22
|
+
## Runtime model
|
|
23
|
+
|
|
24
|
+
The generated `examples/witch.js` is a specialized JavaScript derivation program. For ordinary sources, `see.js` emits the source facts as `examples/input/witch.trig`. For rules-only sources, generation can reuse an existing external evidence file such as `examples/input/witch.trig` or `examples/input/witch.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/witch.js` produces a SEE-style Markdown report with an **Insight** section, an **Explanation** section, and a **Formal TriG Output** section containing the selected derived/query facts.
|