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,88 +1,7 @@
|
|
|
1
1
|
@prefix : <https://eyereasoner.github.io/ns#> .
|
|
2
2
|
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
|
|
3
3
|
|
|
4
|
-
# ----------------------------------------------------------------------
|
|
5
|
-
# Proof for derived triple:
|
|
6
|
-
# :answer :contains log:implies .
|
|
7
|
-
# It holds because the following instance of the rule body is provable:
|
|
8
|
-
# {
|
|
9
|
-
# ?X__0 ?Y__1 ?Z__2 .
|
|
10
|
-
# } => {
|
|
11
|
-
# :answer :contains ?Y__1 .
|
|
12
|
-
# } .
|
|
13
|
-
# via the schematic forward rule:
|
|
14
|
-
# {
|
|
15
|
-
# ?X => ?Z .
|
|
16
|
-
# } => {
|
|
17
|
-
# :answer :contains log:implies .
|
|
18
|
-
# } .
|
|
19
|
-
# with substitution (on rule variables):
|
|
20
|
-
# ?X = {
|
|
21
|
-
# ?X__0 ?Y__1 ?Z__2 .
|
|
22
|
-
# }
|
|
23
|
-
# ?Z = {
|
|
24
|
-
# :answer :contains ?Y__1 .
|
|
25
|
-
# }
|
|
26
|
-
# Therefore the derived triple above is entailed by the rules and facts.
|
|
27
|
-
# ----------------------------------------------------------------------
|
|
28
|
-
|
|
29
4
|
:answer :contains log:implies .
|
|
30
|
-
|
|
31
|
-
# ----------------------------------------------------------------------
|
|
32
|
-
# Proof for derived triple:
|
|
33
|
-
# :answer :contains :contains .
|
|
34
|
-
# It holds because the following instance of the rule body is provable:
|
|
35
|
-
# :answer :contains log:implies .
|
|
36
|
-
# via the schematic forward rule:
|
|
37
|
-
# {
|
|
38
|
-
# ?X ?Y ?Z .
|
|
39
|
-
# } => {
|
|
40
|
-
# :answer :contains ?Y .
|
|
41
|
-
# } .
|
|
42
|
-
# with substitution (on rule variables):
|
|
43
|
-
# ?X = :answer
|
|
44
|
-
# ?Y = :contains
|
|
45
|
-
# ?Z = log:implies
|
|
46
|
-
# Therefore the derived triple above is entailed by the rules and facts.
|
|
47
|
-
# ----------------------------------------------------------------------
|
|
48
|
-
|
|
49
5
|
:answer :contains :contains .
|
|
50
|
-
|
|
51
|
-
# ----------------------------------------------------------------------
|
|
52
|
-
# Proof for derived triple:
|
|
53
|
-
# :test :is true .
|
|
54
|
-
# It holds because the following instance of the rule body is provable:
|
|
55
|
-
# :answer :contains :contains .
|
|
56
|
-
# :answer :contains log:implies .
|
|
57
|
-
# via the schematic forward rule:
|
|
58
|
-
# {
|
|
59
|
-
# :answer :contains :contains .
|
|
60
|
-
# :answer :contains log:implies .
|
|
61
|
-
# } => {
|
|
62
|
-
# :test :is true .
|
|
63
|
-
# } .
|
|
64
|
-
# Therefore the derived triple above is entailed by the rules and facts.
|
|
65
|
-
# ----------------------------------------------------------------------
|
|
66
|
-
|
|
67
6
|
:test :is true .
|
|
68
|
-
|
|
69
|
-
# ----------------------------------------------------------------------
|
|
70
|
-
# Proof for derived triple:
|
|
71
|
-
# :answer :contains :is .
|
|
72
|
-
# It holds because the following instance of the rule body is provable:
|
|
73
|
-
# :test :is true .
|
|
74
|
-
# via the schematic forward rule:
|
|
75
|
-
# {
|
|
76
|
-
# ?X ?Y ?Z .
|
|
77
|
-
# } => {
|
|
78
|
-
# :answer :contains ?Y .
|
|
79
|
-
# } .
|
|
80
|
-
# with substitution (on rule variables):
|
|
81
|
-
# ?X = :test
|
|
82
|
-
# ?Y = :is
|
|
83
|
-
# ?Z = true
|
|
84
|
-
# Therefore the derived triple above is entailed by the rules and facts.
|
|
85
|
-
# ----------------------------------------------------------------------
|
|
86
|
-
|
|
87
7
|
:answer :contains :is .
|
|
88
|
-
|
|
@@ -1,18 +1,3 @@
|
|
|
1
1
|
@prefix : <https://eyereasoner.github.io/ns#> .
|
|
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
|
-
# :Alice :similar :Bob .
|
|
8
|
-
# via the schematic forward rule:
|
|
9
|
-
# {
|
|
10
|
-
# :Alice :similar :Bob .
|
|
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
|
-
|
package/examples/output/snaf.n3
CHANGED
|
@@ -1,26 +1,3 @@
|
|
|
1
1
|
@prefix : <http://example.org/> .
|
|
2
2
|
|
|
3
|
-
# ----------------------------------------------------------------------
|
|
4
|
-
# Proof for derived triple:
|
|
5
|
-
# :Alice :hates :Nobody .
|
|
6
|
-
# It holds because the following instance of the rule body is provable:
|
|
7
|
-
# :Bob a :Person .
|
|
8
|
-
# ?SCOPE log:notIncludes {
|
|
9
|
-
# :Alice :hates :Bob .
|
|
10
|
-
# } .
|
|
11
|
-
# via the schematic forward rule:
|
|
12
|
-
# {
|
|
13
|
-
# ?X a :Person .
|
|
14
|
-
# ?SCOPE log:notIncludes {
|
|
15
|
-
# :Alice :hates ?X .
|
|
16
|
-
# } .
|
|
17
|
-
# } => {
|
|
18
|
-
# :Alice :hates :Nobody .
|
|
19
|
-
# } .
|
|
20
|
-
# with substitution (on rule variables):
|
|
21
|
-
# ?X = :Bob
|
|
22
|
-
# Therefore the derived triple above is entailed by the rules and facts.
|
|
23
|
-
# ----------------------------------------------------------------------
|
|
24
|
-
|
|
25
3
|
:Alice :hates :Nobody .
|
|
26
|
-
|
|
@@ -1,24 +1,3 @@
|
|
|
1
1
|
@prefix : <http://example.org/socrates#> .
|
|
2
2
|
|
|
3
|
-
# ----------------------------------------------------------------------
|
|
4
|
-
# Proof for derived triple:
|
|
5
|
-
# :Socrates a :Mortal .
|
|
6
|
-
# It holds because the following instance of the rule body is provable:
|
|
7
|
-
# :Socrates a :Human .
|
|
8
|
-
# :Human rdfs:subClassOf :Mortal .
|
|
9
|
-
# via the schematic forward rule:
|
|
10
|
-
# {
|
|
11
|
-
# ?S a ?A .
|
|
12
|
-
# ?A rdfs:subClassOf ?B .
|
|
13
|
-
# } => {
|
|
14
|
-
# ?S a ?B .
|
|
15
|
-
# } .
|
|
16
|
-
# with substitution (on rule variables):
|
|
17
|
-
# ?A = :Human
|
|
18
|
-
# ?B = :Mortal
|
|
19
|
-
# ?S = :Socrates
|
|
20
|
-
# Therefore the derived triple above is entailed by the rules and facts.
|
|
21
|
-
# ----------------------------------------------------------------------
|
|
22
|
-
|
|
23
3
|
:Socrates a :Mortal .
|
|
24
|
-
|
|
@@ -1,367 +1,17 @@
|
|
|
1
1
|
@prefix : <http://example.org/spectral-week#> .
|
|
2
2
|
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
3
3
|
|
|
4
|
-
# ----------------------------------------------------------------------
|
|
5
|
-
# Proof for derived triple:
|
|
6
|
-
# :Shade :redEnergy "180"^^xsd:decimal .
|
|
7
|
-
# It holds because the following instance of the rule body is provable:
|
|
8
|
-
# :Shade :redIntensity 60.0 .
|
|
9
|
-
# :Shade :redHours 3.0 .
|
|
10
|
-
# (60.0 3.0) math:product "180"^^xsd:decimal .
|
|
11
|
-
# via the schematic forward rule:
|
|
12
|
-
# {
|
|
13
|
-
# ?Loc :redIntensity ?RI .
|
|
14
|
-
# ?Loc :redHours ?RH .
|
|
15
|
-
# (?RI ?RH) math:product ?Ered .
|
|
16
|
-
# } => {
|
|
17
|
-
# ?Loc :redEnergy ?Ered .
|
|
18
|
-
# } .
|
|
19
|
-
# with substitution (on rule variables):
|
|
20
|
-
# ?Ered = "180"^^xsd:decimal
|
|
21
|
-
# ?Loc = :Shade
|
|
22
|
-
# ?RH = 3.0
|
|
23
|
-
# ?RI = 60.0
|
|
24
|
-
# Therefore the derived triple above is entailed by the rules and facts.
|
|
25
|
-
# ----------------------------------------------------------------------
|
|
26
|
-
|
|
27
4
|
:Shade :redEnergy "180"^^xsd:decimal .
|
|
28
|
-
|
|
29
|
-
# ----------------------------------------------------------------------
|
|
30
|
-
# Proof for derived triple:
|
|
31
|
-
# :Greenhouse :redEnergy "960"^^xsd:decimal .
|
|
32
|
-
# It holds because the following instance of the rule body is provable:
|
|
33
|
-
# :Greenhouse :redIntensity 120.0 .
|
|
34
|
-
# :Greenhouse :redHours 8.0 .
|
|
35
|
-
# (120.0 8.0) math:product "960"^^xsd:decimal .
|
|
36
|
-
# via the schematic forward rule:
|
|
37
|
-
# {
|
|
38
|
-
# ?Loc :redIntensity ?RI .
|
|
39
|
-
# ?Loc :redHours ?RH .
|
|
40
|
-
# (?RI ?RH) math:product ?Ered .
|
|
41
|
-
# } => {
|
|
42
|
-
# ?Loc :redEnergy ?Ered .
|
|
43
|
-
# } .
|
|
44
|
-
# with substitution (on rule variables):
|
|
45
|
-
# ?Ered = "960"^^xsd:decimal
|
|
46
|
-
# ?Loc = :Greenhouse
|
|
47
|
-
# ?RH = 8.0
|
|
48
|
-
# ?RI = 120.0
|
|
49
|
-
# Therefore the derived triple above is entailed by the rules and facts.
|
|
50
|
-
# ----------------------------------------------------------------------
|
|
51
|
-
|
|
52
5
|
:Greenhouse :redEnergy "960"^^xsd:decimal .
|
|
53
|
-
|
|
54
|
-
# ----------------------------------------------------------------------
|
|
55
|
-
# Proof for derived triple:
|
|
56
|
-
# :Shade :blueEnergy "80"^^xsd:decimal .
|
|
57
|
-
# It holds because the following instance of the rule body is provable:
|
|
58
|
-
# :Shade :blueIntensity 80.0 .
|
|
59
|
-
# :Shade :blueHours 1.0 .
|
|
60
|
-
# (80.0 1.0) math:product "80"^^xsd:decimal .
|
|
61
|
-
# via the schematic forward rule:
|
|
62
|
-
# {
|
|
63
|
-
# ?Loc :blueIntensity ?BI .
|
|
64
|
-
# ?Loc :blueHours ?BH .
|
|
65
|
-
# (?BI ?BH) math:product ?Eblue .
|
|
66
|
-
# } => {
|
|
67
|
-
# ?Loc :blueEnergy ?Eblue .
|
|
68
|
-
# } .
|
|
69
|
-
# with substitution (on rule variables):
|
|
70
|
-
# ?BH = 1.0
|
|
71
|
-
# ?BI = 80.0
|
|
72
|
-
# ?Eblue = "80"^^xsd:decimal
|
|
73
|
-
# ?Loc = :Shade
|
|
74
|
-
# Therefore the derived triple above is entailed by the rules and facts.
|
|
75
|
-
# ----------------------------------------------------------------------
|
|
76
|
-
|
|
77
6
|
:Shade :blueEnergy "80"^^xsd:decimal .
|
|
78
|
-
|
|
79
|
-
# ----------------------------------------------------------------------
|
|
80
|
-
# Proof for derived triple:
|
|
81
|
-
# :Greenhouse :blueEnergy "400"^^xsd:decimal .
|
|
82
|
-
# It holds because the following instance of the rule body is provable:
|
|
83
|
-
# :Greenhouse :blueIntensity 200.0 .
|
|
84
|
-
# :Greenhouse :blueHours 2.0 .
|
|
85
|
-
# (200.0 2.0) math:product "400"^^xsd:decimal .
|
|
86
|
-
# via the schematic forward rule:
|
|
87
|
-
# {
|
|
88
|
-
# ?Loc :blueIntensity ?BI .
|
|
89
|
-
# ?Loc :blueHours ?BH .
|
|
90
|
-
# (?BI ?BH) math:product ?Eblue .
|
|
91
|
-
# } => {
|
|
92
|
-
# ?Loc :blueEnergy ?Eblue .
|
|
93
|
-
# } .
|
|
94
|
-
# with substitution (on rule variables):
|
|
95
|
-
# ?BH = 2.0
|
|
96
|
-
# ?BI = 200.0
|
|
97
|
-
# ?Eblue = "400"^^xsd:decimal
|
|
98
|
-
# ?Loc = :Greenhouse
|
|
99
|
-
# Therefore the derived triple above is entailed by the rules and facts.
|
|
100
|
-
# ----------------------------------------------------------------------
|
|
101
|
-
|
|
102
7
|
:Greenhouse :blueEnergy "400"^^xsd:decimal .
|
|
103
|
-
|
|
104
|
-
# ----------------------------------------------------------------------
|
|
105
|
-
# Proof for derived triple:
|
|
106
|
-
# :Fern :absorbedRed "72"^^xsd:decimal .
|
|
107
|
-
# It holds because the following instance of the rule body is provable:
|
|
108
|
-
# :Fern a :Plant .
|
|
109
|
-
# :Fern :location :Shade .
|
|
110
|
-
# :Fern :absorbRed 0.40 .
|
|
111
|
-
# :Shade :redEnergy "180"^^xsd:decimal .
|
|
112
|
-
# ("180"^^xsd:decimal 0.40) math:product "72"^^xsd:decimal .
|
|
113
|
-
# via the schematic forward rule:
|
|
114
|
-
# {
|
|
115
|
-
# ?P a :Plant .
|
|
116
|
-
# ?P :location ?Loc .
|
|
117
|
-
# ?P :absorbRed ?AR .
|
|
118
|
-
# ?Loc :redEnergy ?Ered .
|
|
119
|
-
# (?Ered ?AR) math:product ?Ared .
|
|
120
|
-
# } => {
|
|
121
|
-
# ?P :absorbedRed ?Ared .
|
|
122
|
-
# } .
|
|
123
|
-
# with substitution (on rule variables):
|
|
124
|
-
# ?AR = 0.40
|
|
125
|
-
# ?Ared = "72"^^xsd:decimal
|
|
126
|
-
# ?Ered = "180"^^xsd:decimal
|
|
127
|
-
# ?Loc = :Shade
|
|
128
|
-
# ?P = :Fern
|
|
129
|
-
# Therefore the derived triple above is entailed by the rules and facts.
|
|
130
|
-
# ----------------------------------------------------------------------
|
|
131
|
-
|
|
132
8
|
:Fern :absorbedRed "72"^^xsd:decimal .
|
|
133
|
-
|
|
134
|
-
# ----------------------------------------------------------------------
|
|
135
|
-
# Proof for derived triple:
|
|
136
|
-
# :Sunflower :absorbedRed "816"^^xsd:decimal .
|
|
137
|
-
# It holds because the following instance of the rule body is provable:
|
|
138
|
-
# :Sunflower a :Plant .
|
|
139
|
-
# :Sunflower :location :Greenhouse .
|
|
140
|
-
# :Sunflower :absorbRed 0.85 .
|
|
141
|
-
# :Greenhouse :redEnergy "960"^^xsd:decimal .
|
|
142
|
-
# ("960"^^xsd:decimal 0.85) math:product "816"^^xsd:decimal .
|
|
143
|
-
# via the schematic forward rule:
|
|
144
|
-
# {
|
|
145
|
-
# ?P a :Plant .
|
|
146
|
-
# ?P :location ?Loc .
|
|
147
|
-
# ?P :absorbRed ?AR .
|
|
148
|
-
# ?Loc :redEnergy ?Ered .
|
|
149
|
-
# (?Ered ?AR) math:product ?Ared .
|
|
150
|
-
# } => {
|
|
151
|
-
# ?P :absorbedRed ?Ared .
|
|
152
|
-
# } .
|
|
153
|
-
# with substitution (on rule variables):
|
|
154
|
-
# ?AR = 0.85
|
|
155
|
-
# ?Ared = "816"^^xsd:decimal
|
|
156
|
-
# ?Ered = "960"^^xsd:decimal
|
|
157
|
-
# ?Loc = :Greenhouse
|
|
158
|
-
# ?P = :Sunflower
|
|
159
|
-
# Therefore the derived triple above is entailed by the rules and facts.
|
|
160
|
-
# ----------------------------------------------------------------------
|
|
161
|
-
|
|
162
9
|
:Sunflower :absorbedRed "816"^^xsd:decimal .
|
|
163
|
-
|
|
164
|
-
# ----------------------------------------------------------------------
|
|
165
|
-
# Proof for derived triple:
|
|
166
|
-
# :Fern :absorbedBlue "60"^^xsd:decimal .
|
|
167
|
-
# It holds because the following instance of the rule body is provable:
|
|
168
|
-
# :Fern a :Plant .
|
|
169
|
-
# :Fern :location :Shade .
|
|
170
|
-
# :Fern :absorbBlue 0.75 .
|
|
171
|
-
# :Shade :blueEnergy "80"^^xsd:decimal .
|
|
172
|
-
# ("80"^^xsd:decimal 0.75) math:product "60"^^xsd:decimal .
|
|
173
|
-
# via the schematic forward rule:
|
|
174
|
-
# {
|
|
175
|
-
# ?P a :Plant .
|
|
176
|
-
# ?P :location ?Loc .
|
|
177
|
-
# ?P :absorbBlue ?AB .
|
|
178
|
-
# ?Loc :blueEnergy ?Eblue .
|
|
179
|
-
# (?Eblue ?AB) math:product ?Ablue .
|
|
180
|
-
# } => {
|
|
181
|
-
# ?P :absorbedBlue ?Ablue .
|
|
182
|
-
# } .
|
|
183
|
-
# with substitution (on rule variables):
|
|
184
|
-
# ?AB = 0.75
|
|
185
|
-
# ?Ablue = "60"^^xsd:decimal
|
|
186
|
-
# ?Eblue = "80"^^xsd:decimal
|
|
187
|
-
# ?Loc = :Shade
|
|
188
|
-
# ?P = :Fern
|
|
189
|
-
# Therefore the derived triple above is entailed by the rules and facts.
|
|
190
|
-
# ----------------------------------------------------------------------
|
|
191
|
-
|
|
192
10
|
:Fern :absorbedBlue "60"^^xsd:decimal .
|
|
193
|
-
|
|
194
|
-
# ----------------------------------------------------------------------
|
|
195
|
-
# Proof for derived triple:
|
|
196
|
-
# :Sunflower :absorbedBlue "220.00000000000003"^^xsd:decimal .
|
|
197
|
-
# It holds because the following instance of the rule body is provable:
|
|
198
|
-
# :Sunflower a :Plant .
|
|
199
|
-
# :Sunflower :location :Greenhouse .
|
|
200
|
-
# :Sunflower :absorbBlue 0.55 .
|
|
201
|
-
# :Greenhouse :blueEnergy "400"^^xsd:decimal .
|
|
202
|
-
# ("400"^^xsd:decimal 0.55) math:product "220.00000000000003"^^xsd:decimal .
|
|
203
|
-
# via the schematic forward rule:
|
|
204
|
-
# {
|
|
205
|
-
# ?P a :Plant .
|
|
206
|
-
# ?P :location ?Loc .
|
|
207
|
-
# ?P :absorbBlue ?AB .
|
|
208
|
-
# ?Loc :blueEnergy ?Eblue .
|
|
209
|
-
# (?Eblue ?AB) math:product ?Ablue .
|
|
210
|
-
# } => {
|
|
211
|
-
# ?P :absorbedBlue ?Ablue .
|
|
212
|
-
# } .
|
|
213
|
-
# with substitution (on rule variables):
|
|
214
|
-
# ?AB = 0.55
|
|
215
|
-
# ?Ablue = "220.00000000000003"^^xsd:decimal
|
|
216
|
-
# ?Eblue = "400"^^xsd:decimal
|
|
217
|
-
# ?Loc = :Greenhouse
|
|
218
|
-
# ?P = :Sunflower
|
|
219
|
-
# Therefore the derived triple above is entailed by the rules and facts.
|
|
220
|
-
# ----------------------------------------------------------------------
|
|
221
|
-
|
|
222
11
|
:Sunflower :absorbedBlue "220.00000000000003"^^xsd:decimal .
|
|
223
|
-
|
|
224
|
-
# ----------------------------------------------------------------------
|
|
225
|
-
# Proof for derived triple:
|
|
226
|
-
# :Sunflower :absorbedEnergy "1036"^^xsd:decimal .
|
|
227
|
-
# It holds because the following instance of the rule body is provable:
|
|
228
|
-
# :Sunflower :absorbedRed "816"^^xsd:decimal .
|
|
229
|
-
# :Sunflower :absorbedBlue "220.00000000000003"^^xsd:decimal .
|
|
230
|
-
# ("816"^^xsd:decimal "220.00000000000003"^^xsd:decimal) math:sum "1036"^^xsd:decimal .
|
|
231
|
-
# via the schematic forward rule:
|
|
232
|
-
# {
|
|
233
|
-
# ?P :absorbedRed ?Ared .
|
|
234
|
-
# ?P :absorbedBlue ?Ablue .
|
|
235
|
-
# (?Ared ?Ablue) math:sum ?Abs .
|
|
236
|
-
# } => {
|
|
237
|
-
# ?P :absorbedEnergy ?Abs .
|
|
238
|
-
# } .
|
|
239
|
-
# with substitution (on rule variables):
|
|
240
|
-
# ?Ablue = "220.00000000000003"^^xsd:decimal
|
|
241
|
-
# ?Abs = "1036"^^xsd:decimal
|
|
242
|
-
# ?Ared = "816"^^xsd:decimal
|
|
243
|
-
# ?P = :Sunflower
|
|
244
|
-
# Therefore the derived triple above is entailed by the rules and facts.
|
|
245
|
-
# ----------------------------------------------------------------------
|
|
246
|
-
|
|
247
12
|
:Sunflower :absorbedEnergy "1036"^^xsd:decimal .
|
|
248
|
-
|
|
249
|
-
# ----------------------------------------------------------------------
|
|
250
|
-
# Proof for derived triple:
|
|
251
|
-
# :Fern :absorbedEnergy "132"^^xsd:decimal .
|
|
252
|
-
# It holds because the following instance of the rule body is provable:
|
|
253
|
-
# :Fern :absorbedRed "72"^^xsd:decimal .
|
|
254
|
-
# :Fern :absorbedBlue "60"^^xsd:decimal .
|
|
255
|
-
# ("72"^^xsd:decimal "60"^^xsd:decimal) math:sum "132"^^xsd:decimal .
|
|
256
|
-
# via the schematic forward rule:
|
|
257
|
-
# {
|
|
258
|
-
# ?P :absorbedRed ?Ared .
|
|
259
|
-
# ?P :absorbedBlue ?Ablue .
|
|
260
|
-
# (?Ared ?Ablue) math:sum ?Abs .
|
|
261
|
-
# } => {
|
|
262
|
-
# ?P :absorbedEnergy ?Abs .
|
|
263
|
-
# } .
|
|
264
|
-
# with substitution (on rule variables):
|
|
265
|
-
# ?Ablue = "60"^^xsd:decimal
|
|
266
|
-
# ?Abs = "132"^^xsd:decimal
|
|
267
|
-
# ?Ared = "72"^^xsd:decimal
|
|
268
|
-
# ?P = :Fern
|
|
269
|
-
# Therefore the derived triple above is entailed by the rules and facts.
|
|
270
|
-
# ----------------------------------------------------------------------
|
|
271
|
-
|
|
272
13
|
:Fern :absorbedEnergy "132"^^xsd:decimal .
|
|
273
|
-
|
|
274
|
-
# ----------------------------------------------------------------------
|
|
275
|
-
# Proof for derived triple:
|
|
276
|
-
# :Fern :dailyStored "33"^^xsd:decimal .
|
|
277
|
-
# It holds because the following instance of the rule body is provable:
|
|
278
|
-
# :Fern :absorbedEnergy "132"^^xsd:decimal .
|
|
279
|
-
# :Fern :conversion 0.25 .
|
|
280
|
-
# ("132"^^xsd:decimal 0.25) math:product "33"^^xsd:decimal .
|
|
281
|
-
# via the schematic forward rule:
|
|
282
|
-
# {
|
|
283
|
-
# ?P :absorbedEnergy ?Abs .
|
|
284
|
-
# ?P :conversion ?C .
|
|
285
|
-
# (?Abs ?C) math:product ?Stored .
|
|
286
|
-
# } => {
|
|
287
|
-
# ?P :dailyStored ?Stored .
|
|
288
|
-
# } .
|
|
289
|
-
# with substitution (on rule variables):
|
|
290
|
-
# ?Abs = "132"^^xsd:decimal
|
|
291
|
-
# ?C = 0.25
|
|
292
|
-
# ?P = :Fern
|
|
293
|
-
# ?Stored = "33"^^xsd:decimal
|
|
294
|
-
# Therefore the derived triple above is entailed by the rules and facts.
|
|
295
|
-
# ----------------------------------------------------------------------
|
|
296
|
-
|
|
297
14
|
:Fern :dailyStored "33"^^xsd:decimal .
|
|
298
|
-
|
|
299
|
-
# ----------------------------------------------------------------------
|
|
300
|
-
# Proof for derived triple:
|
|
301
|
-
# :Sunflower :dailyStored "259"^^xsd:decimal .
|
|
302
|
-
# It holds because the following instance of the rule body is provable:
|
|
303
|
-
# :Sunflower :absorbedEnergy "1036"^^xsd:decimal .
|
|
304
|
-
# :Sunflower :conversion 0.25 .
|
|
305
|
-
# ("1036"^^xsd:decimal 0.25) math:product "259"^^xsd:decimal .
|
|
306
|
-
# via the schematic forward rule:
|
|
307
|
-
# {
|
|
308
|
-
# ?P :absorbedEnergy ?Abs .
|
|
309
|
-
# ?P :conversion ?C .
|
|
310
|
-
# (?Abs ?C) math:product ?Stored .
|
|
311
|
-
# } => {
|
|
312
|
-
# ?P :dailyStored ?Stored .
|
|
313
|
-
# } .
|
|
314
|
-
# with substitution (on rule variables):
|
|
315
|
-
# ?Abs = "1036"^^xsd:decimal
|
|
316
|
-
# ?C = 0.25
|
|
317
|
-
# ?P = :Sunflower
|
|
318
|
-
# ?Stored = "259"^^xsd:decimal
|
|
319
|
-
# Therefore the derived triple above is entailed by the rules and facts.
|
|
320
|
-
# ----------------------------------------------------------------------
|
|
321
|
-
|
|
322
15
|
:Sunflower :dailyStored "259"^^xsd:decimal .
|
|
323
|
-
|
|
324
|
-
# ----------------------------------------------------------------------
|
|
325
|
-
# Proof for derived triple:
|
|
326
|
-
# :Sunflower :weeklyStored "1813"^^xsd:decimal .
|
|
327
|
-
# It holds because the following instance of the rule body is provable:
|
|
328
|
-
# :Sunflower :dailyStored "259"^^xsd:decimal .
|
|
329
|
-
# ("259"^^xsd:decimal 7) math:product "1813"^^xsd:decimal .
|
|
330
|
-
# via the schematic forward rule:
|
|
331
|
-
# {
|
|
332
|
-
# ?P :dailyStored ?D .
|
|
333
|
-
# (?D 7) math:product ?W .
|
|
334
|
-
# } => {
|
|
335
|
-
# ?P :weeklyStored ?W .
|
|
336
|
-
# } .
|
|
337
|
-
# with substitution (on rule variables):
|
|
338
|
-
# ?D = "259"^^xsd:decimal
|
|
339
|
-
# ?P = :Sunflower
|
|
340
|
-
# ?W = "1813"^^xsd:decimal
|
|
341
|
-
# Therefore the derived triple above is entailed by the rules and facts.
|
|
342
|
-
# ----------------------------------------------------------------------
|
|
343
|
-
|
|
344
16
|
:Sunflower :weeklyStored "1813"^^xsd:decimal .
|
|
345
|
-
|
|
346
|
-
# ----------------------------------------------------------------------
|
|
347
|
-
# Proof for derived triple:
|
|
348
|
-
# :Fern :weeklyStored "231"^^xsd:decimal .
|
|
349
|
-
# It holds because the following instance of the rule body is provable:
|
|
350
|
-
# :Fern :dailyStored "33"^^xsd:decimal .
|
|
351
|
-
# ("33"^^xsd:decimal 7) math:product "231"^^xsd:decimal .
|
|
352
|
-
# via the schematic forward rule:
|
|
353
|
-
# {
|
|
354
|
-
# ?P :dailyStored ?D .
|
|
355
|
-
# (?D 7) math:product ?W .
|
|
356
|
-
# } => {
|
|
357
|
-
# ?P :weeklyStored ?W .
|
|
358
|
-
# } .
|
|
359
|
-
# with substitution (on rule variables):
|
|
360
|
-
# ?D = "33"^^xsd:decimal
|
|
361
|
-
# ?P = :Fern
|
|
362
|
-
# ?W = "231"^^xsd:decimal
|
|
363
|
-
# Therefore the derived triple above is entailed by the rules and facts.
|
|
364
|
-
# ----------------------------------------------------------------------
|
|
365
|
-
|
|
366
17
|
:Fern :weeklyStored "231"^^xsd:decimal .
|
|
367
|
-
|