eyeling 1.5.12 → 1.5.13
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 -2
- package/examples/age.n3 +29 -0
- package/examples/backward.n3 +24 -0
- package/examples/basic-monadic.n3 +10032 -0
- package/examples/cat-koko.n3 +29 -0
- package/examples/collect-all-in.n3 +32 -0
- package/examples/complex.n3 +142 -0
- package/examples/control-system.n3 +77 -0
- package/examples/crypto-builtins-tests.n3 +60 -0
- package/examples/deep-taxonomy-10.n3 +21 -0
- package/examples/deep-taxonomy-100.n3 +111 -0
- package/examples/deep-taxonomy-1000.n3 +1011 -0
- package/examples/deep-taxonomy-10000.n3 +10011 -0
- package/examples/derived-backward-rule-2.n3 +28 -0
- package/examples/derived-backward-rule.n3 +32 -0
- package/examples/derived-rule.n3 +19 -0
- package/examples/dijkstra.n3 +64 -0
- package/examples/dog.n3 +21 -0
- package/examples/equals.n3 +12 -0
- package/examples/existential-rule.n3 +18 -0
- package/examples/fibonacci.n3 +34 -0
- package/examples/for-all-in.n3 +21 -0
- package/examples/french-cities.n3 +32 -0
- package/examples/fuse.n3 +13 -0
- package/examples/good-cobbler.n3 +18 -0
- package/examples/gray-code-counter.n3 +64 -0
- package/examples/hanoi.n3 +21 -0
- package/examples/liar.n3 +6 -0
- package/examples/list-builtins-tests.n3 +84 -0
- package/examples/lldm.n3 +133 -0
- package/examples/math-builtins-tests.n3 +612 -0
- package/examples/monkey.n3 +11 -0
- package/examples/output/age.n3 +20 -0
- package/examples/output/backward.n3 +18 -0
- package/examples/output/basic-monadic.n3 +122 -0
- package/examples/output/cat-koko.n3 +125 -0
- package/examples/output/collect-all-in.n3 +122 -0
- package/examples/output/complex.n3 +57 -0
- package/examples/output/control-system.n3 +79 -0
- package/examples/output/crypto-builtins-tests.n3 +66 -0
- package/examples/output/deep-taxonomy-10.n3 +636 -0
- package/examples/output/deep-taxonomy-100.n3 +6036 -0
- package/examples/output/deep-taxonomy-1000.n3 +60036 -0
- package/examples/output/deep-taxonomy-10000.n3 +600036 -0
- package/examples/output/derived-backward-rule-2.n3 +71 -0
- package/examples/output/derived-backward-rule.n3 +53 -0
- package/examples/output/derived-rule.n3 +52 -0
- package/examples/output/dijkstra.n3 +315 -0
- package/examples/output/dog.n3 +33 -0
- package/examples/output/equals.n3 +18 -0
- package/examples/output/existential-rule.n3 +38 -0
- package/examples/output/fibonacci.n3 +44 -0
- package/examples/output/for-all-in.n3 +30 -0
- package/examples/output/french-cities.n3 +507 -0
- package/examples/output/fuse.n3 +1 -0
- package/examples/output/good-cobbler.n3 +27 -0
- package/examples/output/gray-code-counter.n3 +20 -0
- package/examples/output/hanoi.n3 +20 -0
- package/examples/output/liar.n3 +1 -0
- package/examples/output/list-builtins-tests.n3 +148 -0
- package/examples/output/lldm.n3 +1000 -0
- package/examples/output/math-builtins-tests.n3 +4479 -0
- package/examples/output/monkey.n3 +40 -0
- package/examples/output/peano.n3 +26 -0
- package/examples/output/pi.n3 +20 -0
- package/examples/output/polygon.n3 +20 -0
- package/examples/output/reordering.n3 +29 -0
- package/examples/output/rule-matching.n3 +29 -0
- package/examples/output/self-referential.n3 +88 -0
- package/examples/output/similar.n3 +18 -0
- package/examples/output/skolem.n3 +20 -0
- package/examples/output/snaf.n3 +26 -0
- package/examples/output/socrates.n3 +24 -0
- package/examples/output/string-builtins-tests.n3 +258 -0
- package/examples/output/turing.n3 +44 -0
- package/examples/output/uri.n3 +46 -0
- package/examples/output/witch.n3 +115 -0
- package/examples/output/zebra.n3 +114 -0
- package/examples/peano.n3 +45 -0
- package/examples/pi.n3 +32 -0
- package/examples/polygon.n3 +26 -0
- package/examples/reordering.n3 +23 -0
- package/examples/rule-matching.n3 +15 -0
- package/examples/self-referential.n3 +32 -0
- package/examples/similar.n3 +28 -0
- package/examples/skolem.n3 +15 -0
- package/examples/snaf.n3 +18 -0
- package/examples/socrates.n3 +19 -0
- package/examples/string-builtins-tests.n3 +210 -0
- package/examples/test +154 -0
- package/examples/turing.n3 +93 -0
- package/examples/uri.n3 +17 -0
- package/examples/witch.n3 +33 -0
- package/examples/zebra.n3 +47 -0
- package/package.json +6 -2
- package/test/api.test.js +22 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
@prefix : <https://eyereasoner.github.io/ns#> .
|
|
2
|
+
|
|
3
|
+
# ----------------------------------------------------------------------
|
|
4
|
+
# Proof for derived triple:
|
|
5
|
+
# _:b1 a :Animal .
|
|
6
|
+
# It holds because the following instance of the rule body is provable:
|
|
7
|
+
# _:b1 a :Monkey .
|
|
8
|
+
# via the schematic forward rule:
|
|
9
|
+
# {
|
|
10
|
+
# ?X a :Monkey .
|
|
11
|
+
# } => {
|
|
12
|
+
# ?X a :Animal .
|
|
13
|
+
# } .
|
|
14
|
+
# with substitution (on rule variables):
|
|
15
|
+
# ?X = _:b1
|
|
16
|
+
# Therefore the derived triple above is entailed by the rules and facts.
|
|
17
|
+
# ----------------------------------------------------------------------
|
|
18
|
+
|
|
19
|
+
_:b1 a :Animal .
|
|
20
|
+
|
|
21
|
+
# ----------------------------------------------------------------------
|
|
22
|
+
# Proof for derived triple:
|
|
23
|
+
# :test :is true .
|
|
24
|
+
# It holds because the following instance of the rule body is provable:
|
|
25
|
+
# _:b1 a :Monkey .
|
|
26
|
+
# _:b1 a :Animal .
|
|
27
|
+
# via the schematic forward rule:
|
|
28
|
+
# {
|
|
29
|
+
# ?X a :Monkey .
|
|
30
|
+
# ?X a :Animal .
|
|
31
|
+
# } => {
|
|
32
|
+
# :test :is true .
|
|
33
|
+
# } .
|
|
34
|
+
# with substitution (on rule variables):
|
|
35
|
+
# ?X = _:b1
|
|
36
|
+
# Therefore the derived triple above is entailed by the rules and facts.
|
|
37
|
+
# ----------------------------------------------------------------------
|
|
38
|
+
|
|
39
|
+
:test :is true .
|
|
40
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@prefix : <http://example.org/#> .
|
|
2
|
+
|
|
3
|
+
# ----------------------------------------------------------------------
|
|
4
|
+
# Proof for derived triple:
|
|
5
|
+
# (:s (:s (:s (:s (:s 0))))) :peanoFactorial (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s 0)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) .
|
|
6
|
+
# It holds because the following instance of the rule body is provable:
|
|
7
|
+
# ((:s 0) (:s (:s 0))) :multiply (:s (:s 0)) .
|
|
8
|
+
# ((:s (:s 0)) (:s (:s (:s 0)))) :add (:s (:s (:s (:s (:s 0))))) .
|
|
9
|
+
# (:s (:s (:s (:s (:s 0))))) :factorial (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s 0)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) .
|
|
10
|
+
# via the schematic forward rule:
|
|
11
|
+
# {
|
|
12
|
+
# ((:s 0) (:s (:s 0))) :multiply ?A .
|
|
13
|
+
# (?A (:s (:s (:s 0)))) :add ?B .
|
|
14
|
+
# ?B :factorial ?C .
|
|
15
|
+
# } => {
|
|
16
|
+
# ?B :peanoFactorial ?C .
|
|
17
|
+
# } .
|
|
18
|
+
# with substitution (on rule variables):
|
|
19
|
+
# ?A = (:s (:s 0))
|
|
20
|
+
# ?B = (:s (:s (:s (:s (:s 0)))))
|
|
21
|
+
# ?C = (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s 0))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
|
|
22
|
+
# Therefore the derived triple above is entailed by the rules and facts.
|
|
23
|
+
# ----------------------------------------------------------------------
|
|
24
|
+
|
|
25
|
+
(:s (:s (:s (:s (:s 0))))) :peanoFactorial (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s (:s 0)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) .
|
|
26
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@prefix : <https://eyereasoner.github.io/eye/reasoning#> .
|
|
2
|
+
|
|
3
|
+
# ----------------------------------------------------------------------
|
|
4
|
+
# Proof for derived triple:
|
|
5
|
+
# (100 3.1415929035585526) :pi true .
|
|
6
|
+
# It holds because the following instance of the rule body is provable:
|
|
7
|
+
# (100 3.1415929035585526) :pi true .
|
|
8
|
+
# via the schematic forward rule:
|
|
9
|
+
# {
|
|
10
|
+
# (100 ?Pi) :pi true .
|
|
11
|
+
# } => {
|
|
12
|
+
# (100 ?Pi) :pi true .
|
|
13
|
+
# } .
|
|
14
|
+
# with substitution (on rule variables):
|
|
15
|
+
# ?Pi = 3.1415929035585526
|
|
16
|
+
# Therefore the derived triple above is entailed by the rules and facts.
|
|
17
|
+
# ----------------------------------------------------------------------
|
|
18
|
+
|
|
19
|
+
(100 3.1415929035585526) :pi true .
|
|
20
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@prefix polygon: <https://eyereasoner.github.io/eye/reasoning/polygon#> .
|
|
2
|
+
|
|
3
|
+
# ----------------------------------------------------------------------
|
|
4
|
+
# Proof for derived triple:
|
|
5
|
+
# ((4 2) (6 2) (7 6) (4 6) (5 5) (5 3) (4 2)) polygon:area 7 .
|
|
6
|
+
# It holds because the following instance of the rule body is provable:
|
|
7
|
+
# ((4 2) (6 2) (7 6) (4 6) (5 5) (5 3) (4 2)) polygon:area 7 .
|
|
8
|
+
# via the schematic forward rule:
|
|
9
|
+
# {
|
|
10
|
+
# ((4 2) (6 2) (7 6) (4 6) (5 5) (5 3) (4 2)) polygon:area ?AREA .
|
|
11
|
+
# } => {
|
|
12
|
+
# ((4 2) (6 2) (7 6) (4 6) (5 5) (5 3) (4 2)) polygon:area ?AREA .
|
|
13
|
+
# } .
|
|
14
|
+
# with substitution (on rule variables):
|
|
15
|
+
# ?AREA = 7
|
|
16
|
+
# Therefore the derived triple above is entailed by the rules and facts.
|
|
17
|
+
# ----------------------------------------------------------------------
|
|
18
|
+
|
|
19
|
+
((4 2) (6 2) (7 6) (4 6) (5 5) (5 3) (4 2)) polygon:area 7 .
|
|
20
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@prefix : <https://eyereasoner.github.io/ns#> .
|
|
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
|
+
# :Bob :has (:Table 1) .
|
|
8
|
+
# :Alice :has (:Book 1) .
|
|
9
|
+
# :Table log:notEqualTo :Book .
|
|
10
|
+
# via the schematic forward rule:
|
|
11
|
+
# {
|
|
12
|
+
# ?W1 :has (?O1 ?N1) .
|
|
13
|
+
# ?W2 :has (?O2 ?N2) .
|
|
14
|
+
# ?O1 log:notEqualTo ?O2 .
|
|
15
|
+
# } => {
|
|
16
|
+
# :test :is true .
|
|
17
|
+
# } .
|
|
18
|
+
# with substitution (on rule variables):
|
|
19
|
+
# ?N1 = 1
|
|
20
|
+
# ?N2 = 1
|
|
21
|
+
# ?O1 = :Table
|
|
22
|
+
# ?O2 = :Book
|
|
23
|
+
# ?W1 = :Bob
|
|
24
|
+
# ?W2 = :Alice
|
|
25
|
+
# Therefore the derived triple above is entailed by the rules and facts.
|
|
26
|
+
# ----------------------------------------------------------------------
|
|
27
|
+
|
|
28
|
+
:test :is true .
|
|
29
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@prefix : <https://eyereasoner.github.io/ns#> .
|
|
2
|
+
|
|
3
|
+
# ----------------------------------------------------------------------
|
|
4
|
+
# Proof for derived triple:
|
|
5
|
+
# :result :is true .
|
|
6
|
+
# It holds because the following instance of the rule body is provable:
|
|
7
|
+
# {
|
|
8
|
+
# ?A__0 => ?B__1 .
|
|
9
|
+
# } => {
|
|
10
|
+
# :result :is true .
|
|
11
|
+
# } .
|
|
12
|
+
# via the schematic forward rule:
|
|
13
|
+
# {
|
|
14
|
+
# ?A => ?B .
|
|
15
|
+
# } => {
|
|
16
|
+
# :result :is true .
|
|
17
|
+
# } .
|
|
18
|
+
# with substitution (on rule variables):
|
|
19
|
+
# ?A = {
|
|
20
|
+
# ?A__0 => ?B__1 .
|
|
21
|
+
# }
|
|
22
|
+
# ?B = {
|
|
23
|
+
# :result :is true .
|
|
24
|
+
# }
|
|
25
|
+
# Therefore the derived triple above is entailed by the rules and facts.
|
|
26
|
+
# ----------------------------------------------------------------------
|
|
27
|
+
|
|
28
|
+
:result :is true .
|
|
29
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
@prefix : <https://eyereasoner.github.io/ns#> .
|
|
2
|
+
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
|
|
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
|
+
: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
|
+
: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
|
+
: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
|
+
:answer :contains :is .
|
|
88
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@prefix : <https://eyereasoner.github.io/ns#> .
|
|
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
|
+
:test :is true .
|
|
18
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@prefix : <http://example.org/> .
|
|
2
|
+
|
|
3
|
+
# ----------------------------------------------------------------------
|
|
4
|
+
# Proof for derived triple:
|
|
5
|
+
# :Result :skolem <https://eyereasoner.github.io/.well-known/genid/0c562a90-a44f-264a-86e5-9664948aa178> .
|
|
6
|
+
# It holds because the following instance of the rule body is provable:
|
|
7
|
+
# (:abc 77 "xyz") log:skolem <https://eyereasoner.github.io/.well-known/genid/0c562a90-a44f-264a-86e5-9664948aa178> .
|
|
8
|
+
# via the schematic forward rule:
|
|
9
|
+
# {
|
|
10
|
+
# (:abc 77 "xyz") log:skolem ?Y .
|
|
11
|
+
# } => {
|
|
12
|
+
# :Result :skolem ?Y .
|
|
13
|
+
# } .
|
|
14
|
+
# with substitution (on rule variables):
|
|
15
|
+
# ?Y = <https://eyereasoner.github.io/.well-known/genid/0c562a90-a44f-264a-86e5-9664948aa178>
|
|
16
|
+
# Therefore the derived triple above is entailed by the rules and facts.
|
|
17
|
+
# ----------------------------------------------------------------------
|
|
18
|
+
|
|
19
|
+
:Result :skolem <https://eyereasoner.github.io/.well-known/genid/0c562a90-a44f-264a-86e5-9664948aa178> .
|
|
20
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@prefix : <http://example.org/> .
|
|
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
|
+
:Alice :hates :Nobody .
|
|
26
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@prefix : <http://example.org/socrates#> .
|
|
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
|
+
:Socrates a :Mortal .
|
|
24
|
+
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
@prefix : <https://eyereasoner.github.io/ns#> .
|
|
2
|
+
|
|
3
|
+
# ----------------------------------------------------------------------
|
|
4
|
+
# Proof for derived triple:
|
|
5
|
+
# :ok_string_concatenation_1 a :Pass .
|
|
6
|
+
# It holds because the following instance of the rule body is provable:
|
|
7
|
+
# ("hello" " " "world!") string:concatenation "hello world!" .
|
|
8
|
+
# via the schematic forward rule:
|
|
9
|
+
# {
|
|
10
|
+
# ("hello" " " "world!") string:concatenation "hello world!" .
|
|
11
|
+
# } => {
|
|
12
|
+
# :ok_string_concatenation_1 a :Pass .
|
|
13
|
+
# } .
|
|
14
|
+
# Therefore the derived triple above is entailed by the rules and facts.
|
|
15
|
+
# ----------------------------------------------------------------------
|
|
16
|
+
|
|
17
|
+
:ok_string_concatenation_1 a :Pass .
|
|
18
|
+
|
|
19
|
+
# ----------------------------------------------------------------------
|
|
20
|
+
# Proof for derived triple:
|
|
21
|
+
# :ok_string_contains_1 a :Pass .
|
|
22
|
+
# It holds because the following instance of the rule body is provable:
|
|
23
|
+
# "hello world!" string:contains "llo worl" .
|
|
24
|
+
# via the schematic forward rule:
|
|
25
|
+
# {
|
|
26
|
+
# "hello world!" string:contains "llo worl" .
|
|
27
|
+
# } => {
|
|
28
|
+
# :ok_string_contains_1 a :Pass .
|
|
29
|
+
# } .
|
|
30
|
+
# Therefore the derived triple above is entailed by the rules and facts.
|
|
31
|
+
# ----------------------------------------------------------------------
|
|
32
|
+
|
|
33
|
+
:ok_string_contains_1 a :Pass .
|
|
34
|
+
|
|
35
|
+
# ----------------------------------------------------------------------
|
|
36
|
+
# Proof for derived triple:
|
|
37
|
+
# :ok_string_containsIgnoringCase_1 a :Pass .
|
|
38
|
+
# It holds because the following instance of the rule body is provable:
|
|
39
|
+
# "hello world!" string:containsIgnoringCase "lLO woRl" .
|
|
40
|
+
# via the schematic forward rule:
|
|
41
|
+
# {
|
|
42
|
+
# "hello world!" string:containsIgnoringCase "lLO woRl" .
|
|
43
|
+
# } => {
|
|
44
|
+
# :ok_string_containsIgnoringCase_1 a :Pass .
|
|
45
|
+
# } .
|
|
46
|
+
# Therefore the derived triple above is entailed by the rules and facts.
|
|
47
|
+
# ----------------------------------------------------------------------
|
|
48
|
+
|
|
49
|
+
:ok_string_containsIgnoringCase_1 a :Pass .
|
|
50
|
+
|
|
51
|
+
# ----------------------------------------------------------------------
|
|
52
|
+
# Proof for derived triple:
|
|
53
|
+
# :ok_string_endsWith_1 a :Pass .
|
|
54
|
+
# It holds because the following instance of the rule body is provable:
|
|
55
|
+
# "hello world!" string:endsWith "orld!" .
|
|
56
|
+
# via the schematic forward rule:
|
|
57
|
+
# {
|
|
58
|
+
# "hello world!" string:endsWith "orld!" .
|
|
59
|
+
# } => {
|
|
60
|
+
# :ok_string_endsWith_1 a :Pass .
|
|
61
|
+
# } .
|
|
62
|
+
# Therefore the derived triple above is entailed by the rules and facts.
|
|
63
|
+
# ----------------------------------------------------------------------
|
|
64
|
+
|
|
65
|
+
:ok_string_endsWith_1 a :Pass .
|
|
66
|
+
|
|
67
|
+
# ----------------------------------------------------------------------
|
|
68
|
+
# Proof for derived triple:
|
|
69
|
+
# :ok_string_equalIgnoringCase_1 a :Pass .
|
|
70
|
+
# It holds because the following instance of the rule body is provable:
|
|
71
|
+
# "hello world!" string:equalIgnoringCase "hELLo wORld!" .
|
|
72
|
+
# via the schematic forward rule:
|
|
73
|
+
# {
|
|
74
|
+
# "hello world!" string:equalIgnoringCase "hELLo wORld!" .
|
|
75
|
+
# } => {
|
|
76
|
+
# :ok_string_equalIgnoringCase_1 a :Pass .
|
|
77
|
+
# } .
|
|
78
|
+
# Therefore the derived triple above is entailed by the rules and facts.
|
|
79
|
+
# ----------------------------------------------------------------------
|
|
80
|
+
|
|
81
|
+
:ok_string_equalIgnoringCase_1 a :Pass .
|
|
82
|
+
|
|
83
|
+
# ----------------------------------------------------------------------
|
|
84
|
+
# Proof for derived triple:
|
|
85
|
+
# :ok_string_format_1 a :Pass .
|
|
86
|
+
# It holds because the following instance of the rule body is provable:
|
|
87
|
+
# ("%s://%s/%s" "https" "w3c.github.io" "N3/spec/") string:format "https://w3c.github.io/N3/spec/" .
|
|
88
|
+
# via the schematic forward rule:
|
|
89
|
+
# {
|
|
90
|
+
# ("%s://%s/%s" "https" "w3c.github.io" "N3/spec/") string:format "https://w3c.github.io/N3/spec/" .
|
|
91
|
+
# } => {
|
|
92
|
+
# :ok_string_format_1 a :Pass .
|
|
93
|
+
# } .
|
|
94
|
+
# Therefore the derived triple above is entailed by the rules and facts.
|
|
95
|
+
# ----------------------------------------------------------------------
|
|
96
|
+
|
|
97
|
+
:ok_string_format_1 a :Pass .
|
|
98
|
+
|
|
99
|
+
# ----------------------------------------------------------------------
|
|
100
|
+
# Proof for derived triple:
|
|
101
|
+
# :ok_string_greaterThan_1 a :Pass .
|
|
102
|
+
# It holds because the following instance of the rule body is provable:
|
|
103
|
+
# "Penguin" string:greaterThan "Cat" .
|
|
104
|
+
# via the schematic forward rule:
|
|
105
|
+
# {
|
|
106
|
+
# "Penguin" string:greaterThan "Cat" .
|
|
107
|
+
# } => {
|
|
108
|
+
# :ok_string_greaterThan_1 a :Pass .
|
|
109
|
+
# } .
|
|
110
|
+
# Therefore the derived triple above is entailed by the rules and facts.
|
|
111
|
+
# ----------------------------------------------------------------------
|
|
112
|
+
|
|
113
|
+
:ok_string_greaterThan_1 a :Pass .
|
|
114
|
+
|
|
115
|
+
# ----------------------------------------------------------------------
|
|
116
|
+
# Proof for derived triple:
|
|
117
|
+
# :ok_string_lessThan_1 a :Pass .
|
|
118
|
+
# It holds because the following instance of the rule body is provable:
|
|
119
|
+
# "Cat" string:lessThan "Penguin" .
|
|
120
|
+
# via the schematic forward rule:
|
|
121
|
+
# {
|
|
122
|
+
# "Cat" string:lessThan "Penguin" .
|
|
123
|
+
# } => {
|
|
124
|
+
# :ok_string_lessThan_1 a :Pass .
|
|
125
|
+
# } .
|
|
126
|
+
# Therefore the derived triple above is entailed by the rules and facts.
|
|
127
|
+
# ----------------------------------------------------------------------
|
|
128
|
+
|
|
129
|
+
:ok_string_lessThan_1 a :Pass .
|
|
130
|
+
|
|
131
|
+
# ----------------------------------------------------------------------
|
|
132
|
+
# Proof for derived triple:
|
|
133
|
+
# :ok_string_matches_1 a :Pass .
|
|
134
|
+
# It holds because the following instance of the rule body is provable:
|
|
135
|
+
# "hello world!" string:matches ".*(l)+o wo.*" .
|
|
136
|
+
# via the schematic forward rule:
|
|
137
|
+
# {
|
|
138
|
+
# "hello world!" string:matches ".*(l)+o wo.*" .
|
|
139
|
+
# } => {
|
|
140
|
+
# :ok_string_matches_1 a :Pass .
|
|
141
|
+
# } .
|
|
142
|
+
# Therefore the derived triple above is entailed by the rules and facts.
|
|
143
|
+
# ----------------------------------------------------------------------
|
|
144
|
+
|
|
145
|
+
:ok_string_matches_1 a :Pass .
|
|
146
|
+
|
|
147
|
+
# ----------------------------------------------------------------------
|
|
148
|
+
# Proof for derived triple:
|
|
149
|
+
# :ok_string_notEqualIgnoringCase_1 a :Pass .
|
|
150
|
+
# It holds because the following instance of the rule body is provable:
|
|
151
|
+
# "hello world!" string:notEqualIgnoringCase "hELLo dunia!" .
|
|
152
|
+
# via the schematic forward rule:
|
|
153
|
+
# {
|
|
154
|
+
# "hello world!" string:notEqualIgnoringCase "hELLo dunia!" .
|
|
155
|
+
# } => {
|
|
156
|
+
# :ok_string_notEqualIgnoringCase_1 a :Pass .
|
|
157
|
+
# } .
|
|
158
|
+
# Therefore the derived triple above is entailed by the rules and facts.
|
|
159
|
+
# ----------------------------------------------------------------------
|
|
160
|
+
|
|
161
|
+
:ok_string_notEqualIgnoringCase_1 a :Pass .
|
|
162
|
+
|
|
163
|
+
# ----------------------------------------------------------------------
|
|
164
|
+
# Proof for derived triple:
|
|
165
|
+
# :ok_string_notGreaterThan_1 a :Pass .
|
|
166
|
+
# It holds because the following instance of the rule body is provable:
|
|
167
|
+
# "Cat" string:notGreaterThan "Penguin" .
|
|
168
|
+
# via the schematic forward rule:
|
|
169
|
+
# {
|
|
170
|
+
# "Cat" string:notGreaterThan "Penguin" .
|
|
171
|
+
# } => {
|
|
172
|
+
# :ok_string_notGreaterThan_1 a :Pass .
|
|
173
|
+
# } .
|
|
174
|
+
# Therefore the derived triple above is entailed by the rules and facts.
|
|
175
|
+
# ----------------------------------------------------------------------
|
|
176
|
+
|
|
177
|
+
:ok_string_notGreaterThan_1 a :Pass .
|
|
178
|
+
|
|
179
|
+
# ----------------------------------------------------------------------
|
|
180
|
+
# Proof for derived triple:
|
|
181
|
+
# :ok_string_notLessThan_1 a :Pass .
|
|
182
|
+
# It holds because the following instance of the rule body is provable:
|
|
183
|
+
# "Penguin" string:notLessThan "Cat" .
|
|
184
|
+
# via the schematic forward rule:
|
|
185
|
+
# {
|
|
186
|
+
# "Penguin" string:notLessThan "Cat" .
|
|
187
|
+
# } => {
|
|
188
|
+
# :ok_string_notLessThan_1 a :Pass .
|
|
189
|
+
# } .
|
|
190
|
+
# Therefore the derived triple above is entailed by the rules and facts.
|
|
191
|
+
# ----------------------------------------------------------------------
|
|
192
|
+
|
|
193
|
+
:ok_string_notLessThan_1 a :Pass .
|
|
194
|
+
|
|
195
|
+
# ----------------------------------------------------------------------
|
|
196
|
+
# Proof for derived triple:
|
|
197
|
+
# :ok_string_notMatches_1 a :Pass .
|
|
198
|
+
# It holds because the following instance of the rule body is provable:
|
|
199
|
+
# "hello world!" string:notMatches ".*(l)+o dunia.*" .
|
|
200
|
+
# via the schematic forward rule:
|
|
201
|
+
# {
|
|
202
|
+
# "hello world!" string:notMatches ".*(l)+o dunia.*" .
|
|
203
|
+
# } => {
|
|
204
|
+
# :ok_string_notMatches_1 a :Pass .
|
|
205
|
+
# } .
|
|
206
|
+
# Therefore the derived triple above is entailed by the rules and facts.
|
|
207
|
+
# ----------------------------------------------------------------------
|
|
208
|
+
|
|
209
|
+
:ok_string_notMatches_1 a :Pass .
|
|
210
|
+
|
|
211
|
+
# ----------------------------------------------------------------------
|
|
212
|
+
# Proof for derived triple:
|
|
213
|
+
# :ok_string_replace_1 a :Pass .
|
|
214
|
+
# It holds because the following instance of the rule body is provable:
|
|
215
|
+
# ("fofof bar" "of" "baz") string:replace "fbazbaz bar" .
|
|
216
|
+
# via the schematic forward rule:
|
|
217
|
+
# {
|
|
218
|
+
# ("fofof bar" "of" "baz") string:replace "fbazbaz bar" .
|
|
219
|
+
# } => {
|
|
220
|
+
# :ok_string_replace_1 a :Pass .
|
|
221
|
+
# } .
|
|
222
|
+
# Therefore the derived triple above is entailed by the rules and facts.
|
|
223
|
+
# ----------------------------------------------------------------------
|
|
224
|
+
|
|
225
|
+
:ok_string_replace_1 a :Pass .
|
|
226
|
+
|
|
227
|
+
# ----------------------------------------------------------------------
|
|
228
|
+
# Proof for derived triple:
|
|
229
|
+
# :ok_string_scrape_1 a :Pass .
|
|
230
|
+
# It holds because the following instance of the rule body is provable:
|
|
231
|
+
# ("id=abc&x=123&y=zzz" "x=([0-9]+)") string:scrape "123" .
|
|
232
|
+
# via the schematic forward rule:
|
|
233
|
+
# {
|
|
234
|
+
# ("id=abc&x=123&y=zzz" "x=([0-9]+)") string:scrape "123" .
|
|
235
|
+
# } => {
|
|
236
|
+
# :ok_string_scrape_1 a :Pass .
|
|
237
|
+
# } .
|
|
238
|
+
# Therefore the derived triple above is entailed by the rules and facts.
|
|
239
|
+
# ----------------------------------------------------------------------
|
|
240
|
+
|
|
241
|
+
:ok_string_scrape_1 a :Pass .
|
|
242
|
+
|
|
243
|
+
# ----------------------------------------------------------------------
|
|
244
|
+
# Proof for derived triple:
|
|
245
|
+
# :ok_string_startsWith_1 a :Pass .
|
|
246
|
+
# It holds because the following instance of the rule body is provable:
|
|
247
|
+
# "hello world!" string:startsWith "hello" .
|
|
248
|
+
# via the schematic forward rule:
|
|
249
|
+
# {
|
|
250
|
+
# "hello world!" string:startsWith "hello" .
|
|
251
|
+
# } => {
|
|
252
|
+
# :ok_string_startsWith_1 a :Pass .
|
|
253
|
+
# } .
|
|
254
|
+
# Therefore the derived triple above is entailed by the rules and facts.
|
|
255
|
+
# ----------------------------------------------------------------------
|
|
256
|
+
|
|
257
|
+
:ok_string_startsWith_1 a :Pass .
|
|
258
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
@prefix : <http://example.org/#> .
|
|
2
|
+
|
|
3
|
+
# ----------------------------------------------------------------------
|
|
4
|
+
# Proof for derived triple:
|
|
5
|
+
# :test :is {
|
|
6
|
+
# (1 0 1 0 0 1) :compute (1 0 1 0 1 0 "#") .
|
|
7
|
+
# (1 0 1 1 1 1) :compute (1 1 0 0 0 0 "#") .
|
|
8
|
+
# (1 1 1 1 1 1) :compute (1 0 0 0 0 0 0 "#") .
|
|
9
|
+
# () :compute (1 "#") .
|
|
10
|
+
# } .
|
|
11
|
+
# It holds because the following instance of the rule body is provable:
|
|
12
|
+
# (1 0 1 0 0 1) :compute (1 0 1 0 1 0 "#") .
|
|
13
|
+
# (1 0 1 1 1 1) :compute (1 1 0 0 0 0 "#") .
|
|
14
|
+
# (1 1 1 1 1 1) :compute (1 0 0 0 0 0 0 "#") .
|
|
15
|
+
# () :compute (1 "#") .
|
|
16
|
+
# via the schematic forward rule:
|
|
17
|
+
# {
|
|
18
|
+
# (1 0 1 0 0 1) :compute ?A1 .
|
|
19
|
+
# (1 0 1 1 1 1) :compute ?A2 .
|
|
20
|
+
# (1 1 1 1 1 1) :compute ?A3 .
|
|
21
|
+
# () :compute ?A4 .
|
|
22
|
+
# } => {
|
|
23
|
+
# :test :is {
|
|
24
|
+
# (1 0 1 0 0 1) :compute ?A1 .
|
|
25
|
+
# (1 0 1 1 1 1) :compute ?A2 .
|
|
26
|
+
# (1 1 1 1 1 1) :compute ?A3 .
|
|
27
|
+
# () :compute ?A4 .
|
|
28
|
+
# } .
|
|
29
|
+
# } .
|
|
30
|
+
# with substitution (on rule variables):
|
|
31
|
+
# ?A1 = (1 0 1 0 1 0 "#")
|
|
32
|
+
# ?A2 = (1 1 0 0 0 0 "#")
|
|
33
|
+
# ?A3 = (1 0 0 0 0 0 0 "#")
|
|
34
|
+
# ?A4 = (1 "#")
|
|
35
|
+
# Therefore the derived triple above is entailed by the rules and facts.
|
|
36
|
+
# ----------------------------------------------------------------------
|
|
37
|
+
|
|
38
|
+
:test :is {
|
|
39
|
+
(1 0 1 0 0 1) :compute (1 0 1 0 1 0 "#") .
|
|
40
|
+
(1 0 1 1 1 1) :compute (1 1 0 0 0 0 "#") .
|
|
41
|
+
(1 1 1 1 1 1) :compute (1 0 0 0 0 0 0 "#") .
|
|
42
|
+
() :compute (1 "#") .
|
|
43
|
+
} .
|
|
44
|
+
|