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
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
2
|
-
@prefix time: <http://www.w3.org/2000/10/swap/time#> .
|
|
3
|
-
@prefix math: <http://www.w3.org/2000/10/swap/math#> .
|
|
4
|
-
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
|
|
5
|
-
@prefix : <https://example.org/#> .
|
|
6
|
-
@prefix see: <https://example.org/see#> .
|
|
7
|
-
@prefix in: <https://example.org/see/input#> .
|
|
8
|
-
|
|
9
|
-
# Formal SEE input evidence in RDF 1.2 TriG.
|
|
10
|
-
# The generated runner reads this TriG evidence directly.
|
|
11
|
-
|
|
12
|
-
:patH :birthDay "1944-08-21" .
|
|
13
|
-
|
|
14
|
-
in:metadata {
|
|
15
|
-
in:run a see:InputDataset .
|
|
16
|
-
in:run see:name "age" .
|
|
17
|
-
in:run see:title "Age checker" .
|
|
18
|
-
in:run see:sourceFile "examples/n3/age.n3" .
|
|
19
|
-
in:run see:sourceSHA256 "bf52bb918b595bb68a0a6304729e8129f3a851dc16cd3980ec5932115f2e7aea" .
|
|
20
|
-
in:run see:description "Is the age of a person above some duration?" .
|
|
21
|
-
in:run see:compiler "see.js N3-to-JS compiler" .
|
|
22
|
-
in:run see:inputFacts 1 .
|
|
23
|
-
in:run see:compiledRules 0 .
|
|
24
|
-
in:run see:compiledBackwardRules 1 .
|
|
25
|
-
in:run see:compiledFuses 0 .
|
|
26
|
-
in:run see:compiledQueries 1 .
|
|
27
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
@prefix math: <http://www.w3.org/2000/10/swap/math#> .
|
|
2
|
-
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
|
|
3
|
-
@prefix : <http://example.org/#> .
|
|
4
|
-
@prefix see: <https://example.org/see#> .
|
|
5
|
-
@prefix in: <https://example.org/see/input#> .
|
|
6
|
-
|
|
7
|
-
# Formal SEE input evidence in RDF 1.2 TriG.
|
|
8
|
-
# The generated runner reads this TriG evidence directly.
|
|
9
|
-
|
|
10
|
-
# No source facts were present in the N3 program.
|
|
11
|
-
|
|
12
|
-
in:metadata {
|
|
13
|
-
in:run a see:InputDataset .
|
|
14
|
-
in:run see:name "backward" .
|
|
15
|
-
in:run see:title "Backward rule example" .
|
|
16
|
-
in:run see:sourceFile "examples/n3/backward.n3" .
|
|
17
|
-
in:run see:sourceSHA256 "328d66402900d98dda0c02e3c64a7f3633f01a0ba148031c17e8fbf353057d33" .
|
|
18
|
-
in:run see:description "See https://www.w3.org/2000/10/swap/doc/tutorial-1.pdf page 17" .
|
|
19
|
-
in:run see:compiler "see.js N3-to-JS compiler" .
|
|
20
|
-
in:run see:inputFacts 0 .
|
|
21
|
-
in:run see:compiledRules 1 .
|
|
22
|
-
in:run see:compiledBackwardRules 1 .
|
|
23
|
-
in:run see:compiledFuses 0 .
|
|
24
|
-
in:run see:compiledQueries 0 .
|
|
25
|
-
}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
@prefix : <https://eyereasoner.github.io/see/examples/bayes-diagnosis#> .
|
|
2
|
-
@prefix math: <http://www.w3.org/2000/10/swap/math#> .
|
|
3
|
-
@prefix list: <http://www.w3.org/2000/10/swap/list#> .
|
|
4
|
-
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
|
|
5
|
-
@prefix string: <http://www.w3.org/2000/10/swap/string#> .
|
|
6
|
-
@prefix see: <https://example.org/see#> .
|
|
7
|
-
@prefix in: <https://example.org/see/input#> .
|
|
8
|
-
|
|
9
|
-
# Formal SEE input evidence in RDF 1.2 TriG.
|
|
10
|
-
# The generated runner reads this TriG evidence directly.
|
|
11
|
-
|
|
12
|
-
:COVID19 rdf:type :Disease .
|
|
13
|
-
:COVID19 :label "COVID-19" .
|
|
14
|
-
:COVID19 :prior 0.05 .
|
|
15
|
-
:Influenza rdf:type :Disease .
|
|
16
|
-
:Influenza :label "Influenza" .
|
|
17
|
-
:Influenza :prior 0.03 .
|
|
18
|
-
:AllergicRhinitis rdf:type :Disease .
|
|
19
|
-
:AllergicRhinitis :label "Allergic rhinitis" .
|
|
20
|
-
:AllergicRhinitis :prior 0.1 .
|
|
21
|
-
:BacterialPneumonia rdf:type :Disease .
|
|
22
|
-
:BacterialPneumonia :label "Bacterial pneumonia" .
|
|
23
|
-
:BacterialPneumonia :prior 0.01 .
|
|
24
|
-
_:blank1 :symptom :Fever .
|
|
25
|
-
_:blank1 :p 0.7 .
|
|
26
|
-
:COVID19 :pGiven _:blank1 .
|
|
27
|
-
_:blank2 :symptom :DryCough .
|
|
28
|
-
_:blank2 :p 0.65 .
|
|
29
|
-
:COVID19 :pGiven _:blank2 .
|
|
30
|
-
_:blank3 :symptom :LossOfSmell .
|
|
31
|
-
_:blank3 :p 0.4 .
|
|
32
|
-
:COVID19 :pGiven _:blank3 .
|
|
33
|
-
_:blank4 :symptom :Sneezing .
|
|
34
|
-
_:blank4 :p 0.15 .
|
|
35
|
-
:COVID19 :pGiven _:blank4 .
|
|
36
|
-
_:blank5 :symptom :ShortBreath .
|
|
37
|
-
_:blank5 :p 0.2 .
|
|
38
|
-
:COVID19 :pGiven _:blank5 .
|
|
39
|
-
_:blank6 :symptom :Fever .
|
|
40
|
-
_:blank6 :p 0.8 .
|
|
41
|
-
:Influenza :pGiven _:blank6 .
|
|
42
|
-
_:blank7 :symptom :DryCough .
|
|
43
|
-
_:blank7 :p 0.5 .
|
|
44
|
-
:Influenza :pGiven _:blank7 .
|
|
45
|
-
_:blank8 :symptom :LossOfSmell .
|
|
46
|
-
_:blank8 :p 0.05 .
|
|
47
|
-
:Influenza :pGiven _:blank8 .
|
|
48
|
-
_:blank9 :symptom :Sneezing .
|
|
49
|
-
_:blank9 :p 0.2 .
|
|
50
|
-
:Influenza :pGiven _:blank9 .
|
|
51
|
-
_:blank10 :symptom :ShortBreath .
|
|
52
|
-
_:blank10 :p 0.1 .
|
|
53
|
-
:Influenza :pGiven _:blank10 .
|
|
54
|
-
_:blank11 :symptom :Fever .
|
|
55
|
-
_:blank11 :p 0.05 .
|
|
56
|
-
:AllergicRhinitis :pGiven _:blank11 .
|
|
57
|
-
_:blank12 :symptom :DryCough .
|
|
58
|
-
_:blank12 :p 0.15 .
|
|
59
|
-
:AllergicRhinitis :pGiven _:blank12 .
|
|
60
|
-
_:blank13 :symptom :LossOfSmell .
|
|
61
|
-
_:blank13 :p 0.1 .
|
|
62
|
-
:AllergicRhinitis :pGiven _:blank13 .
|
|
63
|
-
_:blank14 :symptom :Sneezing .
|
|
64
|
-
_:blank14 :p 0.8 .
|
|
65
|
-
:AllergicRhinitis :pGiven _:blank14 .
|
|
66
|
-
_:blank15 :symptom :ShortBreath .
|
|
67
|
-
_:blank15 :p 0.05 .
|
|
68
|
-
:AllergicRhinitis :pGiven _:blank15 .
|
|
69
|
-
_:blank16 :symptom :Fever .
|
|
70
|
-
_:blank16 :p 0.7 .
|
|
71
|
-
:BacterialPneumonia :pGiven _:blank16 .
|
|
72
|
-
_:blank17 :symptom :DryCough .
|
|
73
|
-
_:blank17 :p 0.6 .
|
|
74
|
-
:BacterialPneumonia :pGiven _:blank17 .
|
|
75
|
-
_:blank18 :symptom :LossOfSmell .
|
|
76
|
-
_:blank18 :p 0.02 .
|
|
77
|
-
:BacterialPneumonia :pGiven _:blank18 .
|
|
78
|
-
_:blank19 :symptom :Sneezing .
|
|
79
|
-
_:blank19 :p 0.05 .
|
|
80
|
-
:BacterialPneumonia :pGiven _:blank19 .
|
|
81
|
-
_:blank20 :symptom :ShortBreath .
|
|
82
|
-
_:blank20 :p 0.6 .
|
|
83
|
-
:BacterialPneumonia :pGiven _:blank20 .
|
|
84
|
-
:Case rdf:type :PatientCase .
|
|
85
|
-
:Case :diseases (:COVID19 :Influenza :AllergicRhinitis :BacterialPneumonia) .
|
|
86
|
-
_:blank21 :symptom :Fever .
|
|
87
|
-
_:blank21 :present true .
|
|
88
|
-
_:blank22 :symptom :DryCough .
|
|
89
|
-
_:blank22 :present true .
|
|
90
|
-
_:blank23 :symptom :LossOfSmell .
|
|
91
|
-
_:blank23 :present true .
|
|
92
|
-
_:blank24 :symptom :Sneezing .
|
|
93
|
-
_:blank24 :present false .
|
|
94
|
-
_:blank25 :symptom :ShortBreath .
|
|
95
|
-
_:blank25 :present true .
|
|
96
|
-
:Case :evidence (_:blank21 _:blank22 _:blank23 _:blank24 _:blank25) .
|
|
97
|
-
|
|
98
|
-
in:metadata {
|
|
99
|
-
in:run a see:InputDataset .
|
|
100
|
-
in:run see:name "bayes_diagnosis" .
|
|
101
|
-
in:run see:title "Bayes Diagnosis" .
|
|
102
|
-
in:run see:sourceFile "examples/n3/bayes_diagnosis.n3" .
|
|
103
|
-
in:run see:sourceSHA256 "46feebe5109b413a4143b7bcb4bc77ac6c0b18a8fdd8f6a62ab06c42287035d9" .
|
|
104
|
-
in:run see:description "Naive Bayes diagnosis example, adapted from Eyeling's bayes-diagnosis.n3.\nThe facts and rules compute unnormalized likelihoods, normalize them into\nposterior probabilities, and emit a SEE report for the highest posterior.\nValues are illustrative only and are not medical advice." .
|
|
105
|
-
in:run see:compiler "see.js N3-to-JS compiler" .
|
|
106
|
-
in:run see:inputFacts 85 .
|
|
107
|
-
in:run see:compiledRules 4 .
|
|
108
|
-
in:run see:compiledBackwardRules 5 .
|
|
109
|
-
in:run see:compiledFuses 4 .
|
|
110
|
-
in:run see:compiledQueries 1 .
|
|
111
|
-
}
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
@prefix : <https://eyereasoner.github.io/see/examples/bayes-therapy#> .
|
|
2
|
-
@prefix math: <http://www.w3.org/2000/10/swap/math#> .
|
|
3
|
-
@prefix list: <http://www.w3.org/2000/10/swap/list#> .
|
|
4
|
-
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
|
|
5
|
-
@prefix string: <http://www.w3.org/2000/10/swap/string#> .
|
|
6
|
-
@prefix see: <https://example.org/see#> .
|
|
7
|
-
@prefix in: <https://example.org/see/input#> .
|
|
8
|
-
|
|
9
|
-
# Formal SEE input evidence in RDF 1.2 TriG.
|
|
10
|
-
# The generated runner reads this TriG evidence directly.
|
|
11
|
-
|
|
12
|
-
:COVID19 rdf:type :Disease .
|
|
13
|
-
:COVID19 :prior 0.05 .
|
|
14
|
-
:Influenza rdf:type :Disease .
|
|
15
|
-
:Influenza :prior 0.03 .
|
|
16
|
-
:AllergicRhinitis rdf:type :Disease .
|
|
17
|
-
:AllergicRhinitis :prior 0.1 .
|
|
18
|
-
:BacterialPneumonia rdf:type :Disease .
|
|
19
|
-
:BacterialPneumonia :prior 0.01 .
|
|
20
|
-
_:blank1 :symptom :Fever .
|
|
21
|
-
_:blank1 :p 0.7 .
|
|
22
|
-
:COVID19 :pGiven _:blank1 .
|
|
23
|
-
_:blank2 :symptom :DryCough .
|
|
24
|
-
_:blank2 :p 0.65 .
|
|
25
|
-
:COVID19 :pGiven _:blank2 .
|
|
26
|
-
_:blank3 :symptom :LossOfSmell .
|
|
27
|
-
_:blank3 :p 0.4 .
|
|
28
|
-
:COVID19 :pGiven _:blank3 .
|
|
29
|
-
_:blank4 :symptom :Sneezing .
|
|
30
|
-
_:blank4 :p 0.15 .
|
|
31
|
-
:COVID19 :pGiven _:blank4 .
|
|
32
|
-
_:blank5 :symptom :ShortBreath .
|
|
33
|
-
_:blank5 :p 0.2 .
|
|
34
|
-
:COVID19 :pGiven _:blank5 .
|
|
35
|
-
_:blank6 :symptom :Fever .
|
|
36
|
-
_:blank6 :p 0.8 .
|
|
37
|
-
:Influenza :pGiven _:blank6 .
|
|
38
|
-
_:blank7 :symptom :DryCough .
|
|
39
|
-
_:blank7 :p 0.5 .
|
|
40
|
-
:Influenza :pGiven _:blank7 .
|
|
41
|
-
_:blank8 :symptom :LossOfSmell .
|
|
42
|
-
_:blank8 :p 0.05 .
|
|
43
|
-
:Influenza :pGiven _:blank8 .
|
|
44
|
-
_:blank9 :symptom :Sneezing .
|
|
45
|
-
_:blank9 :p 0.2 .
|
|
46
|
-
:Influenza :pGiven _:blank9 .
|
|
47
|
-
_:blank10 :symptom :ShortBreath .
|
|
48
|
-
_:blank10 :p 0.1 .
|
|
49
|
-
:Influenza :pGiven _:blank10 .
|
|
50
|
-
_:blank11 :symptom :Fever .
|
|
51
|
-
_:blank11 :p 0.05 .
|
|
52
|
-
:AllergicRhinitis :pGiven _:blank11 .
|
|
53
|
-
_:blank12 :symptom :DryCough .
|
|
54
|
-
_:blank12 :p 0.15 .
|
|
55
|
-
:AllergicRhinitis :pGiven _:blank12 .
|
|
56
|
-
_:blank13 :symptom :LossOfSmell .
|
|
57
|
-
_:blank13 :p 0.1 .
|
|
58
|
-
:AllergicRhinitis :pGiven _:blank13 .
|
|
59
|
-
_:blank14 :symptom :Sneezing .
|
|
60
|
-
_:blank14 :p 0.8 .
|
|
61
|
-
:AllergicRhinitis :pGiven _:blank14 .
|
|
62
|
-
_:blank15 :symptom :ShortBreath .
|
|
63
|
-
_:blank15 :p 0.05 .
|
|
64
|
-
:AllergicRhinitis :pGiven _:blank15 .
|
|
65
|
-
_:blank16 :symptom :Fever .
|
|
66
|
-
_:blank16 :p 0.7 .
|
|
67
|
-
:BacterialPneumonia :pGiven _:blank16 .
|
|
68
|
-
_:blank17 :symptom :DryCough .
|
|
69
|
-
_:blank17 :p 0.6 .
|
|
70
|
-
:BacterialPneumonia :pGiven _:blank17 .
|
|
71
|
-
_:blank18 :symptom :LossOfSmell .
|
|
72
|
-
_:blank18 :p 0.02 .
|
|
73
|
-
:BacterialPneumonia :pGiven _:blank18 .
|
|
74
|
-
_:blank19 :symptom :Sneezing .
|
|
75
|
-
_:blank19 :p 0.05 .
|
|
76
|
-
:BacterialPneumonia :pGiven _:blank19 .
|
|
77
|
-
_:blank20 :symptom :ShortBreath .
|
|
78
|
-
_:blank20 :p 0.6 .
|
|
79
|
-
:BacterialPneumonia :pGiven _:blank20 .
|
|
80
|
-
:Paxlovid rdf:type :Therapy .
|
|
81
|
-
:Paxlovid :label "Paxlovid" .
|
|
82
|
-
:Paxlovid :successByDisease (0.75 0.05 0.02 0.05) .
|
|
83
|
-
:Paxlovid :adverse 0.1 .
|
|
84
|
-
:Oseltamivir rdf:type :Therapy .
|
|
85
|
-
:Oseltamivir :label "Oseltamivir" .
|
|
86
|
-
:Oseltamivir :successByDisease (0.05 0.6 0.02 0.05) .
|
|
87
|
-
:Oseltamivir :adverse 0.08 .
|
|
88
|
-
:Antihistamine rdf:type :Therapy .
|
|
89
|
-
:Antihistamine :label "Antihistamine" .
|
|
90
|
-
:Antihistamine :successByDisease (0.1 0.1 0.75 0.05) .
|
|
91
|
-
:Antihistamine :adverse 0.03 .
|
|
92
|
-
:Antibiotic rdf:type :Therapy .
|
|
93
|
-
:Antibiotic :label "Antibiotic" .
|
|
94
|
-
:Antibiotic :successByDisease (0.05 0.05 0.02 0.8) .
|
|
95
|
-
:Antibiotic :adverse 0.07 .
|
|
96
|
-
:SupportiveCare rdf:type :Therapy .
|
|
97
|
-
:SupportiveCare :label "Supportive care" .
|
|
98
|
-
:SupportiveCare :successByDisease (0.3 0.3 0.25 0.2) .
|
|
99
|
-
:SupportiveCare :adverse 0.01 .
|
|
100
|
-
:Model :benefitWeight 10 .
|
|
101
|
-
:Model :harmWeight 3 .
|
|
102
|
-
:Case rdf:type :PatientCase .
|
|
103
|
-
:Case :diseases (:COVID19 :Influenza :AllergicRhinitis :BacterialPneumonia) .
|
|
104
|
-
:Case :therapies (:Paxlovid :Oseltamivir :SupportiveCare :Antibiotic :Antihistamine) .
|
|
105
|
-
_:blank21 :symptom :Fever .
|
|
106
|
-
_:blank21 :present true .
|
|
107
|
-
_:blank22 :symptom :DryCough .
|
|
108
|
-
_:blank22 :present true .
|
|
109
|
-
_:blank23 :symptom :LossOfSmell .
|
|
110
|
-
_:blank23 :present false .
|
|
111
|
-
_:blank24 :symptom :Sneezing .
|
|
112
|
-
_:blank24 :present false .
|
|
113
|
-
_:blank25 :symptom :ShortBreath .
|
|
114
|
-
_:blank25 :present false .
|
|
115
|
-
:Case :evidence (_:blank21 _:blank22 _:blank23 _:blank24 _:blank25) .
|
|
116
|
-
|
|
117
|
-
in:metadata {
|
|
118
|
-
in:run a see:InputDataset .
|
|
119
|
-
in:run see:name "bayes_therapy" .
|
|
120
|
-
in:run see:title "Bayes Therapy" .
|
|
121
|
-
in:run see:sourceFile "examples/n3/bayes_therapy.n3" .
|
|
122
|
-
in:run see:sourceSHA256 "18244b81f37328f7d77c8e88a4749891c3d773ffbf19affecd7f118c6208395d" .
|
|
123
|
-
in:run see:description "Extends the Bayesian diagnosis model with a therapy utility layer. Adapted\nfrom Eyeling's bayes-therapy.n3. Values are illustrative only and are not\nmedical advice." .
|
|
124
|
-
in:run see:compiler "see.js N3-to-JS compiler" .
|
|
125
|
-
in:run see:inputFacts 104 .
|
|
126
|
-
in:run see:compiledRules 5 .
|
|
127
|
-
in:run see:compiledBackwardRules 15 .
|
|
128
|
-
in:run see:compiledFuses 8 .
|
|
129
|
-
in:run see:compiledQueries 1 .
|
|
130
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
@prefix : <https://example.org/bmi#> .
|
|
2
|
-
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
|
|
3
|
-
@prefix math: <http://www.w3.org/2000/10/swap/math#> .
|
|
4
|
-
@prefix string: <http://www.w3.org/2000/10/swap/string#> .
|
|
5
|
-
@prefix see: <https://example.org/see#> .
|
|
6
|
-
@prefix in: <https://example.org/see/input#> .
|
|
7
|
-
|
|
8
|
-
# Formal SEE input evidence in RDF 1.2 TriG.
|
|
9
|
-
# The generated runner reads this TriG evidence directly.
|
|
10
|
-
|
|
11
|
-
:Input :unitSystem "metric" .
|
|
12
|
-
:Input :weight 72 .
|
|
13
|
-
:Input :height 178 .
|
|
14
|
-
|
|
15
|
-
in:metadata {
|
|
16
|
-
in:run a see:InputDataset .
|
|
17
|
-
in:run see:name "bmi" .
|
|
18
|
-
in:run see:title "BMI — Body Mass Index example." .
|
|
19
|
-
in:run see:sourceFile "examples/n3/bmi.n3" .
|
|
20
|
-
in:run see:sourceSHA256 "c7163f49a56f4405350787563e15aee0975fabd71ca773a8b32077b19ef25d3c" .
|
|
21
|
-
in:run see:description "This example turns a familiar health calculation into a small, inspectable\nSEE example. It normalizes either metric or US inputs, computes BMI, assigns\na WHO adult category, and derives a healthy-range weight band for the given\nheight. The report explains the result and includes independent validations for\nboundary handling and category behavior.\nFor reproducibility and documentation only; not medical advice." .
|
|
22
|
-
in:run see:compiler "see.js N3-to-JS compiler" .
|
|
23
|
-
in:run see:inputFacts 3 .
|
|
24
|
-
in:run see:compiledRules 12 .
|
|
25
|
-
in:run see:compiledBackwardRules 0 .
|
|
26
|
-
in:run see:compiledFuses 1 .
|
|
27
|
-
in:run see:compiledQueries 0 .
|
|
28
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
@prefix math: <http://www.w3.org/2000/10/swap/math#> .
|
|
2
|
-
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
|
|
3
|
-
@prefix complex: <https://eyereasoner.github.io/eye/complex#> .
|
|
4
|
-
@prefix : <http://example.org/#> .
|
|
5
|
-
@prefix see: <https://example.org/see#> .
|
|
6
|
-
@prefix in: <https://example.org/see/input#> .
|
|
7
|
-
|
|
8
|
-
# Formal SEE input evidence in RDF 1.2 TriG.
|
|
9
|
-
# The generated runner reads this TriG evidence directly.
|
|
10
|
-
|
|
11
|
-
# No source facts were present in the N3 program.
|
|
12
|
-
|
|
13
|
-
in:metadata {
|
|
14
|
-
in:run a see:InputDataset .
|
|
15
|
-
in:run see:name "complex" .
|
|
16
|
-
in:run see:title "Complex numbers" .
|
|
17
|
-
in:run see:sourceFile "examples/n3/complex.n3" .
|
|
18
|
-
in:run see:sourceSHA256 "f06171b97fcf380a64522165c21d4544ef88af39e5f8a679aad2e51bcc63c2b6" .
|
|
19
|
-
in:run see:description "See https://en.wikipedia.org/wiki/Complex_number" .
|
|
20
|
-
in:run see:compiler "see.js N3-to-JS compiler" .
|
|
21
|
-
in:run see:inputFacts 0 .
|
|
22
|
-
in:run see:compiledRules 1 .
|
|
23
|
-
in:run see:compiledBackwardRules 8 .
|
|
24
|
-
in:run see:compiledFuses 0 .
|
|
25
|
-
in:run see:compiledQueries 0 .
|
|
26
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
@prefix : <https://eyereasoner.github.io/see/examples/complex-matrix-stability#> .
|
|
2
|
-
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
|
|
3
|
-
@prefix math: <http://www.w3.org/2000/10/swap/math#> .
|
|
4
|
-
@prefix string: <http://www.w3.org/2000/10/swap/string#> .
|
|
5
|
-
@prefix see: <https://example.org/see#> .
|
|
6
|
-
@prefix in: <https://example.org/see/input#> .
|
|
7
|
-
|
|
8
|
-
# Formal SEE input evidence in RDF 1.2 TriG.
|
|
9
|
-
# The generated runner reads this TriG evidence directly.
|
|
10
|
-
|
|
11
|
-
:Case :unstableMatrix :A_unstable .
|
|
12
|
-
:Case :stableMatrix :A_stable .
|
|
13
|
-
:Case :dampedMatrix :A_damped .
|
|
14
|
-
:Scale2 :k 2 .
|
|
15
|
-
:c_0_0 :re 0 .
|
|
16
|
-
:c_0_0 :im 0 .
|
|
17
|
-
:c_0_0 :pretty "(0,0)" .
|
|
18
|
-
:c_0_1 :re 0 .
|
|
19
|
-
:c_0_1 :im 1 .
|
|
20
|
-
:c_0_1 :pretty "(0,1)" .
|
|
21
|
-
:c_1_0 :re 1 .
|
|
22
|
-
:c_1_0 :im 0 .
|
|
23
|
-
:c_1_0 :pretty "(1,0)" .
|
|
24
|
-
:c_m1_0 :re -1 .
|
|
25
|
-
:c_m1_0 :im 0 .
|
|
26
|
-
:c_m1_0 :pretty "(-1,0)" .
|
|
27
|
-
:c_1_1 :re 1 .
|
|
28
|
-
:c_1_1 :im 1 .
|
|
29
|
-
:c_1_1 :pretty "(1,1)" .
|
|
30
|
-
:c_1_2 :re 1 .
|
|
31
|
-
:c_1_2 :im 2 .
|
|
32
|
-
:c_1_2 :pretty "(1,2)" .
|
|
33
|
-
:c_2_0 :re 2 .
|
|
34
|
-
:c_2_0 :im 0 .
|
|
35
|
-
:c_2_0 :pretty "(2,0)" .
|
|
36
|
-
:A_unstable :a11 :c_1_1 .
|
|
37
|
-
:A_unstable :a12 :c_0_0 .
|
|
38
|
-
:A_unstable :a21 :c_0_0 .
|
|
39
|
-
:A_unstable :a22 :c_2_0 .
|
|
40
|
-
:A_unstable :pretty "[[(1,1),(0,0)],[(0,0),(2,0)]]" .
|
|
41
|
-
:A_stable :a11 :c_1_0 .
|
|
42
|
-
:A_stable :a12 :c_0_0 .
|
|
43
|
-
:A_stable :a21 :c_0_0 .
|
|
44
|
-
:A_stable :a22 :c_m1_0 .
|
|
45
|
-
:A_stable :pretty "[[(1,0),(0,0)],[(0,0),(-1,0)]]" .
|
|
46
|
-
:A_damped :a11 :c_0_0 .
|
|
47
|
-
:A_damped :a12 :c_0_0 .
|
|
48
|
-
:A_damped :a21 :c_0_0 .
|
|
49
|
-
:A_damped :a22 :c_0_0 .
|
|
50
|
-
:A_damped :pretty "[[(0,0),(0,0)],[(0,0),(0,0)]]" .
|
|
51
|
-
|
|
52
|
-
in:metadata {
|
|
53
|
-
in:run a see:InputDataset .
|
|
54
|
-
in:run see:name "complex_matrix_stability" .
|
|
55
|
-
in:run see:title "Complex Matrix Stability" .
|
|
56
|
-
in:run see:sourceFile "examples/n3/complex_matrix_stability.n3" .
|
|
57
|
-
in:run see:sourceSHA256 "0ffed52d668e21ce26c5de11d2783603153ab79b6e2f92dece41e70777531297" .
|
|
58
|
-
in:run see:description "Diagonal 2x2 complex matrices are classified for discrete-time stability.\nThis adapts the Eyeling complex matrix example as a committed SEE N3\nsource that compiles to a standalone JavaScript example." .
|
|
59
|
-
in:run see:compiler "see.js N3-to-JS compiler" .
|
|
60
|
-
in:run see:inputFacts 40 .
|
|
61
|
-
in:run see:compiledRules 2 .
|
|
62
|
-
in:run see:compiledBackwardRules 15 .
|
|
63
|
-
in:run see:compiledFuses 0 .
|
|
64
|
-
in:run see:compiledQueries 0 .
|
|
65
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
@prefix : <https://eyereasoner.github.io/eye/reasoning#> .
|
|
2
|
-
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
|
|
3
|
-
@prefix see: <https://example.org/see#> .
|
|
4
|
-
@prefix in: <https://example.org/see/input#> .
|
|
5
|
-
|
|
6
|
-
# Formal SEE input evidence in RDF 1.2 TriG.
|
|
7
|
-
# The generated runner reads this TriG evidence directly.
|
|
8
|
-
|
|
9
|
-
:a :inX true .
|
|
10
|
-
:b :inX true .
|
|
11
|
-
:p :inY true .
|
|
12
|
-
:q :inY true .
|
|
13
|
-
:r :inZ true .
|
|
14
|
-
:f :injective true .
|
|
15
|
-
:g :injective true .
|
|
16
|
-
:h :compositeOf (:g :f) .
|
|
17
|
-
(:f :a) :app :p .
|
|
18
|
-
(:f :b) :app :q .
|
|
19
|
-
(:g :p) :app :r .
|
|
20
|
-
(:g :q) :app :r .
|
|
21
|
-
|
|
22
|
-
in:metadata {
|
|
23
|
-
in:run a see:InputDataset .
|
|
24
|
-
in:run see:name "composition_of_injective_functions_is_injective" .
|
|
25
|
-
in:run see:title "Composition of injective functions is injective." .
|
|
26
|
-
in:run see:sourceFile "examples/n3/composition_of_injective_functions_is_injective.n3" .
|
|
27
|
-
in:run see:sourceSHA256 "59429a6490d6587b42c78b3206d390c6a9c1570a2fcdfa09407be0261c99b88f" .
|
|
28
|
-
in:run see:description "" .
|
|
29
|
-
in:run see:compiler "see.js N3-to-JS compiler" .
|
|
30
|
-
in:run see:inputFacts 12 .
|
|
31
|
-
in:run see:compiledRules 8 .
|
|
32
|
-
in:run see:compiledBackwardRules 0 .
|
|
33
|
-
in:run see:compiledFuses 0 .
|
|
34
|
-
in:run see:compiledQueries 1 .
|
|
35
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
@prefix math: <http://www.w3.org/2000/10/swap/math#> .
|
|
2
|
-
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
|
|
3
|
-
@prefix : <https://eyereasoner.github.io/see/examples/control-system#> .
|
|
4
|
-
@prefix see: <https://example.org/see#> .
|
|
5
|
-
@prefix in: <https://example.org/see/input#> .
|
|
6
|
-
|
|
7
|
-
# Formal SEE input evidence in RDF 1.2 TriG.
|
|
8
|
-
# The generated runner reads this TriG evidence directly.
|
|
9
|
-
|
|
10
|
-
:input1 :measurement1 (6 11) .
|
|
11
|
-
:input2 :measurement2 true .
|
|
12
|
-
:input3 :measurement3 56967 .
|
|
13
|
-
:disturbance1 :measurement3 35766 .
|
|
14
|
-
:state3 :observation3 22 .
|
|
15
|
-
:output2 :measurement4 24 .
|
|
16
|
-
:output2 :target2 29 .
|
|
17
|
-
|
|
18
|
-
in:metadata {
|
|
19
|
-
in:run a see:InputDataset .
|
|
20
|
-
in:run see:name "control_system" .
|
|
21
|
-
in:run see:title "Control System" .
|
|
22
|
-
in:run see:sourceFile "examples/n3/control_system.n3" .
|
|
23
|
-
in:run see:sourceSHA256 "0950a7098972ffc4883c2cc7410f7d54f5699111ecfc026bc88dba74ef0ffc40" .
|
|
24
|
-
in:run see:description "Compact SEE version of the EYE reasoning/control-system example." .
|
|
25
|
-
in:run see:compiler "see.js N3-to-JS compiler" .
|
|
26
|
-
in:run see:inputFacts 7 .
|
|
27
|
-
in:run see:compiledRules 2 .
|
|
28
|
-
in:run see:compiledBackwardRules 2 .
|
|
29
|
-
in:run see:compiledFuses 0 .
|
|
30
|
-
in:run see:compiledQueries 1 .
|
|
31
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
@prefix : <https://eyereasoner.github.io/see/examples/crypto-builtins-tests#> .
|
|
2
|
-
@prefix crypto: <http://www.w3.org/2000/10/swap/crypto#> .
|
|
3
|
-
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
|
|
4
|
-
@prefix see: <https://example.org/see#> .
|
|
5
|
-
@prefix in: <https://example.org/see/input#> .
|
|
6
|
-
|
|
7
|
-
# Formal SEE input evidence in RDF 1.2 TriG.
|
|
8
|
-
# The generated runner reads this TriG evidence directly.
|
|
9
|
-
|
|
10
|
-
# No source facts were present in the N3 program.
|
|
11
|
-
|
|
12
|
-
in:metadata {
|
|
13
|
-
in:run a see:InputDataset .
|
|
14
|
-
in:run see:name "crypto_builtins_tests" .
|
|
15
|
-
in:run see:title "crypto builtins tests" .
|
|
16
|
-
in:run see:sourceFile "examples/n3/crypto_builtins_tests.n3" .
|
|
17
|
-
in:run see:sourceSHA256 "36867ada425da37071cbc96e74a10311adbfe437adf3d8e56b4a1d95a23763b5" .
|
|
18
|
-
in:run see:description "" .
|
|
19
|
-
in:run see:compiler "see.js N3-to-JS compiler" .
|
|
20
|
-
in:run see:inputFacts 0 .
|
|
21
|
-
in:run see:compiledRules 4 .
|
|
22
|
-
in:run see:compiledBackwardRules 0 .
|
|
23
|
-
in:run see:compiledFuses 0 .
|
|
24
|
-
in:run see:compiledQueries 0 .
|
|
25
|
-
}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
@prefix : <https://eyereasoner.github.io/see/examples/delfour#> .
|
|
2
|
-
@prefix ins: <https://example.org/insight#> .
|
|
3
|
-
@prefix odrl: <http://www.w3.org/ns/odrl/2/> .
|
|
4
|
-
@prefix math: <http://www.w3.org/2000/10/swap/math#> .
|
|
5
|
-
@prefix string: <http://www.w3.org/2000/10/swap/string#> .
|
|
6
|
-
@prefix crypto: <http://www.w3.org/2000/10/swap/crypto#> .
|
|
7
|
-
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
|
|
8
|
-
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
9
|
-
@prefix see: <https://example.org/see#> .
|
|
10
|
-
@prefix in: <https://example.org/see/input#> .
|
|
11
|
-
|
|
12
|
-
# Formal SEE input evidence in RDF 1.2 TriG.
|
|
13
|
-
# The generated runner reads this TriG evidence directly.
|
|
14
|
-
|
|
15
|
-
:case rdf:type :ShoppingCase .
|
|
16
|
-
:case :caseName "delfour" .
|
|
17
|
-
:case :requestPurpose "shopping_assist" .
|
|
18
|
-
:case :requestAction odrl:use .
|
|
19
|
-
:case :scannerAuthAt "2025-10-05T20:35:48Z" .
|
|
20
|
-
:case :scannerDutyAt "2025-10-05T20:37:48Z" .
|
|
21
|
-
:case :filesWritten 6 .
|
|
22
|
-
:case :auditEntries 1 .
|
|
23
|
-
:householdProfile :condition "Diabetes" .
|
|
24
|
-
:scan :scannedProduct :classicBiscuits .
|
|
25
|
-
:classicBiscuits rdf:type :Product .
|
|
26
|
-
:classicBiscuits :productName "Classic Tea Biscuits" .
|
|
27
|
-
:classicBiscuits :sugarTenths 120 .
|
|
28
|
-
:classicBiscuits :sugarPerServing 12 .
|
|
29
|
-
:lowSugarBiscuits rdf:type :Product .
|
|
30
|
-
:lowSugarBiscuits :productName "Low-Sugar Tea Biscuits" .
|
|
31
|
-
:lowSugarBiscuits :sugarTenths 30 .
|
|
32
|
-
:lowSugarBiscuits :sugarPerServing 3 .
|
|
33
|
-
:darkChocolate rdf:type :Product .
|
|
34
|
-
:darkChocolate :productName "85% Dark Chocolate" .
|
|
35
|
-
:darkChocolate :sugarTenths 60 .
|
|
36
|
-
:darkChocolate :sugarPerServing 6 .
|
|
37
|
-
:milkChocolate rdf:type :Product .
|
|
38
|
-
:milkChocolate :productName "Milk Chocolate Bar" .
|
|
39
|
-
:milkChocolate :sugarTenths 150 .
|
|
40
|
-
:milkChocolate :sugarPerServing 15 .
|
|
41
|
-
:insight rdf:type ins:Insight .
|
|
42
|
-
:insight :metric "sugar_g_per_serving" .
|
|
43
|
-
:insight :thresholdTenths 100 .
|
|
44
|
-
:insight :thresholdDisplay "10.0" .
|
|
45
|
-
:insight :thresholdG 10 .
|
|
46
|
-
:insight :scopeDevice "self-scanner" .
|
|
47
|
-
:insight :scopeEvent "pick_up_scanner" .
|
|
48
|
-
:insight :retailer "Delfour" .
|
|
49
|
-
:insight :createdAt "2025-10-05T20:33:48Z" .
|
|
50
|
-
:insight :expiresAt "2025-10-05T22:33:48Z" .
|
|
51
|
-
:insight :serializedLowercase "metric=sugar_g_per_serving;retailer=delfour;threshold=10.0;scope=self-scanner" .
|
|
52
|
-
:policy rdf:type odrl:Policy .
|
|
53
|
-
_:blank1 odrl:action odrl:use .
|
|
54
|
-
_:blank1 odrl:target :insight .
|
|
55
|
-
_:blank2 odrl:leftOperand odrl:purpose .
|
|
56
|
-
_:blank2 odrl:operator odrl:eq .
|
|
57
|
-
_:blank2 odrl:rightOperand "shopping_assist" .
|
|
58
|
-
_:blank1 odrl:constraint _:blank2 .
|
|
59
|
-
:policy odrl:permission _:blank1 .
|
|
60
|
-
_:blank3 odrl:action odrl:distribute .
|
|
61
|
-
_:blank3 odrl:target :insight .
|
|
62
|
-
_:blank4 odrl:leftOperand odrl:purpose .
|
|
63
|
-
_:blank4 odrl:operator odrl:eq .
|
|
64
|
-
_:blank4 odrl:rightOperand "marketing" .
|
|
65
|
-
_:blank3 odrl:constraint _:blank4 .
|
|
66
|
-
:policy odrl:prohibition _:blank3 .
|
|
67
|
-
_:blank5 odrl:action odrl:delete .
|
|
68
|
-
_:blank6 odrl:leftOperand odrl:dateTime .
|
|
69
|
-
_:blank6 odrl:operator odrl:eq .
|
|
70
|
-
_:blank6 odrl:rightOperand "2025-10-05T22:33:48Z" .
|
|
71
|
-
_:blank5 odrl:constraint _:blank6 .
|
|
72
|
-
:policy odrl:duty _:blank5 .
|
|
73
|
-
:envelope :canonicalJson "insight=lower_sugar;policy=shopping_assist_only;expires=2025-10-05T22:33:48Z" .
|
|
74
|
-
:signature :alg "SHA-256" .
|
|
75
|
-
:signature :payloadHashSHA256 "9025c5ccc1cc3e97aa639e3ca2d62e65ba0abed9cf3573b487c61d8cec6b3460" .
|
|
76
|
-
|
|
77
|
-
in:metadata {
|
|
78
|
-
in:run a see:InputDataset .
|
|
79
|
-
in:run see:name "delfour" .
|
|
80
|
-
in:run see:title "Delfour" .
|
|
81
|
-
in:run see:sourceFile "examples/n3/delfour.n3" .
|
|
82
|
-
in:run see:sourceSHA256 "250631cb3de8addff7037b54789b63b2ea034eb6b579c61a9feca542efd584c1" .
|
|
83
|
-
in:run see:description "N3-compiled version of the Delfour insight-economy example. A private phone\ncondition is desensitized into a scoped low-sugar insight; the scanner may use\nit for shopping assistance, but not for marketing." .
|
|
84
|
-
in:run see:compiler "see.js N3-to-JS compiler" .
|
|
85
|
-
in:run see:inputFacts 61 .
|
|
86
|
-
in:run see:compiledRules 16 .
|
|
87
|
-
in:run see:compiledBackwardRules 0 .
|
|
88
|
-
in:run see:compiledFuses 3 .
|
|
89
|
-
in:run see:compiledQueries 1 .
|
|
90
|
-
}
|