eyeling 1.5.22 → 1.5.24

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.
Files changed (62) hide show
  1. package/README.md +1 -2
  2. package/examples/age.n3 +2 -3
  3. package/examples/backward.n3 +2 -3
  4. package/examples/basic-monadic.n3 +2 -3
  5. package/examples/cat-koko.n3 +5 -6
  6. package/examples/collect-all-in.n3 +6 -6
  7. package/examples/complex.n3 +2 -3
  8. package/examples/control-system.n3 +2 -2
  9. package/examples/crypto-builtins-tests.n3 +2 -2
  10. package/examples/deep-taxonomy-10.n3 +5 -0
  11. package/examples/deep-taxonomy-100.n3 +5 -0
  12. package/examples/deep-taxonomy-1000.n3 +5 -0
  13. package/examples/deep-taxonomy-10000.n3 +5 -0
  14. package/examples/derived-backward-rule-2.n3 +2 -3
  15. package/examples/derived-backward-rule.n3 +2 -2
  16. package/examples/derived-rule.n3 +2 -2
  17. package/examples/dijkstra.n3 +2 -3
  18. package/examples/dog.n3 +2 -3
  19. package/examples/drone-corridor-planner-v2.n3 +237 -0
  20. package/examples/drone-corridor-planner.n3 +131 -0
  21. package/examples/equals.n3 +3 -4
  22. package/examples/existential-rule.n3 +2 -2
  23. package/examples/expression-eval.n3 +2 -6
  24. package/examples/family-cousins.n3 +2 -4
  25. package/examples/fibonacci.n3 +2 -3
  26. package/examples/for-all-in.n3 +2 -2
  27. package/examples/french-cities.n3 +2 -3
  28. package/examples/fuse.n3 +2 -2
  29. package/examples/good-cobbler.n3 +2 -3
  30. package/examples/gps.n3 +2 -4
  31. package/examples/gray-code-counter.n3 +2 -5
  32. package/examples/hanoi.n3 +2 -3
  33. package/examples/liar.n3 +5 -0
  34. package/examples/light-eaters.n3 +2 -4
  35. package/examples/list-builtins-tests.n3 +27 -15
  36. package/examples/lldm.n3 +3 -4
  37. package/examples/math-builtins-tests.n3 +32 -134
  38. package/examples/monkey.n3 +2 -3
  39. package/examples/odrl-trust.n3 +2 -6
  40. package/examples/output/drone-corridor-planner-v2.n3 +819 -0
  41. package/examples/output/drone-corridor-planner.n3 +153 -0
  42. package/examples/output/list-builtins-tests.n3 +32 -0
  43. package/examples/output/pillar.n3 +36 -0
  44. package/examples/peano.n3 +2 -3
  45. package/examples/pi.n3 +2 -3
  46. package/examples/pillar.n3 +23 -0
  47. package/examples/polygon.n3 +2 -3
  48. package/examples/reordering.n3 +2 -3
  49. package/examples/rule-matching.n3 +2 -3
  50. package/examples/self-referential.n3 +3 -4
  51. package/examples/similar.n3 +3 -4
  52. package/examples/skolem.n3 +2 -2
  53. package/examples/snaf.n3 +2 -2
  54. package/examples/socrates.n3 +2 -2
  55. package/examples/spectral-week.n3 +2 -7
  56. package/examples/string-builtins-tests.n3 +19 -51
  57. package/examples/turing.n3 +2 -3
  58. package/examples/uri.n3 +2 -2
  59. package/examples/witch.n3 +2 -2
  60. package/examples/zebra.n3 +2 -2
  61. package/eyeling.js +30 -0
  62. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- # --------------
1
+ # ==============
2
2
  # Family cousins
3
- # --------------
3
+ # ==============
4
4
 
5
5
  @prefix : <http://example.org/family#>.
6
6
  @prefix math: <http://www.w3.org/2000/10/swap/math#>.
