eyeling 1.6.13 → 1.6.15
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 +8 -19
- package/examples/output/age.n3 +0 -17
- package/examples/output/alignment-demo.n3 +0 -572
- package/examples/output/backward.n3 +0 -15
- package/examples/output/basic-monadic.n3 +0 -105
- package/examples/output/brussels-brew-club.n3 +0 -476
- package/examples/output/cat-koko.n3 +0 -108
- package/examples/output/cobalt-kepler-kitchen.n3 +0 -7064
- package/examples/output/complex.n3 +0 -46
- package/examples/output/control-system.n3 +0 -75
- package/examples/output/cranberry-calculus.n3 +0 -1313
- package/examples/output/crypto-builtins-tests.n3 +0 -60
- package/examples/output/deep-taxonomy-10.n3 +0 -602
- package/examples/output/deep-taxonomy-100.n3 +1 -5733
- package/examples/output/deep-taxonomy-1000.n3 +1 -57033
- package/examples/output/deep-taxonomy-10000.n3 +1 -570033
- package/examples/output/derived-backward-rule-2.n3 +0 -58
- package/examples/output/derived-backward-rule.n3 +0 -44
- package/examples/output/derived-rule.n3 +0 -42
- package/examples/output/dijkstra.n3 +0 -297
- package/examples/output/dog.n3 +0 -30
- package/examples/output/drone-corridor-planner.n3 +0 -799
- package/examples/output/easter.n3 +0 -3570
- package/examples/output/equals.n3 +0 -15
- package/examples/output/ev-roundtrip-planner.n3 +0 -392
- package/examples/output/existential-rule.n3 +0 -34
- package/examples/output/expression-eval.n3 +0 -20
- package/examples/output/family-cousins.n3 +0 -636
- package/examples/output/fibonacci.n3 +0 -36
- package/examples/output/french-cities.n3 +0 -484
- package/examples/output/good-cobbler.n3 +0 -22
- package/examples/output/gps.n3 +0 -62
- package/examples/output/gray-code-counter.n3 +0 -17
- package/examples/output/hanoi.n3 +0 -17
- package/examples/output/jade-eigen-loom.n3 +0 -4690
- package/examples/output/json-pointer.n3 +0 -529
- package/examples/output/json-reconcile-vat.n3 +0 -12882
- package/examples/output/light-eaters.n3 +0 -311
- package/examples/output/list-builtins-tests.n3 +0 -167
- package/examples/output/list-iterate.n3 +0 -124
- package/examples/output/lldm.n3 +0 -960
- package/examples/output/log-collect-all-in.n3 +0 -117
- package/examples/output/log-for-all-in.n3 +0 -27
- package/examples/output/log-not-includes.n3 +0 -59
- package/examples/output/log-skolem.n3 +0 -17
- package/examples/output/log-uri.n3 +0 -42
- package/examples/output/math-builtins-tests.n3 +0 -4434
- package/examples/output/minimal-skos-alignment.n3 +0 -39
- package/examples/output/monkey.n3 +0 -36
- package/examples/output/odrl-trust.n3 +0 -46
- package/examples/output/oslo-steps-library-scholarly.n3 +0 -1260
- package/examples/output/oslo-steps-workflow-composition.n3 +0 -180
- package/examples/output/peano.n3 +0 -23
- package/examples/output/pi.n3 +0 -17
- package/examples/output/pillar.n3 +0 -32
- package/examples/output/polygon.n3 +0 -17
- package/examples/output/rdf-list.n3 +0 -28
- package/examples/output/reordering.n3 +0 -26
- package/examples/output/ruby-runge-workshop.n3 +0 -613
- package/examples/output/rule-matching.n3 +0 -26
- package/examples/output/saffron-slopeworks.n3 +0 -1447
- package/examples/output/self-referential.n3 +0 -81
- package/examples/output/similar.n3 +0 -15
- package/examples/output/snaf.n3 +0 -23
- package/examples/output/socrates.n3 +0 -21
- package/examples/output/spectral-week.n3 +0 -350
- package/examples/output/string-builtins-tests.n3 +0 -240
- package/examples/output/topaz-markov-mill.n3 +0 -4178
- package/examples/output/traffic-skos-aggregate.n3 +0 -3151
- package/examples/output/turing.n3 +0 -36
- package/examples/output/ultramarine-simpson-forge.n3 +0 -3873
- package/examples/output/witch.n3 +0 -107
- package/examples/output/zebra.n3 +0 -111
- package/eyeling.js +129 -25
- package/index.js +13 -6
- package/package.json +1 -1
- package/test/examples.test.js +1 -1
|
@@ -1,18 +1,3 @@
|
|
|
1
1
|
@prefix : <http://example.org/socrates#> .
|
|
2
2
|
|
|
3
|
-
# ----------------------------------------------------------------------
|
|
4
|
-
# Proof for derived triple:
|
|
5
|
-
# :test :is true .
|
|
6
|
-
# It holds because the following instance of the rule body is provable:
|
|
7
|
-
# :X = :Y .
|
|
8
|
-
# via the schematic forward rule:
|
|
9
|
-
# {
|
|
10
|
-
# :X = :Y .
|
|
11
|
-
# } => {
|
|
12
|
-
# :test :is true .
|
|
13
|
-
# } .
|
|
14
|
-
# Therefore the derived triple above is entailed by the rules and facts.
|
|
15
|
-
# ----------------------------------------------------------------------
|
|
16
|
-
|
|
17
3
|
:test :is true .
|
|
18
|
-
|
|
@@ -2,403 +2,11 @@
|
|
|
2
2
|
@prefix gps: <https://eyereasoner.github.io/eye/reasoning/gps/gps-schema#> .
|
|
3
3
|
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
4
4
|
|
|
5
|
-
# ----------------------------------------------------------------------
|
|
6
|
-
# Proof for derived triple:
|
|
7
|
-
# :car1 gps:plan ((:buy_pass_brussels :drive_bru_liege :drive_liege_aachen :fast_charge_aachen_pass :public_road_aachen_cologne) "235"^^xsd:decimal "0.054000000000000006"^^xsd:decimal "0.94887065827125"^^xsd:decimal "0.8494295039999998"^^xsd:decimal :low :yes (:t :t :t)) .
|
|
8
|
-
# It holds because the following instance of the rule body is provable:
|
|
9
|
-
# :fuel8 :value (:t :t :t :t :t :t :t :t) .
|
|
10
|
-
# ({
|
|
11
|
-
# :car1 :at :Brussels .
|
|
12
|
-
# :car1 :battery :high .
|
|
13
|
-
# :car1 :pass :none .
|
|
14
|
-
# } {
|
|
15
|
-
# :car1 :at :Cologne .
|
|
16
|
-
# :car1 :battery :low .
|
|
17
|
-
# :car1 :pass :yes .
|
|
18
|
-
# } (:buy_pass_brussels :drive_bru_liege :drive_liege_aachen :fast_charge_aachen_pass :public_road_aachen_cologne) "235"^^xsd:decimal "0.054000000000000006"^^xsd:decimal "0.94887065827125"^^xsd:decimal "0.8494295039999998"^^xsd:decimal (:t :t :t :t :t :t :t :t) (:t :t :t)) :path true .
|
|
19
|
-
# "0.94887065827125"^^xsd:decimal math:greaterThan 0.93 .
|
|
20
|
-
# "0.054000000000000006"^^xsd:decimal math:lessThan 0.090 .
|
|
21
|
-
# "235"^^xsd:decimal math:lessThan 260.0 .
|
|
22
|
-
# via the schematic forward rule:
|
|
23
|
-
# {
|
|
24
|
-
# :fuel8 :value ?Fuel .
|
|
25
|
-
# ({
|
|
26
|
-
# :car1 :at :Brussels .
|
|
27
|
-
# :car1 :battery :high .
|
|
28
|
-
# :car1 :pass :none .
|
|
29
|
-
# } {
|
|
30
|
-
# :car1 :at :Cologne .
|
|
31
|
-
# :car1 :battery ?B .
|
|
32
|
-
# :car1 :pass ?P .
|
|
33
|
-
# } ?Acts ?Dur ?Cost ?Bel ?Comf ?Fuel ?FuelLeft) :path true .
|
|
34
|
-
# ?Bel math:greaterThan 0.93 .
|
|
35
|
-
# ?Cost math:lessThan 0.090 .
|
|
36
|
-
# ?Dur math:lessThan 260.0 .
|
|
37
|
-
# } => {
|
|
38
|
-
# :car1 gps:plan (?Acts ?Dur ?Cost ?Bel ?Comf ?B ?P ?FuelLeft) .
|
|
39
|
-
# } .
|
|
40
|
-
# with substitution (on rule variables):
|
|
41
|
-
# ?Acts = (:buy_pass_brussels :drive_bru_liege :drive_liege_aachen :fast_charge_aachen_pass :public_road_aachen_cologne)
|
|
42
|
-
# ?B = :low
|
|
43
|
-
# ?Bel = "0.94887065827125"^^xsd:decimal
|
|
44
|
-
# ?Comf = "0.8494295039999998"^^xsd:decimal
|
|
45
|
-
# ?Cost = "0.054000000000000006"^^xsd:decimal
|
|
46
|
-
# ?Dur = "235"^^xsd:decimal
|
|
47
|
-
# ?Fuel = (:t :t :t :t :t :t :t :t)
|
|
48
|
-
# ?FuelLeft = (:t :t :t)
|
|
49
|
-
# ?P = :yes
|
|
50
|
-
# Therefore the derived triple above is entailed by the rules and facts.
|
|
51
|
-
# ----------------------------------------------------------------------
|
|
52
|
-
|
|
53
5
|
:car1 gps:plan ((:buy_pass_brussels :drive_bru_liege :drive_liege_aachen :fast_charge_aachen_pass :public_road_aachen_cologne) "235"^^xsd:decimal "0.054000000000000006"^^xsd:decimal "0.94887065827125"^^xsd:decimal "0.8494295039999998"^^xsd:decimal :low :yes (:t :t :t)) .
|
|
54
|
-
|
|
55
|
-
# ----------------------------------------------------------------------
|
|
56
|
-
# Proof for derived triple:
|
|
57
|
-
# :car1 gps:plan ((:buy_pass_brussels :drive_bru_liege :drive_liege_aachen :fast_charge_aachen_pass :premium_corridor_aachen_cologne) "220"^^xsd:decimal "0.063"^^xsd:decimal "0.953736661647"^^xsd:decimal "0.880398288"^^xsd:decimal :low :yes (:t :t :t)) .
|
|
58
|
-
# It holds because the following instance of the rule body is provable:
|
|
59
|
-
# :fuel8 :value (:t :t :t :t :t :t :t :t) .
|
|
60
|
-
# ({
|
|
61
|
-
# :car1 :at :Brussels .
|
|
62
|
-
# :car1 :battery :high .
|
|
63
|
-
# :car1 :pass :none .
|
|
64
|
-
# } {
|
|
65
|
-
# :car1 :at :Cologne .
|
|
66
|
-
# :car1 :battery :low .
|
|
67
|
-
# :car1 :pass :yes .
|
|
68
|
-
# } (:buy_pass_brussels :drive_bru_liege :drive_liege_aachen :fast_charge_aachen_pass :premium_corridor_aachen_cologne) "220"^^xsd:decimal "0.063"^^xsd:decimal "0.953736661647"^^xsd:decimal "0.880398288"^^xsd:decimal (:t :t :t :t :t :t :t :t) (:t :t :t)) :path true .
|
|
69
|
-
# "0.953736661647"^^xsd:decimal math:greaterThan 0.93 .
|
|
70
|
-
# "0.063"^^xsd:decimal math:lessThan 0.090 .
|
|
71
|
-
# "220"^^xsd:decimal math:lessThan 260.0 .
|
|
72
|
-
# via the schematic forward rule:
|
|
73
|
-
# {
|
|
74
|
-
# :fuel8 :value ?Fuel .
|
|
75
|
-
# ({
|
|
76
|
-
# :car1 :at :Brussels .
|
|
77
|
-
# :car1 :battery :high .
|
|
78
|
-
# :car1 :pass :none .
|
|
79
|
-
# } {
|
|
80
|
-
# :car1 :at :Cologne .
|
|
81
|
-
# :car1 :battery ?B .
|
|
82
|
-
# :car1 :pass ?P .
|
|
83
|
-
# } ?Acts ?Dur ?Cost ?Bel ?Comf ?Fuel ?FuelLeft) :path true .
|
|
84
|
-
# ?Bel math:greaterThan 0.93 .
|
|
85
|
-
# ?Cost math:lessThan 0.090 .
|
|
86
|
-
# ?Dur math:lessThan 260.0 .
|
|
87
|
-
# } => {
|
|
88
|
-
# :car1 gps:plan (?Acts ?Dur ?Cost ?Bel ?Comf ?B ?P ?FuelLeft) .
|
|
89
|
-
# } .
|
|
90
|
-
# with substitution (on rule variables):
|
|
91
|
-
# ?Acts = (:buy_pass_brussels :drive_bru_liege :drive_liege_aachen :fast_charge_aachen_pass :premium_corridor_aachen_cologne)
|
|
92
|
-
# ?B = :low
|
|
93
|
-
# ?Bel = "0.953736661647"^^xsd:decimal
|
|
94
|
-
# ?Comf = "0.880398288"^^xsd:decimal
|
|
95
|
-
# ?Cost = "0.063"^^xsd:decimal
|
|
96
|
-
# ?Dur = "220"^^xsd:decimal
|
|
97
|
-
# ?Fuel = (:t :t :t :t :t :t :t :t)
|
|
98
|
-
# ?FuelLeft = (:t :t :t)
|
|
99
|
-
# ?P = :yes
|
|
100
|
-
# Therefore the derived triple above is entailed by the rules and facts.
|
|
101
|
-
# ----------------------------------------------------------------------
|
|
102
|
-
|
|
103
6
|
:car1 gps:plan ((:buy_pass_brussels :drive_bru_liege :drive_liege_aachen :fast_charge_aachen_pass :premium_corridor_aachen_cologne) "220"^^xsd:decimal "0.063"^^xsd:decimal "0.953736661647"^^xsd:decimal "0.880398288"^^xsd:decimal :low :yes (:t :t :t)) .
|
|
104
|
-
|
|
105
|
-
# ----------------------------------------------------------------------
|
|
106
|
-
# Proof for derived triple:
|
|
107
|
-
# :car1 gps:plan ((:buy_pass_brussels :drive_bru_liege :drive_liege_aachen :shuttle_aachen_cologne) "220"^^xsd:decimal "0.05800000000000001"^^xsd:decimal "0.97320067515"^^xsd:decimal "0.8893367999999999"^^xsd:decimal :low :yes (:t :t :t :t)) .
|
|
108
|
-
# It holds because the following instance of the rule body is provable:
|
|
109
|
-
# :fuel8 :value (:t :t :t :t :t :t :t :t) .
|
|
110
|
-
# ({
|
|
111
|
-
# :car1 :at :Brussels .
|
|
112
|
-
# :car1 :battery :high .
|
|
113
|
-
# :car1 :pass :none .
|
|
114
|
-
# } {
|
|
115
|
-
# :car1 :at :Cologne .
|
|
116
|
-
# :car1 :battery :low .
|
|
117
|
-
# :car1 :pass :yes .
|
|
118
|
-
# } (:buy_pass_brussels :drive_bru_liege :drive_liege_aachen :shuttle_aachen_cologne) "220"^^xsd:decimal "0.05800000000000001"^^xsd:decimal "0.97320067515"^^xsd:decimal "0.8893367999999999"^^xsd:decimal (:t :t :t :t :t :t :t :t) (:t :t :t :t)) :path true .
|
|
119
|
-
# "0.97320067515"^^xsd:decimal math:greaterThan 0.93 .
|
|
120
|
-
# "0.05800000000000001"^^xsd:decimal math:lessThan 0.090 .
|
|
121
|
-
# "220"^^xsd:decimal math:lessThan 260.0 .
|
|
122
|
-
# via the schematic forward rule:
|
|
123
|
-
# {
|
|
124
|
-
# :fuel8 :value ?Fuel .
|
|
125
|
-
# ({
|
|
126
|
-
# :car1 :at :Brussels .
|
|
127
|
-
# :car1 :battery :high .
|
|
128
|
-
# :car1 :pass :none .
|
|
129
|
-
# } {
|
|
130
|
-
# :car1 :at :Cologne .
|
|
131
|
-
# :car1 :battery ?B .
|
|
132
|
-
# :car1 :pass ?P .
|
|
133
|
-
# } ?Acts ?Dur ?Cost ?Bel ?Comf ?Fuel ?FuelLeft) :path true .
|
|
134
|
-
# ?Bel math:greaterThan 0.93 .
|
|
135
|
-
# ?Cost math:lessThan 0.090 .
|
|
136
|
-
# ?Dur math:lessThan 260.0 .
|
|
137
|
-
# } => {
|
|
138
|
-
# :car1 gps:plan (?Acts ?Dur ?Cost ?Bel ?Comf ?B ?P ?FuelLeft) .
|
|
139
|
-
# } .
|
|
140
|
-
# with substitution (on rule variables):
|
|
141
|
-
# ?Acts = (:buy_pass_brussels :drive_bru_liege :drive_liege_aachen :shuttle_aachen_cologne)
|
|
142
|
-
# ?B = :low
|
|
143
|
-
# ?Bel = "0.97320067515"^^xsd:decimal
|
|
144
|
-
# ?Comf = "0.8893367999999999"^^xsd:decimal
|
|
145
|
-
# ?Cost = "0.05800000000000001"^^xsd:decimal
|
|
146
|
-
# ?Dur = "220"^^xsd:decimal
|
|
147
|
-
# ?Fuel = (:t :t :t :t :t :t :t :t)
|
|
148
|
-
# ?FuelLeft = (:t :t :t :t)
|
|
149
|
-
# ?P = :yes
|
|
150
|
-
# Therefore the derived triple above is entailed by the rules and facts.
|
|
151
|
-
# ----------------------------------------------------------------------
|
|
152
|
-
|
|
153
7
|
:car1 gps:plan ((:buy_pass_brussels :drive_bru_liege :drive_liege_aachen :shuttle_aachen_cologne) "220"^^xsd:decimal "0.05800000000000001"^^xsd:decimal "0.97320067515"^^xsd:decimal "0.8893367999999999"^^xsd:decimal :low :yes (:t :t :t :t)) .
|
|
154
|
-
|
|
155
|
-
# ----------------------------------------------------------------------
|
|
156
|
-
# Proof for derived triple:
|
|
157
|
-
# :car1 gps:plan ((:drive_bru_liege :buy_pass_liege :drive_liege_aachen :fast_charge_aachen_pass :public_road_aachen_cologne) "240"^^xsd:decimal "0.053000000000000005"^^xsd:decimal "0.9450713763562499"^^xsd:decimal "0.8408494079999999"^^xsd:decimal :low :yes (:t :t :t)) .
|
|
158
|
-
# It holds because the following instance of the rule body is provable:
|
|
159
|
-
# :fuel8 :value (:t :t :t :t :t :t :t :t) .
|
|
160
|
-
# ({
|
|
161
|
-
# :car1 :at :Brussels .
|
|
162
|
-
# :car1 :battery :high .
|
|
163
|
-
# :car1 :pass :none .
|
|
164
|
-
# } {
|
|
165
|
-
# :car1 :at :Cologne .
|
|
166
|
-
# :car1 :battery :low .
|
|
167
|
-
# :car1 :pass :yes .
|
|
168
|
-
# } (:drive_bru_liege :buy_pass_liege :drive_liege_aachen :fast_charge_aachen_pass :public_road_aachen_cologne) "240"^^xsd:decimal "0.053000000000000005"^^xsd:decimal "0.9450713763562499"^^xsd:decimal "0.8408494079999999"^^xsd:decimal (:t :t :t :t :t :t :t :t) (:t :t :t)) :path true .
|
|
169
|
-
# "0.9450713763562499"^^xsd:decimal math:greaterThan 0.93 .
|
|
170
|
-
# "0.053000000000000005"^^xsd:decimal math:lessThan 0.090 .
|
|
171
|
-
# "240"^^xsd:decimal math:lessThan 260.0 .
|
|
172
|
-
# via the schematic forward rule:
|
|
173
|
-
# {
|
|
174
|
-
# :fuel8 :value ?Fuel .
|
|
175
|
-
# ({
|
|
176
|
-
# :car1 :at :Brussels .
|
|
177
|
-
# :car1 :battery :high .
|
|
178
|
-
# :car1 :pass :none .
|
|
179
|
-
# } {
|
|
180
|
-
# :car1 :at :Cologne .
|
|
181
|
-
# :car1 :battery ?B .
|
|
182
|
-
# :car1 :pass ?P .
|
|
183
|
-
# } ?Acts ?Dur ?Cost ?Bel ?Comf ?Fuel ?FuelLeft) :path true .
|
|
184
|
-
# ?Bel math:greaterThan 0.93 .
|
|
185
|
-
# ?Cost math:lessThan 0.090 .
|
|
186
|
-
# ?Dur math:lessThan 260.0 .
|
|
187
|
-
# } => {
|
|
188
|
-
# :car1 gps:plan (?Acts ?Dur ?Cost ?Bel ?Comf ?B ?P ?FuelLeft) .
|
|
189
|
-
# } .
|
|
190
|
-
# with substitution (on rule variables):
|
|
191
|
-
# ?Acts = (:drive_bru_liege :buy_pass_liege :drive_liege_aachen :fast_charge_aachen_pass :public_road_aachen_cologne)
|
|
192
|
-
# ?B = :low
|
|
193
|
-
# ?Bel = "0.9450713763562499"^^xsd:decimal
|
|
194
|
-
# ?Comf = "0.8408494079999999"^^xsd:decimal
|
|
195
|
-
# ?Cost = "0.053000000000000005"^^xsd:decimal
|
|
196
|
-
# ?Dur = "240"^^xsd:decimal
|
|
197
|
-
# ?Fuel = (:t :t :t :t :t :t :t :t)
|
|
198
|
-
# ?FuelLeft = (:t :t :t)
|
|
199
|
-
# ?P = :yes
|
|
200
|
-
# Therefore the derived triple above is entailed by the rules and facts.
|
|
201
|
-
# ----------------------------------------------------------------------
|
|
202
|
-
|
|
203
8
|
:car1 gps:plan ((:drive_bru_liege :buy_pass_liege :drive_liege_aachen :fast_charge_aachen_pass :public_road_aachen_cologne) "240"^^xsd:decimal "0.053000000000000005"^^xsd:decimal "0.9450713763562499"^^xsd:decimal "0.8408494079999999"^^xsd:decimal :low :yes (:t :t :t)) .
|
|
204
|
-
|
|
205
|
-
# ----------------------------------------------------------------------
|
|
206
|
-
# Proof for derived triple:
|
|
207
|
-
# :car1 gps:plan ((:drive_bru_liege :buy_pass_liege :drive_liege_aachen :fast_charge_aachen_pass :premium_corridor_aachen_cologne) "225"^^xsd:decimal "0.062"^^xsd:decimal "0.949917896235"^^xsd:decimal "0.8715053759999999"^^xsd:decimal :low :yes (:t :t :t)) .
|
|
208
|
-
# It holds because the following instance of the rule body is provable:
|
|
209
|
-
# :fuel8 :value (:t :t :t :t :t :t :t :t) .
|
|
210
|
-
# ({
|
|
211
|
-
# :car1 :at :Brussels .
|
|
212
|
-
# :car1 :battery :high .
|
|
213
|
-
# :car1 :pass :none .
|
|
214
|
-
# } {
|
|
215
|
-
# :car1 :at :Cologne .
|
|
216
|
-
# :car1 :battery :low .
|
|
217
|
-
# :car1 :pass :yes .
|
|
218
|
-
# } (:drive_bru_liege :buy_pass_liege :drive_liege_aachen :fast_charge_aachen_pass :premium_corridor_aachen_cologne) "225"^^xsd:decimal "0.062"^^xsd:decimal "0.949917896235"^^xsd:decimal "0.8715053759999999"^^xsd:decimal (:t :t :t :t :t :t :t :t) (:t :t :t)) :path true .
|
|
219
|
-
# "0.949917896235"^^xsd:decimal math:greaterThan 0.93 .
|
|
220
|
-
# "0.062"^^xsd:decimal math:lessThan 0.090 .
|
|
221
|
-
# "225"^^xsd:decimal math:lessThan 260.0 .
|
|
222
|
-
# via the schematic forward rule:
|
|
223
|
-
# {
|
|
224
|
-
# :fuel8 :value ?Fuel .
|
|
225
|
-
# ({
|
|
226
|
-
# :car1 :at :Brussels .
|
|
227
|
-
# :car1 :battery :high .
|
|
228
|
-
# :car1 :pass :none .
|
|
229
|
-
# } {
|
|
230
|
-
# :car1 :at :Cologne .
|
|
231
|
-
# :car1 :battery ?B .
|
|
232
|
-
# :car1 :pass ?P .
|
|
233
|
-
# } ?Acts ?Dur ?Cost ?Bel ?Comf ?Fuel ?FuelLeft) :path true .
|
|
234
|
-
# ?Bel math:greaterThan 0.93 .
|
|
235
|
-
# ?Cost math:lessThan 0.090 .
|
|
236
|
-
# ?Dur math:lessThan 260.0 .
|
|
237
|
-
# } => {
|
|
238
|
-
# :car1 gps:plan (?Acts ?Dur ?Cost ?Bel ?Comf ?B ?P ?FuelLeft) .
|
|
239
|
-
# } .
|
|
240
|
-
# with substitution (on rule variables):
|
|
241
|
-
# ?Acts = (:drive_bru_liege :buy_pass_liege :drive_liege_aachen :fast_charge_aachen_pass :premium_corridor_aachen_cologne)
|
|
242
|
-
# ?B = :low
|
|
243
|
-
# ?Bel = "0.949917896235"^^xsd:decimal
|
|
244
|
-
# ?Comf = "0.8715053759999999"^^xsd:decimal
|
|
245
|
-
# ?Cost = "0.062"^^xsd:decimal
|
|
246
|
-
# ?Dur = "225"^^xsd:decimal
|
|
247
|
-
# ?Fuel = (:t :t :t :t :t :t :t :t)
|
|
248
|
-
# ?FuelLeft = (:t :t :t)
|
|
249
|
-
# ?P = :yes
|
|
250
|
-
# Therefore the derived triple above is entailed by the rules and facts.
|
|
251
|
-
# ----------------------------------------------------------------------
|
|
252
|
-
|
|
253
9
|
:car1 gps:plan ((:drive_bru_liege :buy_pass_liege :drive_liege_aachen :fast_charge_aachen_pass :premium_corridor_aachen_cologne) "225"^^xsd:decimal "0.062"^^xsd:decimal "0.949917896235"^^xsd:decimal "0.8715053759999999"^^xsd:decimal :low :yes (:t :t :t)) .
|
|
254
|
-
|
|
255
|
-
# ----------------------------------------------------------------------
|
|
256
|
-
# Proof for derived triple:
|
|
257
|
-
# :car1 gps:plan ((:drive_bru_liege :buy_pass_liege :drive_liege_aachen :shuttle_aachen_cologne) "225"^^xsd:decimal "0.05700000000000001"^^xsd:decimal "0.9693039757499999"^^xsd:decimal "0.8803536"^^xsd:decimal :low :yes (:t :t :t :t)) .
|
|
258
|
-
# It holds because the following instance of the rule body is provable:
|
|
259
|
-
# :fuel8 :value (:t :t :t :t :t :t :t :t) .
|
|
260
|
-
# ({
|
|
261
|
-
# :car1 :at :Brussels .
|
|
262
|
-
# :car1 :battery :high .
|
|
263
|
-
# :car1 :pass :none .
|
|
264
|
-
# } {
|
|
265
|
-
# :car1 :at :Cologne .
|
|
266
|
-
# :car1 :battery :low .
|
|
267
|
-
# :car1 :pass :yes .
|
|
268
|
-
# } (:drive_bru_liege :buy_pass_liege :drive_liege_aachen :shuttle_aachen_cologne) "225"^^xsd:decimal "0.05700000000000001"^^xsd:decimal "0.9693039757499999"^^xsd:decimal "0.8803536"^^xsd:decimal (:t :t :t :t :t :t :t :t) (:t :t :t :t)) :path true .
|
|
269
|
-
# "0.9693039757499999"^^xsd:decimal math:greaterThan 0.93 .
|
|
270
|
-
# "0.05700000000000001"^^xsd:decimal math:lessThan 0.090 .
|
|
271
|
-
# "225"^^xsd:decimal math:lessThan 260.0 .
|
|
272
|
-
# via the schematic forward rule:
|
|
273
|
-
# {
|
|
274
|
-
# :fuel8 :value ?Fuel .
|
|
275
|
-
# ({
|
|
276
|
-
# :car1 :at :Brussels .
|
|
277
|
-
# :car1 :battery :high .
|
|
278
|
-
# :car1 :pass :none .
|
|
279
|
-
# } {
|
|
280
|
-
# :car1 :at :Cologne .
|
|
281
|
-
# :car1 :battery ?B .
|
|
282
|
-
# :car1 :pass ?P .
|
|
283
|
-
# } ?Acts ?Dur ?Cost ?Bel ?Comf ?Fuel ?FuelLeft) :path true .
|
|
284
|
-
# ?Bel math:greaterThan 0.93 .
|
|
285
|
-
# ?Cost math:lessThan 0.090 .
|
|
286
|
-
# ?Dur math:lessThan 260.0 .
|
|
287
|
-
# } => {
|
|
288
|
-
# :car1 gps:plan (?Acts ?Dur ?Cost ?Bel ?Comf ?B ?P ?FuelLeft) .
|
|
289
|
-
# } .
|
|
290
|
-
# with substitution (on rule variables):
|
|
291
|
-
# ?Acts = (:drive_bru_liege :buy_pass_liege :drive_liege_aachen :shuttle_aachen_cologne)
|
|
292
|
-
# ?B = :low
|
|
293
|
-
# ?Bel = "0.9693039757499999"^^xsd:decimal
|
|
294
|
-
# ?Comf = "0.8803536"^^xsd:decimal
|
|
295
|
-
# ?Cost = "0.05700000000000001"^^xsd:decimal
|
|
296
|
-
# ?Dur = "225"^^xsd:decimal
|
|
297
|
-
# ?Fuel = (:t :t :t :t :t :t :t :t)
|
|
298
|
-
# ?FuelLeft = (:t :t :t :t)
|
|
299
|
-
# ?P = :yes
|
|
300
|
-
# Therefore the derived triple above is entailed by the rules and facts.
|
|
301
|
-
# ----------------------------------------------------------------------
|
|
302
|
-
|
|
303
10
|
:car1 gps:plan ((:drive_bru_liege :buy_pass_liege :drive_liege_aachen :shuttle_aachen_cologne) "225"^^xsd:decimal "0.05700000000000001"^^xsd:decimal "0.9693039757499999"^^xsd:decimal "0.8803536"^^xsd:decimal :low :yes (:t :t :t :t)) .
|
|
304
|
-
|
|
305
|
-
# ----------------------------------------------------------------------
|
|
306
|
-
# Proof for derived triple:
|
|
307
|
-
# :car1 gps:plan ((:drive_bru_liege :drive_liege_aachen :fast_charge_aachen_payg :public_road_aachen_cologne) "230"^^xsd:decimal "0.056999999999999995"^^xsd:decimal "0.9412635375"^^xsd:decimal "0.8317439999999998"^^xsd:decimal :low :none (:t :t :t :t)) .
|
|
308
|
-
# It holds because the following instance of the rule body is provable:
|
|
309
|
-
# :fuel8 :value (:t :t :t :t :t :t :t :t) .
|
|
310
|
-
# ({
|
|
311
|
-
# :car1 :at :Brussels .
|
|
312
|
-
# :car1 :battery :high .
|
|
313
|
-
# :car1 :pass :none .
|
|
314
|
-
# } {
|
|
315
|
-
# :car1 :at :Cologne .
|
|
316
|
-
# :car1 :battery :low .
|
|
317
|
-
# :car1 :pass :none .
|
|
318
|
-
# } (:drive_bru_liege :drive_liege_aachen :fast_charge_aachen_payg :public_road_aachen_cologne) "230"^^xsd:decimal "0.056999999999999995"^^xsd:decimal "0.9412635375"^^xsd:decimal "0.8317439999999998"^^xsd:decimal (:t :t :t :t :t :t :t :t) (:t :t :t :t)) :path true .
|
|
319
|
-
# "0.9412635375"^^xsd:decimal math:greaterThan 0.93 .
|
|
320
|
-
# "0.056999999999999995"^^xsd:decimal math:lessThan 0.090 .
|
|
321
|
-
# "230"^^xsd:decimal math:lessThan 260.0 .
|
|
322
|
-
# via the schematic forward rule:
|
|
323
|
-
# {
|
|
324
|
-
# :fuel8 :value ?Fuel .
|
|
325
|
-
# ({
|
|
326
|
-
# :car1 :at :Brussels .
|
|
327
|
-
# :car1 :battery :high .
|
|
328
|
-
# :car1 :pass :none .
|
|
329
|
-
# } {
|
|
330
|
-
# :car1 :at :Cologne .
|
|
331
|
-
# :car1 :battery ?B .
|
|
332
|
-
# :car1 :pass ?P .
|
|
333
|
-
# } ?Acts ?Dur ?Cost ?Bel ?Comf ?Fuel ?FuelLeft) :path true .
|
|
334
|
-
# ?Bel math:greaterThan 0.93 .
|
|
335
|
-
# ?Cost math:lessThan 0.090 .
|
|
336
|
-
# ?Dur math:lessThan 260.0 .
|
|
337
|
-
# } => {
|
|
338
|
-
# :car1 gps:plan (?Acts ?Dur ?Cost ?Bel ?Comf ?B ?P ?FuelLeft) .
|
|
339
|
-
# } .
|
|
340
|
-
# with substitution (on rule variables):
|
|
341
|
-
# ?Acts = (:drive_bru_liege :drive_liege_aachen :fast_charge_aachen_payg :public_road_aachen_cologne)
|
|
342
|
-
# ?B = :low
|
|
343
|
-
# ?Bel = "0.9412635375"^^xsd:decimal
|
|
344
|
-
# ?Comf = "0.8317439999999998"^^xsd:decimal
|
|
345
|
-
# ?Cost = "0.056999999999999995"^^xsd:decimal
|
|
346
|
-
# ?Dur = "230"^^xsd:decimal
|
|
347
|
-
# ?Fuel = (:t :t :t :t :t :t :t :t)
|
|
348
|
-
# ?FuelLeft = (:t :t :t :t)
|
|
349
|
-
# ?P = :none
|
|
350
|
-
# Therefore the derived triple above is entailed by the rules and facts.
|
|
351
|
-
# ----------------------------------------------------------------------
|
|
352
|
-
|
|
353
11
|
:car1 gps:plan ((:drive_bru_liege :drive_liege_aachen :fast_charge_aachen_payg :public_road_aachen_cologne) "230"^^xsd:decimal "0.056999999999999995"^^xsd:decimal "0.9412635375"^^xsd:decimal "0.8317439999999998"^^xsd:decimal :low :none (:t :t :t :t)) .
|
|
354
|
-
|
|
355
|
-
# ----------------------------------------------------------------------
|
|
356
|
-
# Proof for derived triple:
|
|
357
|
-
# :car1 gps:plan ((:drive_bru_liege :drive_liege_aachen :shuttle_aachen_cologne) "210"^^xsd:decimal "0.054000000000000006"^^xsd:decimal "0.9741748499999999"^^xsd:decimal "0.8983199999999999"^^xsd:decimal :low :none (:t :t :t :t :t)) .
|
|
358
|
-
# It holds because the following instance of the rule body is provable:
|
|
359
|
-
# :fuel8 :value (:t :t :t :t :t :t :t :t) .
|
|
360
|
-
# ({
|
|
361
|
-
# :car1 :at :Brussels .
|
|
362
|
-
# :car1 :battery :high .
|
|
363
|
-
# :car1 :pass :none .
|
|
364
|
-
# } {
|
|
365
|
-
# :car1 :at :Cologne .
|
|
366
|
-
# :car1 :battery :low .
|
|
367
|
-
# :car1 :pass :none .
|
|
368
|
-
# } (:drive_bru_liege :drive_liege_aachen :shuttle_aachen_cologne) "210"^^xsd:decimal "0.054000000000000006"^^xsd:decimal "0.9741748499999999"^^xsd:decimal "0.8983199999999999"^^xsd:decimal (:t :t :t :t :t :t :t :t) (:t :t :t :t :t)) :path true .
|
|
369
|
-
# "0.9741748499999999"^^xsd:decimal math:greaterThan 0.93 .
|
|
370
|
-
# "0.054000000000000006"^^xsd:decimal math:lessThan 0.090 .
|
|
371
|
-
# "210"^^xsd:decimal math:lessThan 260.0 .
|
|
372
|
-
# via the schematic forward rule:
|
|
373
|
-
# {
|
|
374
|
-
# :fuel8 :value ?Fuel .
|
|
375
|
-
# ({
|
|
376
|
-
# :car1 :at :Brussels .
|
|
377
|
-
# :car1 :battery :high .
|
|
378
|
-
# :car1 :pass :none .
|
|
379
|
-
# } {
|
|
380
|
-
# :car1 :at :Cologne .
|
|
381
|
-
# :car1 :battery ?B .
|
|
382
|
-
# :car1 :pass ?P .
|
|
383
|
-
# } ?Acts ?Dur ?Cost ?Bel ?Comf ?Fuel ?FuelLeft) :path true .
|
|
384
|
-
# ?Bel math:greaterThan 0.93 .
|
|
385
|
-
# ?Cost math:lessThan 0.090 .
|
|
386
|
-
# ?Dur math:lessThan 260.0 .
|
|
387
|
-
# } => {
|
|
388
|
-
# :car1 gps:plan (?Acts ?Dur ?Cost ?Bel ?Comf ?B ?P ?FuelLeft) .
|
|
389
|
-
# } .
|
|
390
|
-
# with substitution (on rule variables):
|
|
391
|
-
# ?Acts = (:drive_bru_liege :drive_liege_aachen :shuttle_aachen_cologne)
|
|
392
|
-
# ?B = :low
|
|
393
|
-
# ?Bel = "0.9741748499999999"^^xsd:decimal
|
|
394
|
-
# ?Comf = "0.8983199999999999"^^xsd:decimal
|
|
395
|
-
# ?Cost = "0.054000000000000006"^^xsd:decimal
|
|
396
|
-
# ?Dur = "210"^^xsd:decimal
|
|
397
|
-
# ?Fuel = (:t :t :t :t :t :t :t :t)
|
|
398
|
-
# ?FuelLeft = (:t :t :t :t :t)
|
|
399
|
-
# ?P = :none
|
|
400
|
-
# Therefore the derived triple above is entailed by the rules and facts.
|
|
401
|
-
# ----------------------------------------------------------------------
|
|
402
|
-
|
|
403
12
|
:car1 gps:plan ((:drive_bru_liege :drive_liege_aachen :shuttle_aachen_cologne) "210"^^xsd:decimal "0.054000000000000006"^^xsd:decimal "0.9741748499999999"^^xsd:decimal "0.8983199999999999"^^xsd:decimal :low :none (:t :t :t :t :t)) .
|
|
404
|
-
|
|
@@ -1,38 +1,4 @@
|
|
|
1
1
|
@prefix : <http://example.org/socrates#> .
|
|
2
2
|
|
|
3
|
-
# ----------------------------------------------------------------------
|
|
4
|
-
# Proof for derived triple:
|
|
5
|
-
# :Socrates :is _:sk_0 .
|
|
6
|
-
# It holds because the following instance of the rule body is provable:
|
|
7
|
-
# :Socrates a :Human .
|
|
8
|
-
# via the schematic forward rule:
|
|
9
|
-
# {
|
|
10
|
-
# ?S a :Human .
|
|
11
|
-
# } => {
|
|
12
|
-
# ?S :is _:B .
|
|
13
|
-
# } .
|
|
14
|
-
# with substitution (on rule variables):
|
|
15
|
-
# ?S = :Socrates
|
|
16
|
-
# Therefore the derived triple above is entailed by the rules and facts.
|
|
17
|
-
# ----------------------------------------------------------------------
|
|
18
|
-
|
|
19
3
|
:Socrates :is _:sk_0 .
|
|
20
|
-
|
|
21
|
-
# ----------------------------------------------------------------------
|
|
22
|
-
# Proof for derived triple:
|
|
23
|
-
# :Plato :is _:sk_1 .
|
|
24
|
-
# It holds because the following instance of the rule body is provable:
|
|
25
|
-
# :Plato a :Human .
|
|
26
|
-
# via the schematic forward rule:
|
|
27
|
-
# {
|
|
28
|
-
# ?S a :Human .
|
|
29
|
-
# } => {
|
|
30
|
-
# ?S :is _:B .
|
|
31
|
-
# } .
|
|
32
|
-
# with substitution (on rule variables):
|
|
33
|
-
# ?S = :Plato
|
|
34
|
-
# Therefore the derived triple above is entailed by the rules and facts.
|
|
35
|
-
# ----------------------------------------------------------------------
|
|
36
|
-
|
|
37
4
|
:Plato :is _:sk_1 .
|
|
38
|
-
|
|
@@ -1,23 +1,3 @@
|
|
|
1
1
|
@prefix : <http://example.org/expression-eval#> .
|
|
2
2
|
|
|
3
|
-
# ----------------------------------------------------------------------
|
|
4
|
-
# Proof for derived triple:
|
|
5
|
-
# :Root :result 12 .
|
|
6
|
-
# It holds because the following instance of the rule body is provable:
|
|
7
|
-
# :Root :expr :eAdd .
|
|
8
|
-
# :eAdd :value 12 .
|
|
9
|
-
# via the schematic forward rule:
|
|
10
|
-
# {
|
|
11
|
-
# :Root :expr ?E .
|
|
12
|
-
# ?E :value ?V .
|
|
13
|
-
# } => {
|
|
14
|
-
# :Root :result ?V .
|
|
15
|
-
# } .
|
|
16
|
-
# with substitution (on rule variables):
|
|
17
|
-
# ?E = :eAdd
|
|
18
|
-
# ?V = 12
|
|
19
|
-
# Therefore the derived triple above is entailed by the rules and facts.
|
|
20
|
-
# ----------------------------------------------------------------------
|
|
21
|
-
|
|
22
3
|
:Root :result 12 .
|
|
23
|
-
|