eyeling 1.23.5 → 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/README.md +1 -0
- package/dist/browser/eyeling.browser.js +11876 -11928
- 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/see.test.js +159 -0
- package/tools/n3gen.js +1 -1
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
@prefix : <https://eyereasoner.github.io/see/examples/digital-product-passport#> .
|
|
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
|
+
:passport rdf:type :DigitalProductPassport .
|
|
13
|
+
:passport :caseName "digital_product_passport" .
|
|
14
|
+
:passport :forProduct :ACME_X1000_SN123 .
|
|
15
|
+
:passport :publicEndpoint "https://example.org/dpp/ACME-X1000-SN123" .
|
|
16
|
+
:passport :publicSection "public" .
|
|
17
|
+
:passport :restrictedSection "restricted" .
|
|
18
|
+
:ACME_X1000_SN123 rdf:type :Product .
|
|
19
|
+
:ACME_X1000_SN123 :model "ACME X1000" .
|
|
20
|
+
:ACME_X1000_SN123 :serialNumber "SN123" .
|
|
21
|
+
:ACME_X1000_SN123 :digitalLink "https://example.org/dpp/ACME-X1000-SN123" .
|
|
22
|
+
:ACME_X1000_SN123 :hasComponent :BatteryPack_01 .
|
|
23
|
+
:ACME_X1000_SN123 :hasComponent :Chassis_01 .
|
|
24
|
+
:ACME_X1000_SN123 :hasComponent :Mainboard_01 .
|
|
25
|
+
:BatteryPack_01 rdf:type :Component .
|
|
26
|
+
:BatteryPack_01 :componentLabel "BatteryPack-01 Battery" .
|
|
27
|
+
:BatteryPack_01 :type :Battery .
|
|
28
|
+
:BatteryPack_01 :massG 48 .
|
|
29
|
+
:BatteryPack_01 :recycledMassG 0 .
|
|
30
|
+
:BatteryPack_01 :replaceable true .
|
|
31
|
+
:BatteryPack_01 :containsMaterial :Lithium .
|
|
32
|
+
:BatteryPack_01 :containsMaterial :Cobalt .
|
|
33
|
+
:BatteryPack_01 :containsMaterial :Nickel .
|
|
34
|
+
:Chassis_01 rdf:type :Component .
|
|
35
|
+
:Chassis_01 :componentLabel "Chassis-01 Housing" .
|
|
36
|
+
:Chassis_01 :type :Housing .
|
|
37
|
+
:Chassis_01 :massG 32 .
|
|
38
|
+
:Chassis_01 :recycledMassG 12 .
|
|
39
|
+
:Chassis_01 :replaceable false .
|
|
40
|
+
:Chassis_01 :containsMaterial :Aluminium .
|
|
41
|
+
:Mainboard_01 rdf:type :Component .
|
|
42
|
+
:Mainboard_01 :componentLabel "Mainboard-01 Electronics" .
|
|
43
|
+
:Mainboard_01 :type :Electronics .
|
|
44
|
+
:Mainboard_01 :massG 25 .
|
|
45
|
+
:Mainboard_01 :recycledMassG 2 .
|
|
46
|
+
:Mainboard_01 :replaceable false .
|
|
47
|
+
:Mainboard_01 :containsMaterial :Copper .
|
|
48
|
+
:Mainboard_01 :containsMaterial :GoldTrace .
|
|
49
|
+
:Lithium rdf:type :Material .
|
|
50
|
+
:Lithium :criticalRawMaterial true .
|
|
51
|
+
:Lithium :materialName "Lithium" .
|
|
52
|
+
:Cobalt rdf:type :Material .
|
|
53
|
+
:Cobalt :criticalRawMaterial true .
|
|
54
|
+
:Cobalt :materialName "Cobalt" .
|
|
55
|
+
:Nickel rdf:type :Material .
|
|
56
|
+
:Nickel :criticalRawMaterial false .
|
|
57
|
+
:Nickel :materialName "Nickel" .
|
|
58
|
+
:Aluminium rdf:type :Material .
|
|
59
|
+
:Aluminium :criticalRawMaterial false .
|
|
60
|
+
:Aluminium :materialName "Aluminium" .
|
|
61
|
+
:Copper rdf:type :Material .
|
|
62
|
+
:Copper :criticalRawMaterial false .
|
|
63
|
+
:Copper :materialName "Copper" .
|
|
64
|
+
:GoldTrace rdf:type :Material .
|
|
65
|
+
:GoldTrace :criticalRawMaterial false .
|
|
66
|
+
:GoldTrace :materialName "GoldTrace" .
|
|
67
|
+
:Doc_UserManual rdf:type :Document .
|
|
68
|
+
:Doc_UserManual :docType :UserManual .
|
|
69
|
+
:Doc_UserManual :docTypeLabel "UserManual" .
|
|
70
|
+
:Doc_UserManual :section "public" .
|
|
71
|
+
:Doc_UserManual :url "https://example.org/manuals/acme-x1000" .
|
|
72
|
+
:Doc_RepairGuide rdf:type :Document .
|
|
73
|
+
:Doc_RepairGuide :docType :RepairGuide .
|
|
74
|
+
:Doc_RepairGuide :docTypeLabel "RepairGuide" .
|
|
75
|
+
:Doc_RepairGuide :section "public" .
|
|
76
|
+
:Doc_RepairGuide :url "https://example.org/repair/acme-x1000" .
|
|
77
|
+
:Doc_RepairGuide :declares :BatteryReplacementSupported .
|
|
78
|
+
:Doc_SpareParts rdf:type :Document .
|
|
79
|
+
:Doc_SpareParts :docType :SparePartsCatalog .
|
|
80
|
+
:Doc_SpareParts :docTypeLabel "SparePartsCatalog" .
|
|
81
|
+
:Doc_SpareParts :section "public" .
|
|
82
|
+
:Doc_SpareParts :url "https://example.org/spares/acme-x1000" .
|
|
83
|
+
:Doc_DoC_CE rdf:type :Document .
|
|
84
|
+
:Doc_DoC_CE :docType :DeclarationOfConformity .
|
|
85
|
+
:Doc_DoC_CE :section "restricted" .
|
|
86
|
+
:Doc_SubstanceDeclaration rdf:type :Document .
|
|
87
|
+
:Doc_SubstanceDeclaration :docType :SubstanceDeclaration .
|
|
88
|
+
:Doc_SubstanceDeclaration :section "restricted" .
|
|
89
|
+
:Policy :publicDocType :UserManual .
|
|
90
|
+
:Policy :publicDocType :RepairGuide .
|
|
91
|
+
:Policy :publicDocType :SparePartsCatalog .
|
|
92
|
+
:Policy :restrictedDocType :DeclarationOfConformity .
|
|
93
|
+
:Policy :restrictedDocType :SubstanceDeclaration .
|
|
94
|
+
:Policy :requiredPublicClaim :BatteryReplacementSupported .
|
|
95
|
+
:Footprint :manufacturingGCO2e 32000 .
|
|
96
|
+
:Footprint :transportGCO2e 2500 .
|
|
97
|
+
:Footprint :usePhaseGCO2e 18000 .
|
|
98
|
+
:Lifecycle :orderedEvents (:Event_Mfg_01 :Event_Sale_01 :Event_Repair_01) .
|
|
99
|
+
:Event_Mfg_01 :onDate "2026-01-15" .
|
|
100
|
+
:Event_Sale_01 :onDate "2026-01-25" .
|
|
101
|
+
:Event_Repair_01 :onDate "2026-02-05" .
|
|
102
|
+
|
|
103
|
+
in:metadata {
|
|
104
|
+
in:run a see:InputDataset .
|
|
105
|
+
in:run see:name "digital_product_passport" .
|
|
106
|
+
in:run see:title "Digital Product Passport" .
|
|
107
|
+
in:run see:sourceFile "examples/n3/digital_product_passport.n3" .
|
|
108
|
+
in:run see:sourceSHA256 "502e99d8e51a930eba50cb2411263cb6db5d98d63fe3dd48254612d993a9ab95" .
|
|
109
|
+
in:run see:description "N3-compiled version of the smartphone Digital Product Passport example. The\nrules fold component mass, recycled content, critical raw materials, public\ndocuments, lifecycle footprint, and access-policy validations into a public PASS." .
|
|
110
|
+
in:run see:compiler "see.js N3-to-JS compiler" .
|
|
111
|
+
in:run see:inputFacts 90 .
|
|
112
|
+
in:run see:compiledRules 12 .
|
|
113
|
+
in:run see:compiledBackwardRules 0 .
|
|
114
|
+
in:run see:compiledFuses 2 .
|
|
115
|
+
in:run see:compiledQueries 1 .
|
|
116
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@prefix list: <http://www.w3.org/2000/10/swap/list#> .
|
|
2
|
+
@prefix math: <http://www.w3.org/2000/10/swap/math#> .
|
|
3
|
+
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
|
|
4
|
+
@prefix : <https://eyereasoner.github.io/see/examples/dijkstra#> .
|
|
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
|
+
(:a :b) :edge 4 .
|
|
12
|
+
(:a :c) :edge 2 .
|
|
13
|
+
(:b :c) :edge 1 .
|
|
14
|
+
(:b :d) :edge 5 .
|
|
15
|
+
(:c :d) :edge 8 .
|
|
16
|
+
(:c :e) :edge 10 .
|
|
17
|
+
(:d :e) :edge 2 .
|
|
18
|
+
(:d :f) :edge 6 .
|
|
19
|
+
(:e :f) :edge 3 .
|
|
20
|
+
|
|
21
|
+
in:metadata {
|
|
22
|
+
in:run a see:InputDataset .
|
|
23
|
+
in:run see:name "dijkstra" .
|
|
24
|
+
in:run see:title "Dijkstra's algorithm to find the shortest path" .
|
|
25
|
+
in:run see:sourceFile "examples/n3/dijkstra.n3" .
|
|
26
|
+
in:run see:sourceSHA256 "e877c1cfea99078228bd424f6e55761e56cc54bc1e64b21540231620cc3620ab" .
|
|
27
|
+
in:run see:description "" .
|
|
28
|
+
in:run see:compiler "see.js N3-to-JS compiler" .
|
|
29
|
+
in:run see:inputFacts 9 .
|
|
30
|
+
in:run see:compiledRules 2 .
|
|
31
|
+
in:run see:compiledBackwardRules 3 .
|
|
32
|
+
in:run see:compiledFuses 0 .
|
|
33
|
+
in:run see:compiledQueries 0 .
|
|
34
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
@prefix : <https://eyereasoner.github.io/see/examples/dijkstra-risk-path#> .
|
|
2
|
+
@prefix math: <http://www.w3.org/2000/10/swap/math#> .
|
|
3
|
+
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
|
|
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 :question "Which clinic-to-hub route has the lowest risk-adjusted score?" .
|
|
12
|
+
:Case :start :ClinicA .
|
|
13
|
+
:Case :goal :HubZ .
|
|
14
|
+
:Case :riskWeight 2 .
|
|
15
|
+
:pathB :routeText "ClinicA -> DepotB -> LabD -> HubZ" .
|
|
16
|
+
:pathB :rawCost 10 .
|
|
17
|
+
:pathB :riskSum 0.55 .
|
|
18
|
+
:pathB :score 11.1 .
|
|
19
|
+
:pathB :edgeCount 3 .
|
|
20
|
+
:pathB :uses :ClinicA .
|
|
21
|
+
:pathB :uses :DepotB .
|
|
22
|
+
:pathB :uses :LabD .
|
|
23
|
+
:pathB :uses :HubZ .
|
|
24
|
+
:pathC :score 11.3 .
|
|
25
|
+
:pathRelay :score 11.7 .
|
|
26
|
+
:pathDirectC :rawCost 10 .
|
|
27
|
+
:pathDirectC :score 11.6 .
|
|
28
|
+
:pathDirectC :riskSum 0.8 .
|
|
29
|
+
:pathViaC :rawCost 8 .
|
|
30
|
+
:pathViaC :score 11.2 .
|
|
31
|
+
:pathViaC :riskSum 1.6 .
|
|
32
|
+
|
|
33
|
+
in:metadata {
|
|
34
|
+
in:run a see:InputDataset .
|
|
35
|
+
in:run see:name "dijkstra_risk_path" .
|
|
36
|
+
in:run see:title "Dijkstra Risk Path" .
|
|
37
|
+
in:run see:sourceFile "examples/n3/dijkstra_risk_path.n3" .
|
|
38
|
+
in:run see:sourceSHA256 "a11f23a58252e557817c5d26cabdfee5ce8c5c08a40a54ab680eaa8960c88937" .
|
|
39
|
+
in:run see:description "N3-compiled version of the risk-adjusted route example. The original JSON\ninput is preserved as the data-input sidecar; this source compiles the\nexecutable derivation and report." .
|
|
40
|
+
in:run see:compiler "see.js N3-to-JS compiler" .
|
|
41
|
+
in:run see:inputFacts 21 .
|
|
42
|
+
in:run see:compiledRules 3 .
|
|
43
|
+
in:run see:compiledBackwardRules 0 .
|
|
44
|
+
in:run see:compiledFuses 0 .
|
|
45
|
+
in:run see:compiledQueries 1 .
|
|
46
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
|
|
2
|
+
@prefix math: <http://www.w3.org/2000/10/swap/math#> .
|
|
3
|
+
@prefix : <https://eyereasoner.github.io/ns#> .
|
|
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
|
+
:alice :hasDog :dog1 .
|
|
11
|
+
:alice :hasDog :dog2 .
|
|
12
|
+
:alice :hasDog :dog3 .
|
|
13
|
+
:alice :hasDog :dog4 .
|
|
14
|
+
:alice :hasDog :dog5 .
|
|
15
|
+
:bob :hasDog :dog6 .
|
|
16
|
+
:bob :hasDog :dog7 .
|
|
17
|
+
|
|
18
|
+
in:metadata {
|
|
19
|
+
in:run a see:InputDataset .
|
|
20
|
+
in:run see:name "dog" .
|
|
21
|
+
in:run see:title "Dog license example" .
|
|
22
|
+
in:run see:sourceFile "examples/n3/dog.n3" .
|
|
23
|
+
in:run see:sourceSHA256 "3487cceaf7e09eac16d9048cca2140bd1a474a2da0bf2091ffc0e0e5f87b3167" .
|
|
24
|
+
in:run see:description "If you have more than 4 dogs you need a license." .
|
|
25
|
+
in:run see:compiler "see.js N3-to-JS compiler" .
|
|
26
|
+
in:run see:inputFacts 7 .
|
|
27
|
+
in:run see:compiledRules 1 .
|
|
28
|
+
in:run see:compiledBackwardRules 0 .
|
|
29
|
+
in:run see:compiledFuses 0 .
|
|
30
|
+
in:run see:compiledQueries 0 .
|
|
31
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
@prefix : <https://eyereasoner.github.io/see/examples/eco-route-insight#> .
|
|
2
|
+
@prefix math: <http://www.w3.org/2000/10/swap/math#> .
|
|
3
|
+
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
|
|
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
|
+
:Scenario :driver "Jamal" .
|
|
12
|
+
:Scenario :audience "Depot X" .
|
|
13
|
+
:Scenario :allowedUse "ui.eco.banner" .
|
|
14
|
+
:Scenario :issuedAt "2025-01-01T09:00:00Z" .
|
|
15
|
+
:Scenario :expiresAt "2025-01-01T11:00:00Z" .
|
|
16
|
+
:Policy :fuelIndexThreshold 120 .
|
|
17
|
+
:Policy :maxEtaDelayMinutes 5 .
|
|
18
|
+
:Policy :allowedUse "ui.eco.banner" .
|
|
19
|
+
:Policy :signatureAlgorithm "HMAC-SHA256" .
|
|
20
|
+
:Shipment :id "shipment-1" .
|
|
21
|
+
:Shipment :payloadTons 2.5 .
|
|
22
|
+
:currentRoute :id "current-route" .
|
|
23
|
+
:currentRoute :label "Current urban route" .
|
|
24
|
+
:currentRoute :distanceKm 42 .
|
|
25
|
+
:currentRoute :gradientFactor 1.15 .
|
|
26
|
+
:currentRoute :etaMinutes 64 .
|
|
27
|
+
:currentRoute :fuelIndex 120.75 .
|
|
28
|
+
:altLowFuel :id "alt-low-fuel" .
|
|
29
|
+
:altLowFuel :label "Lower-fuel route" .
|
|
30
|
+
:altLowFuel :distanceKm 38 .
|
|
31
|
+
:altLowFuel :gradientFactor 1.05 .
|
|
32
|
+
:altLowFuel :etaMinutes 66 .
|
|
33
|
+
:altLowFuel :fuelIndex 99.75 .
|
|
34
|
+
:altHillyShortcut :id "alt-hilly-shortcut" .
|
|
35
|
+
:altHillyShortcut :label "Shorter hilly shortcut" .
|
|
36
|
+
:altHillyShortcut :distanceKm 35 .
|
|
37
|
+
:altHillyShortcut :gradientFactor 1.42 .
|
|
38
|
+
:altHillyShortcut :etaMinutes 63 .
|
|
39
|
+
:altHillyShortcut :fuelIndex 124.25 .
|
|
40
|
+
:Envelope :rawDataExported "no" .
|
|
41
|
+
:Envelope :payloadDigest "00e19becd91e81d6881749655d23d43002d9ea714bba61e855eafbc8ef9a5135" .
|
|
42
|
+
:Envelope :signatureKey "local-demo-key" .
|
|
43
|
+
:Envelope :signature "7fFGBN8fyI7xrmRz5VreeAUSf3LC_ywbj32NGk2ovUs" .
|
|
44
|
+
|
|
45
|
+
in:metadata {
|
|
46
|
+
in:run a see:InputDataset .
|
|
47
|
+
in:run see:name "eco_route_insight" .
|
|
48
|
+
in:run see:title "Eco Route Insight" .
|
|
49
|
+
in:run see:sourceFile "examples/n3/eco_route_insight.n3" .
|
|
50
|
+
in:run see:sourceSHA256 "b5af0caa2e473b5957ba8cec647ee4e2edf4cdc2a5c28110e8536c19381b0bd3" .
|
|
51
|
+
in:run see:description "N3-compiled version of the privacy-preserving eco route insight. The JSON\ninput remains the data-input sidecar; this source compiles the local decision\nand signed-envelope explanation." .
|
|
52
|
+
in:run see:compiler "see.js N3-to-JS compiler" .
|
|
53
|
+
in:run see:inputFacts 33 .
|
|
54
|
+
in:run see:compiledRules 2 .
|
|
55
|
+
in:run see:compiledBackwardRules 0 .
|
|
56
|
+
in:run see:compiledFuses 0 .
|
|
57
|
+
in:run see:compiledQueries 1 .
|
|
58
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
|
2
|
+
@prefix : <http://example.org/socrates#> .
|
|
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
|
+
:X owl:sameAs :Y .
|
|
11
|
+
|
|
12
|
+
in:metadata {
|
|
13
|
+
in:run a see:InputDataset .
|
|
14
|
+
in:run see:name "equals" .
|
|
15
|
+
in:run see:title "Equals test" .
|
|
16
|
+
in:run see:sourceFile "examples/n3/equals.n3" .
|
|
17
|
+
in:run see:sourceSHA256 "29dfd303c09b0b2f05c637d6a56b6e3b198053a0732aa179ca3e75265dfb8003" .
|
|
18
|
+
in:run see:description "Example from Patrick Hochstenbach" .
|
|
19
|
+
in:run see:compiler "see.js N3-to-JS compiler" .
|
|
20
|
+
in:run see:inputFacts 1 .
|
|
21
|
+
in:run see:compiledRules 1 .
|
|
22
|
+
in:run see:compiledBackwardRules 0 .
|
|
23
|
+
in:run see:compiledFuses 0 .
|
|
24
|
+
in:run see:compiledQueries 0 .
|
|
25
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
:c :inX true .
|
|
12
|
+
:b :sim :a .
|
|
13
|
+
:b :sim :c .
|
|
14
|
+
|
|
15
|
+
in:metadata {
|
|
16
|
+
in:run a see:InputDataset .
|
|
17
|
+
in:run see:name "equivalence_classes_overlap_implies_same_class" .
|
|
18
|
+
in:run see:title "If two equivalence classes share an element, they are the same class." .
|
|
19
|
+
in:run see:sourceFile "examples/n3/equivalence_classes_overlap_implies_same_class.n3" .
|
|
20
|
+
in:run see:sourceSHA256 "b36ed917f7af601a38f6a1657ce4956a4e38484573c40d0a963e3008cbb46f5f" .
|
|
21
|
+
in:run see:description "" .
|
|
22
|
+
in:run see:compiler "see.js N3-to-JS compiler" .
|
|
23
|
+
in:run see:inputFacts 5 .
|
|
24
|
+
in:run see:compiledRules 7 .
|
|
25
|
+
in:run see:compiledBackwardRules 0 .
|
|
26
|
+
in:run see:compiledFuses 0 .
|
|
27
|
+
in:run see:compiledQueries 1 .
|
|
28
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@prefix : <https://eyereasoner.github.io/see/examples/euler-identity#> .
|
|
2
|
+
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
|
|
3
|
+
@prefix math: <http://www.w3.org/2000/10/swap/math#> .
|
|
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
|
+
:EulerIdentity rdf:type :ExactComplexEquation .
|
|
11
|
+
:EulerIdentity :name "Euler identity" .
|
|
12
|
+
:EulerIdentity :formula "exp(i*pi) + 1 = 0" .
|
|
13
|
+
:EulerIdentity :usesPhase :phasePi .
|
|
14
|
+
:one rdf:type :ComplexNumber .
|
|
15
|
+
:one :exact (1 0) .
|
|
16
|
+
:zero rdf:type :ComplexNumber .
|
|
17
|
+
:zero :exact (0 0) .
|
|
18
|
+
:phasePi rdf:type :ComplexPhase .
|
|
19
|
+
:phasePi :definedAs "cos(pi) + i sin(pi)" .
|
|
20
|
+
|
|
21
|
+
in:metadata {
|
|
22
|
+
in:run a see:InputDataset .
|
|
23
|
+
in:run see:name "euler_identity" .
|
|
24
|
+
in:run see:title "Euler identity (exact, certificate-friendly):" .
|
|
25
|
+
in:run see:sourceFile "examples/n3/euler_identity.n3" .
|
|
26
|
+
in:run see:sourceSHA256 "8a0467bd923b3774627c99aa4cc9fe34baaa0bbaff1847399cd025d24b39c17a" .
|
|
27
|
+
in:run see:description "exp(i*pi) + 1 = 0\nPhilosophy:\nUnlike the T-gate example, this phase needs no approximation. exp(i*pi) lands exactly at\n(-1,0) = cos(pi) + i sin(pi), so the identity can be certified using integer arithmetic\nalone.\nMethod:\n1) Construct -1 as 0 - 1.\n2) Represent exp(i*pi) exactly as (-1, 0).\n3) Add 1 componentwise to obtain (0, 0).\n4) Sanity validation the phase modulus: |-1 + 0i|^2 = 1.\n5) Project only the intended certificates via log:query." .
|
|
28
|
+
in:run see:compiler "see.js N3-to-JS compiler" .
|
|
29
|
+
in:run see:inputFacts 10 .
|
|
30
|
+
in:run see:compiledRules 5 .
|
|
31
|
+
in:run see:compiledBackwardRules 0 .
|
|
32
|
+
in:run see:compiledFuses 0 .
|
|
33
|
+
in:run see:compiledQueries 1 .
|
|
34
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
@prefix : <https://eyereasoner.github.io/see/examples/ev-roundtrip-planner#> .
|
|
2
|
+
@prefix gps: <https://eyereasoner.github.io/see/examples/gps#> .
|
|
3
|
+
@prefix math: <http://www.w3.org/2000/10/swap/math#> .
|
|
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
|
+
:Thresholds :minBelief 0.93 .
|
|
13
|
+
:Thresholds :maxCost 0.09 .
|
|
14
|
+
:Thresholds :maxDuration 260 .
|
|
15
|
+
:Start :city :Brussels .
|
|
16
|
+
:Start :battery :high .
|
|
17
|
+
:Start :pass :none .
|
|
18
|
+
:Goal :city :Cologne .
|
|
19
|
+
:plan1 rdf:type gps:Plan .
|
|
20
|
+
:plan1 gps:actions "drive_bru_liege -> drive_liege_aachen -> shuttle_aachen_cologne" .
|
|
21
|
+
:plan1 gps:duration 210 .
|
|
22
|
+
:plan1 gps:cost 0.054 .
|
|
23
|
+
:plan1 gps:belief 0.974175 .
|
|
24
|
+
:plan1 gps:comfort 0.89832 .
|
|
25
|
+
:plan1 gps:finalCity "Cologne" .
|
|
26
|
+
:plan1 gps:finalBattery "low" .
|
|
27
|
+
:plan1 gps:finalPass "none" .
|
|
28
|
+
:plan1 gps:fuelRemaining 5 .
|
|
29
|
+
:plan1 gps:rank 1 .
|
|
30
|
+
:plan2 rdf:type gps:Plan .
|
|
31
|
+
:plan2 gps:actions "buy_pass_brussels -> drive_bru_liege -> drive_liege_aachen -> shuttle_aachen_cologne" .
|
|
32
|
+
:plan2 gps:duration 220 .
|
|
33
|
+
:plan2 gps:cost 0.058 .
|
|
34
|
+
:plan2 gps:belief 0.973201 .
|
|
35
|
+
:plan2 gps:comfort 0.889337 .
|
|
36
|
+
:plan2 gps:finalCity "Cologne" .
|
|
37
|
+
:plan2 gps:finalBattery "low" .
|
|
38
|
+
:plan2 gps:finalPass "yes" .
|
|
39
|
+
:plan2 gps:fuelRemaining 4 .
|
|
40
|
+
:plan2 gps:rank 2 .
|
|
41
|
+
:plan3 rdf:type gps:Plan .
|
|
42
|
+
:plan3 gps:actions "buy_pass_brussels -> drive_bru_liege -> drive_liege_aachen -> fast_charge_aachen_pass -> premium_corridor_aachen_cologne" .
|
|
43
|
+
:plan3 gps:duration 220 .
|
|
44
|
+
:plan3 gps:cost 0.063 .
|
|
45
|
+
:plan3 gps:belief 0.953737 .
|
|
46
|
+
:plan3 gps:comfort 0.880398 .
|
|
47
|
+
:plan3 gps:finalCity "Cologne" .
|
|
48
|
+
:plan3 gps:finalBattery "low" .
|
|
49
|
+
:plan3 gps:finalPass "yes" .
|
|
50
|
+
:plan3 gps:fuelRemaining 3 .
|
|
51
|
+
:plan3 gps:rank 3 .
|
|
52
|
+
:plan4 rdf:type gps:Plan .
|
|
53
|
+
:plan4 gps:actions "drive_bru_liege -> buy_pass_liege -> drive_liege_aachen -> shuttle_aachen_cologne" .
|
|
54
|
+
:plan4 gps:duration 225 .
|
|
55
|
+
:plan4 gps:cost 0.057 .
|
|
56
|
+
:plan4 gps:belief 0.969304 .
|
|
57
|
+
:plan4 gps:comfort 0.880354 .
|
|
58
|
+
:plan4 gps:finalCity "Cologne" .
|
|
59
|
+
:plan4 gps:finalBattery "low" .
|
|
60
|
+
:plan4 gps:finalPass "yes" .
|
|
61
|
+
:plan4 gps:fuelRemaining 4 .
|
|
62
|
+
:plan4 gps:rank 4 .
|
|
63
|
+
:plan5 rdf:type gps:Plan .
|
|
64
|
+
:plan5 gps:actions "drive_bru_liege -> buy_pass_liege -> drive_liege_aachen -> fast_charge_aachen_pass -> premium_corridor_aachen_cologne" .
|
|
65
|
+
:plan5 gps:duration 225 .
|
|
66
|
+
:plan5 gps:cost 0.062 .
|
|
67
|
+
:plan5 gps:belief 0.949918 .
|
|
68
|
+
:plan5 gps:comfort 0.871505 .
|
|
69
|
+
:plan5 gps:finalCity "Cologne" .
|
|
70
|
+
:plan5 gps:finalBattery "low" .
|
|
71
|
+
:plan5 gps:finalPass "yes" .
|
|
72
|
+
:plan5 gps:fuelRemaining 3 .
|
|
73
|
+
:plan5 gps:rank 5 .
|
|
74
|
+
:PlanSet :acceptableCount 8 .
|
|
75
|
+
:PlanSet :fuelBudget 8 .
|
|
76
|
+
|
|
77
|
+
in:metadata {
|
|
78
|
+
in:run a see:InputDataset .
|
|
79
|
+
in:run see:name "ev_roundtrip_planner" .
|
|
80
|
+
in:run see:title "EV Roadtrip Planner" .
|
|
81
|
+
in:run see:sourceFile "examples/n3/ev_roundtrip_planner.n3" .
|
|
82
|
+
in:run see:sourceSHA256 "0adbefa76f008fdb320ee926631bf5e997a8c3b8b7159ec8c3c9111db3437c65" .
|
|
83
|
+
in:run see:description "N3-compiled version of the hand-written EV roadtrip planner. Candidate plans\nare represented as data; rules apply the same acceptance thresholds and select\nthe fastest acceptable route." .
|
|
84
|
+
in:run see:compiler "see.js N3-to-JS compiler" .
|
|
85
|
+
in:run see:inputFacts 64 .
|
|
86
|
+
in:run see:compiledRules 3 .
|
|
87
|
+
in:run see:compiledBackwardRules 0 .
|
|
88
|
+
in:run see:compiledFuses 1 .
|
|
89
|
+
in:run see:compiledQueries 1 .
|
|
90
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
2
|
+
@prefix : <https://eyereasoner.github.io/eye/reasoning#> .
|
|
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
|
+
:Socrates rdf:type :Human .
|
|
11
|
+
:Plato rdf:type :Human .
|
|
12
|
+
|
|
13
|
+
in:metadata {
|
|
14
|
+
in:run a see:InputDataset .
|
|
15
|
+
in:run see:name "existential_rule" .
|
|
16
|
+
in:run see:title "Existential rule" .
|
|
17
|
+
in:run see:sourceFile "examples/n3/existential_rule.n3" .
|
|
18
|
+
in:run see:sourceSHA256 "f47b48d679b4bf2149782d40e01abb6f0d72cbbd0582bd7ab8a0ed2046f991f7" .
|
|
19
|
+
in:run see:description "" .
|
|
20
|
+
in:run see:compiler "see.js N3-to-JS compiler" .
|
|
21
|
+
in:run see:inputFacts 2 .
|
|
22
|
+
in:run see:compiledRules 1 .
|
|
23
|
+
in:run see:compiledBackwardRules 0 .
|
|
24
|
+
in:run see:compiledFuses 0 .
|
|
25
|
+
in:run see:compiledQueries 0 .
|
|
26
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@prefix math: <http://www.w3.org/2000/10/swap/math#> .
|
|
2
|
+
@prefix : <https://eyereasoner.github.io/eye/reasoning#> .
|
|
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
|
+
:n2 :n 2 .
|
|
11
|
+
:n3 :n 3 .
|
|
12
|
+
:n10 :n 10 .
|
|
13
|
+
:n4 :n 4 .
|
|
14
|
+
:eMul rdf:type :Expr .
|
|
15
|
+
:eMul :op :mul .
|
|
16
|
+
:eMul :left :n2 .
|
|
17
|
+
:eMul :right :n3 .
|
|
18
|
+
:eSub rdf:type :Expr .
|
|
19
|
+
:eSub :op :sub .
|
|
20
|
+
:eSub :left :n10 .
|
|
21
|
+
:eSub :right :n4 .
|
|
22
|
+
:eAdd rdf:type :Expr .
|
|
23
|
+
:eAdd :op :add .
|
|
24
|
+
:eAdd :left :eMul .
|
|
25
|
+
:eAdd :right :eSub .
|
|
26
|
+
:Root :expr :eAdd .
|
|
27
|
+
|
|
28
|
+
in:metadata {
|
|
29
|
+
in:run a see:InputDataset .
|
|
30
|
+
in:run see:name "expression_eval" .
|
|
31
|
+
in:run see:title "A tiny expression evaluator in N3" .
|
|
32
|
+
in:run see:sourceFile "examples/n3/expression_eval.n3" .
|
|
33
|
+
in:run see:sourceSHA256 "8b33d5122b55a40c19af6d1504d29871bcd864dce595d6824acd4515d76e360c" .
|
|
34
|
+
in:run see:description "" .
|
|
35
|
+
in:run see:compiler "see.js N3-to-JS compiler" .
|
|
36
|
+
in:run see:inputFacts 17 .
|
|
37
|
+
in:run see:compiledRules 1 .
|
|
38
|
+
in:run see:compiledBackwardRules 4 .
|
|
39
|
+
in:run see:compiledFuses 0 .
|
|
40
|
+
in:run see:compiledQueries 0 .
|
|
41
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@prefix : <http://example.org/family#> .
|
|
2
|
+
@prefix math: <http://www.w3.org/2000/10/swap/math#> .
|
|
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
|
+
:Adam :parentOf :Bob .
|
|
11
|
+
:Adam :parentOf :Carol .
|
|
12
|
+
:Bob :parentOf :Dave .
|
|
13
|
+
:Bob :parentOf :Eve .
|
|
14
|
+
:Carol :parentOf :Frank .
|
|
15
|
+
:Carol :parentOf :Grace .
|
|
16
|
+
:Dave :parentOf :Heidi .
|
|
17
|
+
:Eve :parentOf :Ivan .
|
|
18
|
+
:Frank :parentOf :Judy .
|
|
19
|
+
:Dave :branch :b .
|
|
20
|
+
:Eve :branch :b .
|
|
21
|
+
:Frank :branch :c .
|
|
22
|
+
:Grace :branch :c .
|
|
23
|
+
:b :differentFrom :c .
|
|
24
|
+
:c :differentFrom :b .
|
|
25
|
+
|
|
26
|
+
in:metadata {
|
|
27
|
+
in:run a see:InputDataset .
|
|
28
|
+
in:run see:name "family_cousins" .
|
|
29
|
+
in:run see:title "Family cousins" .
|
|
30
|
+
in:run see:sourceFile "examples/n3/family_cousins.n3" .
|
|
31
|
+
in:run see:sourceSHA256 "5254e987fd72e71aafad53c8e3e9eb91d034cfd06878fcd02f611539200ab3e4" .
|
|
32
|
+
in:run see:description "" .
|
|
33
|
+
in:run see:compiler "see.js N3-to-JS compiler" .
|
|
34
|
+
in:run see:inputFacts 15 .
|
|
35
|
+
in:run see:compiledRules 4 .
|
|
36
|
+
in:run see:compiledBackwardRules 0 .
|
|
37
|
+
in:run see:compiledFuses 0 .
|
|
38
|
+
in:run see:compiledQueries 0 .
|
|
39
|
+
}
|