@@ -8,7 +8,6 @@
8
8
  # --------------------------
9
9
  # Data (a small family tree)
10
10
  # --------------------------
11
-
12
11
  :Adam :parentOf :Bob, :Carol .
13
12
  :Bob :parentOf :Dave, :Eve .
14
13
  :Carol :parentOf :Frank, :Grace .
@@ -29,7 +28,6 @@
29
28
  # -----------------------------------
30
29
  # Rules (generation, branch, cousins)
31
30
  # -----------------------------------
32
-
33
31
  # Root generation
34
32
  { } => { :Adam :generation 0 } .
35
33
 
@@ -1,8 +1,7 @@
1
- # -----------------
1
+ # ==================================================
2
2
  # Fibonacci numbers
3
- # -----------------
4
- #
5
3
  # See https://en.wikipedia.org/wiki/Fibonacci_number
4
+ # ==================================================
6
5
 
7
6
  @prefix math: <http://www.w3.org/2000/10/swap/math#>.
8
7
  @prefix : <https://eyereasoner.github.io/eye/reasoning#>.
@@ -1,6 +1,6 @@
1
- # --------------------
1
+ # ====================
2
2
  # log:forAllIn example
3
- # --------------------
3
+ # ====================
4
4
 
5
5
  @prefix : <http://example.org/>.
6
6
  @prefix log: <http://www.w3.org/2000/10/swap/log#> .
@@ -1,8 +1,7 @@
1
- # ----------------------
1
+ # ============================================
2
2
  # Traversing Graph Paths
3
- # ----------------------
4
- #
5
3
  # Simple data & rules over a tiny city dataset
4
+ # ============================================
6
5
 
7
6
  @prefix log: <http://www.w3.org/2000/10/swap/log#>.
8
7
  @prefix owl: <http://www.w3.org/2002/07/owl#>.
package/examples/fuse.n3 CHANGED
@@ -1,6 +1,6 @@
1
- # --------------
1
+ # ==============
2
2
  # Inference fuse
3
- # --------------
3
+ # ==============
4
4
 
5
5
  @prefix : <https://eyereasoner.github.io/ns#>.
6
6
 
@@ -1,9 +1,8 @@
1
- # ------------
1
+ # ========================================================================
2
2
  # Good cobbler
3
- # ------------
4
- #
5
3
  # Example from https://shs.hal.science/halshs-04148373/document
6
4
  # Using term logic http://intrologic.stanford.edu/chapters/chapter_11.html
5
+ # ========================================================================
7
6
 
8
7
  @prefix : <https://eyereasoner.github.io/ns#>.
9
8
 
package/examples/gps.n3 CHANGED
@@ -1,9 +1,8 @@
1
- # ------------------------------
1
+ # =======================================================================
2
2
  # Goal driven Parallel Sequences
3
- # ------------------------------
4
- #
5
3
  # See https://www.sciencedirect.com/science/article/pii/S1532046421000794
6
4
  # and https://github.com/hongsun502/wstLogic/tree/master
5
+ # =======================================================================
7
6
 
8
7
  @prefix math: <http://www.w3.org/2000/10/swap/math#>.
9
8
  @prefix list: <http://www.w3.org/2000/10/swap/list#>.
@@ -24,7 +23,6 @@
24
23
  # -----------------------------
25
24
  # Compute all paths by chaining
26
25
  # -----------------------------
27
-
28
26
  # Base: a single map description is a path
29
27
  {
30
28
  (?From ?To (?Act) ?Dur ?Cost ?Belief ?Comfort) :path true.
@@ -1,8 +1,7 @@
1
- # -----------------
1
+ # =================================================
2
2
  # Gray code counter
3
- # -----------------
4
- #
5
3
  # Taken from the book "Clause and Effect" Chapter 8
4
+ # =================================================
6
5
 
7
6
  @prefix list: <http://www.w3.org/2000/10/swap/list#>.
8
7
  @prefix : <https://eyereasoner.github.io/eye/reasoning#>.
@@ -41,7 +40,6 @@
41
40
  (?T2 ?T3) :or ?Q2.
42
41
  }.
