eyeling 1.25.5 → 1.26.1

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.
@@ -1,4 +1,3 @@
1
1
  @prefix : <http://example.org/socrates#> .
2
2
 
3
- :Socrates a :Human .
4
3
  :Socrates a :Mortal .
@@ -0,0 +1,40 @@
1
+ @prefix : <https://example.org/#> .
2
+ @prefix math: <http://www.w3.org/2000/10/swap/math#> .
3
+ @prefix pe: <https://eyereasoner.github.io/pe#> .
4
+ @prefix time: <http://www.w3.org/2000/10/swap/time#> .
5
+ @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
6
+
7
+ :test :is true .
8
+
9
+ { :test :is true . } pe:why {
10
+ { :test :is true . }
11
+ pe:by [ pe:rule "age.n3"; pe:line 24 ];
12
+ pe:binding [ pe:var "S"; pe:value :patH ];
13
+ pe:uses { :patH :ageAbove "P80Y"^^xsd:duration . }.
14
+
15
+ { :patH :ageAbove "P80Y"^^xsd:duration . }
16
+ pe:by [ pe:rule "age.n3"; pe:line 16 ];
17
+ pe:binding
18
+ [ pe:var "A"; pe:value "P80Y"^^xsd:duration ],
19
+ [ pe:var "B"; pe:value "1944-08-21"^^xsd:date ],
20
+ [ pe:var "D"; pe:value "2026-06-02T09:16:38.270+00:00"^^xsd:dateTime ],
21
+ [ pe:var "F"; pe:value "PT2580801398.27S"^^xsd:duration ],
22
+ [ pe:var "S"; pe:value :patH ];
23
+ pe:uses
24
+ { :patH :birthDay "1944-08-21"^^xsd:date . },
25
+ { "" time:localTime "2026-06-02T09:16:38.270+00:00"^^xsd:dateTime . },
26
+ { ("2026-06-02T09:16:38.270+00:00"^^xsd:dateTime "1944-08-21"^^xsd:date) math:difference "PT2580801398.27S"^^xsd:duration . },
27
+ { "PT2580801398.27S"^^xsd:duration math:greaterThan "P80Y"^^xsd:duration . }.
28
+
29
+ { :patH :birthDay "1944-08-21"^^xsd:date . }
30
+ pe:by [ pe:fact "age.n3"; pe:line 13 ].
31
+
32
+ { "" time:localTime "2026-06-02T09:16:38.270+00:00"^^xsd:dateTime . }
33
+ pe:by [ pe:builtin time:localTime ].
34
+
35
+ { ("2026-06-02T09:16:38.270+00:00"^^xsd:dateTime "1944-08-21"^^xsd:date) math:difference "PT2580801398.27S"^^xsd:duration . }
36
+ pe:by [ pe:builtin math:difference ].
37
+
38
+ { "PT2580801398.27S"^^xsd:duration math:greaterThan "P80Y"^^xsd:duration . }
39
+ pe:by [ pe:builtin math:greaterThan ].
40
+ }.
@@ -0,0 +1,24 @@
1
+ @prefix : <http://example.org/socrates#> .
2
+ @prefix pe: <https://eyereasoner.github.io/pe#> .
3
+ @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
4
+ @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
5
+
6
+ :Socrates a :Mortal .
7
+
8
+ { :Socrates a :Mortal . } pe:why {
9
+ { :Socrates a :Mortal . }
10
+ pe:by [ pe:rule "socrates.n3"; pe:line 14 ];
11
+ pe:binding
12
+ [ pe:var "A"; pe:value :Human ],
13
+ [ pe:var "B"; pe:value :Mortal ],
14
+ [ pe:var "S"; pe:value :Socrates ];
15
+ pe:uses
16
+ { :Socrates a :Human . },
17
+ { :Human rdfs:subClassOf :Mortal . }.
18
+
19
+ { :Socrates a :Human . }
20
+ pe:by [ pe:fact "socrates.n3"; pe:line 10 ].
21
+
22
+ { :Human rdfs:subClassOf :Mortal . }
23
+ pe:by [ pe:fact "socrates.n3"; pe:line 11 ].
24
+ }.
@@ -0,0 +1,138 @@
1
+ @prefix : <https://eyereasoner.github.io/eye/reasoning/witch#> .
2
+ @prefix pe: <https://eyereasoner.github.io/pe#> .
3
+ @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
4
+
5
+ :DUCK a :ISMADEOFWOOD .
6
+ :DUCK a :BURNS .
7
+ :GIRL a :FLOATS .
8
+ :GIRL a :ISMADEOFWOOD .
9
+ :GIRL a :BURNS .
10
+ :GIRL a :WITCH .
11
+
12
+ { :DUCK a :ISMADEOFWOOD . } pe:why {
13
+ { :DUCK a :ISMADEOFWOOD . }
14
+ pe:by [ pe:rule "witch.n3"; pe:line 22 ];
15
+ pe:binding [ pe:var "x"; pe:value :DUCK ];
16
+ pe:uses { :DUCK a :FLOATS . }.
17
+
18
+ { :DUCK a :FLOATS . }
19
+ pe:by [ pe:fact "witch.n3"; pe:line 26 ].
20
+ }.
21
+
22
+ { :DUCK a :BURNS . } pe:why {
23
+ { :DUCK a :BURNS . }
24
+ pe:by [ pe:rule "witch.n3"; pe:line 19 ];
25
+ pe:binding [ pe:var "x"; pe:value :DUCK ];
26
+ pe:uses { :DUCK a :ISMADEOFWOOD . }.
27
+
28
+ { :DUCK a :ISMADEOFWOOD . }
29
+ pe:by [ pe:rule "witch.n3"; pe:line 22 ];
30
+ pe:binding [ pe:var "x"; pe:value :DUCK ];
31
+ pe:uses { :DUCK a :FLOATS . }.
32
+
33
+ { :DUCK a :FLOATS . }
34
+ pe:by [ pe:fact "witch.n3"; pe:line 26 ].
35
+ }.
36
+
37
+ { :GIRL a :FLOATS . } pe:why {
38
+ { :GIRL a :FLOATS . }
39
+ pe:by [ pe:rule "witch.n3"; pe:line 29 ];
40
+ pe:binding
41
+ [ pe:var "x"; pe:value :DUCK ],
42
+ [ pe:var "y"; pe:value :GIRL ];
43
+ pe:uses
44
+ { :DUCK a :FLOATS . },
45
+ { :DUCK :SAMEWEIGHT :GIRL . }.
46
+
47
+ { :DUCK a :FLOATS . }
48
+ pe:by [ pe:fact "witch.n3"; pe:line 26 ].
49
+
50
+ { :DUCK :SAMEWEIGHT :GIRL . }
51
+ pe:by [ pe:fact "witch.n3"; pe:line 33 ].
52
+ }.
53
+
54
+ { :GIRL a :ISMADEOFWOOD . } pe:why {
55
+ { :GIRL a :ISMADEOFWOOD . }
56
+ pe:by [ pe:rule "witch.n3"; pe:line 22 ];
57
+ pe:binding [ pe:var "x"; pe:value :GIRL ];
58
+ pe:uses { :GIRL a :FLOATS . }.
59
+
60
+ { :GIRL a :FLOATS . }
61
+ pe:by [ pe:rule "witch.n3"; pe:line 29 ];
62
+ pe:binding
63
+ [ pe:var "x"; pe:value :DUCK ],
64
+ [ pe:var "y"; pe:value :GIRL ];
65
+ pe:uses
66
+ { :DUCK a :FLOATS . },
67
+ { :DUCK :SAMEWEIGHT :GIRL . }.
68
+
69
+ { :DUCK a :FLOATS . }
70
+ pe:by [ pe:fact "witch.n3"; pe:line 26 ].
71
+
72
+ { :DUCK :SAMEWEIGHT :GIRL . }
73
+ pe:by [ pe:fact "witch.n3"; pe:line 33 ].
74
+ }.
75
+
76
+ { :GIRL a :BURNS . } pe:why {
77
+ { :GIRL a :BURNS . }
78
+ pe:by [ pe:rule "witch.n3"; pe:line 19 ];
79
+ pe:binding [ pe:var "x"; pe:value :GIRL ];
80
+ pe:uses { :GIRL a :ISMADEOFWOOD . }.
81
+
82
+ { :GIRL a :ISMADEOFWOOD . }
83
+ pe:by [ pe:rule "witch.n3"; pe:line 22 ];
84
+ pe:binding [ pe:var "x"; pe:value :GIRL ];
85
+ pe:uses { :GIRL a :FLOATS . }.
86
+
87
+ { :GIRL a :FLOATS . }
88
+ pe:by [ pe:rule "witch.n3"; pe:line 29 ];
89
+ pe:binding
90
+ [ pe:var "x"; pe:value :DUCK ],
91
+ [ pe:var "y"; pe:value :GIRL ];
92
+ pe:uses
93
+ { :DUCK a :FLOATS . },
94
+ { :DUCK :SAMEWEIGHT :GIRL . }.
95
+
96
+ { :DUCK a :FLOATS . }
97
+ pe:by [ pe:fact "witch.n3"; pe:line 26 ].
98
+
99
+ { :DUCK :SAMEWEIGHT :GIRL . }
100
+ pe:by [ pe:fact "witch.n3"; pe:line 33 ].
101
+ }.
102
+
103
+ { :GIRL a :WITCH . } pe:why {
104
+ { :GIRL a :WITCH . }
105
+ pe:by [ pe:rule "witch.n3"; pe:line 13 ];
106
+ pe:binding [ pe:var "x"; pe:value :GIRL ];
107
+ pe:uses
108
+ { :GIRL a :BURNS . },
109
+ { :GIRL a :WOMAN . }.
110
+
111
+ { :GIRL a :BURNS . }
112
+ pe:by [ pe:rule "witch.n3"; pe:line 19 ];
113
+ pe:binding [ pe:var "x"; pe:value :GIRL ];
114
+ pe:uses { :GIRL a :ISMADEOFWOOD . }.
115
+
116
+ { :GIRL a :ISMADEOFWOOD . }
117
+ pe:by [ pe:rule "witch.n3"; pe:line 22 ];
118
+ pe:binding [ pe:var "x"; pe:value :GIRL ];
119
+ pe:uses { :GIRL a :FLOATS . }.
120
+
121
+ { :GIRL a :FLOATS . }
122
+ pe:by [ pe:rule "witch.n3"; pe:line 29 ];
123
+ pe:binding
124
+ [ pe:var "x"; pe:value :DUCK ],
125
+ [ pe:var "y"; pe:value :GIRL ];
126
+ pe:uses
127
+ { :DUCK a :FLOATS . },
128
+ { :DUCK :SAMEWEIGHT :GIRL . }.
129
+
130
+ { :DUCK a :FLOATS . }
131
+ pe:by [ pe:fact "witch.n3"; pe:line 26 ].
132
+
133
+ { :DUCK :SAMEWEIGHT :GIRL . }
134
+ pe:by [ pe:fact "witch.n3"; pe:line 33 ].
135
+
136
+ { :GIRL a :WOMAN . }
137
+ pe:by [ pe:fact "witch.n3"; pe:line 16 ].
138
+ }.
@@ -17,6 +17,3 @@
17
17
  } => {
18
18
  ?S a ?B.
19
19
  }.
20
-
21
- # query
22
- { ?S a ?C } log:query { ?S a ?C }.