43
42
 
44
-
45
43
  {(?C (?Qa ?Qb ?Qc)) :gcc (?Za ?Zb ?Zc)} <= {
46
44
  (?Qa ?Qb ?Qc) :netb (?D1 ?D2).
47
45
  (?Qa ?Qb) :neta ?D3.
@@ -50,7 +48,6 @@
50
48
  (?D3 ?C ?Qc) :dff ?Zc.
51
49
  }.
52
50
 
53
-
54
51
  {(() ?S) :testgcc ()} <= true.
55
52
  {(?Cc ?S) :testgcc ?Nc} <= {
56
53
  ?Cc list:firstRest (?C ?Cs).
package/examples/hanoi.n3 CHANGED
@@ -1,8 +1,7 @@
1
- # ---------------
1
+ # =========================================================================
2
2
  # Towers of Hanoi
3
- # ---------------
4
- #
5
3
  # Taken from the book "The Art of Prolog" by Leon Sterling and Ehud Shapiro
4
+ # =========================================================================
6
5
 
7
6
  @prefix math: <http://www.w3.org/2000/10/swap/math#>.
8
7
  @prefix list: <http://www.w3.org/2000/10/swap/list#>.
package/examples/liar.n3 CHANGED
@@ -1,3 +1,8 @@
1
+ # =================================
2
+ # Liar example
3
+ # Example from Patrick Hochstenbach
4
+ # =================================
5
+
1
6
  @prefix : <https://eyereasoner.github.io/ns#>.
2
7
  @prefix log: <http://www.w3.org/2000/10/swap/log#>.
3
8
 
@@ -1,6 +1,6 @@
1
- # ------------
1
+ # ============
2
2
  # Light eaters
3
- # ------------
3
+ # ============
4
4
 
5
5
  @prefix math: <http://www.w3.org/2000/10/swap/math#>.
6
6
  @prefix : <http://example.org/light-eaters#>.
@@ -10,7 +10,6 @@
10
10
  # convert daily light exposure into stored energy (photosynthesis),
11
11
  # then decide whether they thrive or go hungry under their conditions.
12
12
  # ------------------------------------------------------------
13
-
14
13
  # One day with a fixed amount of usable light (hours)
15
14
  :Today :lightHours 10.0.
16
15
 
@@ -26,7 +25,6 @@
26
25
  # ------------------------------------------------------------
27
26
  # Rules
28
27
  # ------------------------------------------------------------
29
-
30
28
  # (1) Daily light energy available at each place:
31
29
  # E_place = lightIntensity * lightHours
32
30
  {
@@ -1,16 +1,12 @@
1
- # -------------------
1
+ # ===================
2
2
  # list builtins tests
3
- # -------------------
3
+ # ===================
4
4
 
5
5
  @prefix : <https://eyereasoner.github.io/ns#> .
6
6
  @prefix list: <http://www.w3.org/2000/10/swap/list#> .
7
7
  @prefix log: <http://www.w3.org/2000/10/swap/log#> .
8
8
 
9
- # ============================================================
10
- # 4.4 list: builtins
11
- # ============================================================
12
-
13
- # 4.4.1 list:append
9
+ # list:append
14
10
  # ( (1 2) (3 4) ) list:append (1 2 3 4) .
15
11
  {
16
12
  ( (1 2) (3 4) ) list:append (1 2 3 4) .
@@ -18,7 +14,7 @@
18
14
  :ok_list_append_1 a :Pass .
19
15
  } .
20
16
 
21
- # 4.4.2 list:first
17
+ # list:first
22
18
  # (1 2 3 4) list:first 1 .
23
19
  {
24
20
  (1 2 3 4) list:first 1 .
@@ -26,7 +22,7 @@
26
22
  :ok_list_first_1 a :Pass .
27
23
  } .
28
24
 
29
- # 4.4.3 list:in
25
+ # list:in
30
26
  # "cat" list:in ( "dog" "penguin" "cat" ) .
31
27
  {
32
28
  "cat" list:in ( "dog" "penguin" "cat" ) .
@@ -34,7 +30,7 @@
34
30
  :ok_list_in_1 a :Pass .
35
31
  } .
36
32
 
37
- # 4.4.4 list:iterate
33
+ # list:iterate
38
34
  # ("dog" "penguin" "cat") list:iterate (?index "cat") .
39
35
  {
40
36
  ("dog" "penguin" "cat") list:iterate (?index "cat") .
@@ -42,7 +38,7 @@
42
38
  :ok_list_iterate_1 a :Pass .
43
39
  } .
44
40
 
45
- # 4.4.5 list:last
41
+ # list:last
46
42
  # (1 2 3 4) list:last 4 .
47
43
  {
48
44
  (1 2 3 4) list:last 4 .
@@ -50,7 +46,7 @@
50
46
  :ok_list_last_1 a :Pass .
51
47
  } .
52
48
 
53
- # 4.4.6 list:length
49
+ # list:length
54
50
  # (1 2 3 4) list:length 4 .
55
51
  {
56
52
  (1 2 3 4) list:length 4 .
@@ -58,7 +54,7 @@
58
54
  :ok_list_length_1 a :Pass .
59
55
  } .
60
56
 
61
- # 4.4.7 list:member
57
+ # list:member
62
58
  # ("dog" "penguin" "cat") list:member "cat" .
63
59
  {
64
60
  ("dog" "penguin" "cat") list:member "cat" .
@@ -66,7 +62,7 @@
66
62
  :ok_list_member_1 a :Pass .
67
63
  } .
68
64
 
69
- # 4.4.8 list:memberAt
65
+ # list:memberAt
70
66
  # (("dog" "penguin" "cat") 2) list:memberAt "cat" .
71
67
  {
72
68
  (("dog" "penguin" "cat") 2) list:memberAt "cat" .
@@ -74,7 +70,7 @@
74
70
  :ok_list_memberAt_1 a :Pass .
75
71
  } .
76
72
 
77
- # 4.4.9 list:remove
73
+ # list:remove
78
74
  # (("dog" "penguin" "cat" "penguin") "penguin") list:remove ("dog" "cat") .
79
75
  {
80
76
  (("dog" "penguin" "cat" "penguin") "penguin") list:remove ("dog" "cat") .
@@ -82,3 +78,19 @@
82
78
  :ok_list_remove_1 a :Pass .
83
79
  } .
84
80
 
81
+ # list:rest
82
+ # (1 2 3 4) list:rest (2 3 4) .
83
+ {
84
+ (1 2 3 4) list:rest (2 3 4) .
85
+ } => {
86
+ :ok_list_rest_1 a :Pass .
87
+ } .
88
+
89
+ # list:firstRest
90
+ # (1 2 3 4) list:firstRest (1 (2 3 4)) .
91
+ {
92
+ (1 2 3 4) list:firstRest (1 (2 3 4)) .
93
+ } => {
94
+ :ok_list_firstRest_1 a :Pass .
95
+ } .
96
+
package/examples/lldm.n3 CHANGED
@@ -1,8 +1,7 @@
1
- # ----------------------------------
1
+ # ==========================================================================================
2
2
  # Leg Length Discrepancy Measurement
3
- # ----------------------------------
4
- #
5
3
  # See https://web.archive.org/web/20220524062310/http://www.agfa.com/w3c/2002/10/medicad/op/
4
+ # ==========================================================================================
6
5
 
7
6
  @prefix log: <http://www.w3.org/2000/10/swap/log#>.
8
7
  @prefix math: <http://www.w3.org/2000/10/swap/math#>.
@@ -33,7 +32,7 @@
33
32
  :L4 a :Line.
34
33
 
35
34
  :incident rdfs:domain :Point; rdfs:range :Line; owl:inverseOf :contains.
36
- :perpendicular rdfs:domain :Line; rdfs:range :Line; a owl:SymmetricProperty.
35
+ :perpendicular rdfs:domain :Line; rdfs:range :Line; a owl:SymmetricProperty.
37
36
 
38
37
  :p1xCm rdfs:domain :Measurement; rdfs:range :Quantity.
39
38
  :p1yCm rdfs:domain :Measurement; rdfs:range :Quantity.
@@ -1,16 +1,15 @@
1
- # -------------------
1
+ # ===================
2
2
  # math builtins tests
3
- # -------------------
3
+ # ===================
4
4
 
5
5
  @prefix : <http://example.org/math-tests#> .
6
6
  @prefix math: <http://www.w3.org/2000/10/swap/math#> .
7
7
  @prefix log: <http://www.w3.org/2000/10/swap/log#> .
8
8
  @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
9
9
 
10
- # -----------------------------------------------------------------------------
10
+ # ----------------------
11
11
  # Simple test vocabulary
12
- # -----------------------------------------------------------------------------
13
-
12
+ # ----------------------
14
13
  :MathBuiltinTest a :TestCaseClass .
15
14
 
16
15
  :builtin a :TestProperty .
@@ -22,9 +21,9 @@
22
21
 
23
22
  :pass a :TestStatus .
24
23
 
25
- # -----------------------------------------------------------------------------
24
+ # ------------------------------------------------------------------------
26
25
  # NOTE ABOUT NUMERIC LITERALS
27
- # -----------------------------------------------------------------------------
26
+ # ------------------------------------------------------------------------
28
27
  # eyeling.js' math: builtins:
29
28
  # - accept both typed and untyped numeric literals as INPUT (via parseNum)
30
29
  # - RETURN untyped numeric literals (via formatNum)
@@ -33,13 +32,9 @@
33
32
  # - Inputs may be typed or untyped (to exercise casting).
34
33
  # - Expected results are written as UNTYPED numerics so that math:equalTo
35
34
  # can unify directly with the reasoner's untyped numeric results.
36
- # -----------------------------------------------------------------------------
37
-
38
-
39
- # =============================================================================
40
- # 4.2.1 math:absoluteValue
41
- # =============================================================================
35
+ # ------------------------------------------------------------------------
42
36
 
37
+ # math:absoluteValue
43
38
  {
44
39
  -2 math:absoluteValue ?abs .
45
40
  ?abs math:equalTo 2 .
@@ -68,11 +63,7 @@
68
63
  :status :pass .
69
64
  } .
70
65
 
71
-
72
- # =============================================================================
73
- # 4.2.2 math:acos
74
- # =============================================================================
75
-
66
+ # math:acos
76
67
  {
77
68
  1 math:acos ?r .
78
69
  ?r math:equalTo 0 .
@@ -87,11 +78,7 @@
87
78
  :status :pass .
88
79
  } .
89
80
 
90
-
91
- # =============================================================================
92
- # 4.2.3 math:asin
93
- # =============================================================================
94
-
81
+ # math:asin
95
82
  {
96
83
  0 math:asin ?r .
97
84
  ?r math:equalTo 0 .
@@ -106,11 +93,7 @@
106
93
  :status :pass .
107
94
  } .
108
95
 
109
-
110
- # =============================================================================
111
- # 4.2.4 math:atan
112
- # =============================================================================
113
-
96
+ # math:atan
114
97
  # atan(1) = pi/4
115
98
  {
116
99
  1 math:atan ?r .
@@ -126,11 +109,7 @@
126
109
  :status :pass .
127
110
  } .
128
111
 
129
-
130
- # =============================================================================
131
- # 4.2.5 math:cos
132
- # =============================================================================
133
-
112
+ # math:cos
134
113
  # cos(0) = 1
135
114
  {
136
115
  0 math:cos ?r .
@@ -146,11 +125,7 @@
146
125
  :status :pass .
147
126
  } .
148
127
 
149
-
150
- # =============================================================================
151
- # 4.2.6 math:cosh
152
- # =============================================================================
153
-
128
+ # math:cosh
154
129
  # cosh(0) = 1
155
130
  {
156
131
  0 math:cosh ?r .
@@ -166,12 +141,7 @@
166
141
  :status :pass .
167
142
  } .
168
143
 
169
-
170
- # =============================================================================
171
- # 4.2.7 math:degrees
172
- # =============================================================================
173
-
174
- # degrees(pi) = 180
144
+ # math:degrees
175
145
  {
176
146
  3.141592653589793 math:degrees ?deg .
177
147
  ?deg math:equalTo 180 .
@@ -186,11 +156,7 @@
186
156
  :status :pass .
187
157
  } .
188
158
 
189
-
190
- # =============================================================================
191
- # 4.2.8 math:difference
192
- # =============================================================================
193
-
159
+ # math:difference
194
160
  {
195
161
  (7 2) math:difference ?d .
196
162
  ?d math:equalTo 5 .
@@ -219,11 +185,7 @@
219
185
  :status :pass .
220
186
  } .
221
187
 
222
-
223
- # =============================================================================
224
- # 4.2.9 math:equalTo
225
- # =============================================================================
226
-
188
+ # math:equalTo
227
189
  # Positive equality test
228
190
  {
229
191
  42 math:equalTo 42 .
@@ -237,11 +199,7 @@
237
199
  :status :pass .
238
200
  } .
239
201
 
240
-
241
- # =============================================================================
242
- # 4.2.10 math:exponentiation
243
- # =============================================================================
244
-
202
+ # math:exponentiation
245
203
  # Forward mode: (7 2) -> 49
246
204
  {
247
205
  (7 2) math:exponentiation ?r .
@@ -271,11 +229,7 @@
271
229
  :status :pass .
272
230
  } .
273
231
 
274
-
275
- # =============================================================================
276
- # 4.2.11 math:greaterThan
277
- # =============================================================================
278
-
232
+ # math:greaterThan
279
233
  {
280
234
  42 math:greaterThan 41 .
281
235
  }
@@ -288,11 +242,7 @@
288
242
  :status :pass .
289
243
  } .
290
244
 
291
-
292
- # =============================================================================
293
- # 4.2.12 math:lessThan
294
- # =============================================================================
295
-
245
+ # math:lessThan
296
246
  {
297
247
  41 math:lessThan 42 .
298
248
  }
@@ -305,11 +255,7 @@
305
255
  :status :pass .
306
256
  } .
307
257
 
308
-
309
- # =============================================================================
310
- # 4.2.13 math:negation
311
- # =============================================================================
312
-
258
+ # math:negation
313
259
  # Forward mode
314
260
  {
315
261
  42 math:negation ?neg .
@@ -339,11 +285,7 @@
339
285
  :status :pass .
340
286
  } .
341
287
 
342
-
343
- # =============================================================================
344
- # 4.2.14 math:notEqualTo
345
- # =============================================================================
346
-
288
+ # math:notEqualTo
347
289
  {
348
290
  41 math:notEqualTo 42 .
349
291
  }
@@ -356,11 +298,7 @@
356
298
  :status :pass .
357
299
  } .
358
300
 
359
-
360
- # =============================================================================
361
- # 4.2.15 math:notGreaterThan
362
- # =============================================================================
363
-
301
+ # math:notGreaterThan
364
302
  {
365
303
  41 math:notGreaterThan 42 .
366
304
  }
@@ -373,11 +311,7 @@
373
311
  :status :pass .
374
312
  } .
375
313
 
376
-
377
- # =============================================================================
378
- # 4.2.16 math:notLessThan
379
- # =============================================================================
380
-
314
+ # math:notLessThan
381
315
  {
382
316
  42 math:notLessThan 41 .
383
317
  }
@@ -390,11 +324,7 @@
390
324
  :status :pass .
391
325
  } .
392
326
 
393
-
394
- # =============================================================================
395
- # 4.2.17 math:product
396
- # =============================================================================
397
-
327
+ # math:product
398
328
  {
399
329
  (2 21) math:product ?p .
400
330
  ?p math:equalTo 42 .
@@ -423,11 +353,7 @@
423
353
  :status :pass .
424
354
  } .
425
355
 
426
-
427
- # =============================================================================
428
- # 4.2.18 math:quotient
429
- # =============================================================================
430
-
356
+ # math:quotient
431
357
  {
432
358
  (42 2) math:quotient ?q .
433
359
  ?q math:equalTo 21 .
@@ -442,11 +368,7 @@
442
368
  :status :pass .
443
369
  } .
444
370
 
445
-
446
- # =============================================================================
447
- # 4.2.19 math:remainder
448
- # =============================================================================
449
-
371
+ # math:remainder
450
372
  {
451
373
  (10 3) math:remainder ?r .
452
374
  ?r math:equalTo 1 .
@@ -461,11 +383,7 @@
461
383
  :status :pass .
462
384
  } .
463
385
 
464
-
465
- # =============================================================================
466
- # 4.2.20 math:rounded
467
- # =============================================================================
468
-
386
+ # math:rounded
469
387
  # Typed input, untyped integer output
470
388
  {
471
389
  "3.3"^^xsd:double math:rounded ?r .
@@ -511,11 +429,7 @@
511
429
  :status :pass .
512
430
  } .
513
431
 
514
-
515
- # =============================================================================
516
- # 4.2.21 math:sin
517
- # =============================================================================
518
-
432
+ # math:sin
519
433
  # sin(0) = 0
520
434
  {
521
435
  0 math:sin ?r .
@@ -531,11 +445,7 @@
531
445
  :status :pass .
532
446
  } .
533
447
 
534
-
535
- # =============================================================================
536
- # 4.2.22 math:sinh
537
- # =============================================================================
538
-
448
+ # math:sinh
539
449
  # sinh(0) = 0
540
450
  {
541
451
  0 math:sinh ?r .
@@ -551,11 +461,7 @@
551
461
  :status :pass .
552
462
  } .
553
463
 
554
-
555
- # =============================================================================
556
- # 4.2.23 math:sum
557
- # =============================================================================
558
-
464
+ # math:sum
559
465
  {
560
466
  (1 2 3 4 5 6 7 8 9 10) math:sum ?s .
561
467
  ?s math:equalTo 55 .
@@ -570,11 +476,7 @@
570
476
  :status :pass .
571
477
  } .
572
478
 
573
-
574
- # =============================================================================
575
- # 4.2.24 math:tan
576
- # =============================================================================
577
-
479
+ # math:tan
578
480
  # tan(0) = 0
579
481
  {
580
482
  0 math:tan ?r .
@@ -590,11 +492,7 @@
590
492
  :status :pass .
591
493
  } .
592
494
 
593
-
594
- # =============================================================================
595
- # 4.2.25 math:tanh
596
- # =============================================================================
597
-
495
+ # math:tanh
598
496
  # tanh(0) = 0
599
497
  {
600
498
  0 math:tanh ?r .
@@ -1,8 +1,7 @@
1
- # --------------
1
+ # =================================
2
2
  # Monkey example
3
- # --------------
4
- #
5
3
  # Example from Patrick Hochstenbach
4
+ # =================================
6
5
 
7
6
  @prefix : <https://eyereasoner.github.io/ns#>.
8
7