ekms 8.7.0 → 8.8.0-beta.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.
package/common/crew.js CHANGED
@@ -82,12 +82,12 @@ knowledgeModule( {
82
82
  test: {
83
83
  name: './crew.test.json',
84
84
  contents: crew_tests,
85
+ checks: {
86
+ context: defaultContextCheck(),
87
+ },
85
88
  },
86
89
  template: {
87
90
  template,
88
91
  instance: crew_instance,
89
- checks: {
90
- context: defaultContextCheck(),
91
- },
92
92
  },
93
93
  })
@@ -47,7 +47,13 @@ let config = {
47
47
  "(([queryable]) [is|] ([queryable|]))",
48
48
  "([is:queryBridge|] ([queryable]) ([queryable]))",
49
49
  // "(([queryable]) [is:isEdBridge|is,are] ([isEdAble|]))",
50
+ // who is the car owned by
50
51
  "(([queryable]) [(<isEd|> ([isEdAble|]))])",
52
+
53
+ /* TODO investigate this:
54
+ {"pattern":"(([ownee])^ <owned|owned> ([by] ([owner])?))","uuid":"people1"}
55
+ {"pattern":"(([isEdee])^ <isEdAble|> ([by] ([isEder])?))","uuid":"dialogues2"}
56
+ */
51
57
  "(([isEdee])^ <isEdAble|> ([by] ([isEder])?))",
52
58
  "([isEdee|])",
53
59
  "([isEder|])",
@@ -171,7 +177,12 @@ let config = {
171
177
  // { id: "isEd", level: 0, bridge: "{ number: operator.number, ...context, properties(subject).number: operator.number }" },
172
178
  // NO or symlink subject: link(current.ownee) // any other operator...
173
179
  // NO { id: "isEd", level: 0, bridge: "{ number: operator.number, ...context, subject.number: operator.number }" },
174
- { id: "isEd", level: 0, bridge: "{ number: operator.number, ...context, [context.subject].number: operator.number }" },
180
+ {
181
+ id: "isEd",
182
+ level: 0,
183
+ localHierarchy: [['unknown', 'isEder'], ['unknown', 'isEdee']],
184
+ bridge: "{ number: operator.number, ...context, [context.subject].number: operator.number }"
185
+ },
175
186
  // { id: "isEd", level: 0, bridge: "{ ...context }" },
176
187
  { id: "isEdAble", level: 0, bridge: "{ ...next(operator) }" },
177
188
  { id: "isEdAble", level: 1, bridge: "{ ...next(operator) }" },
@@ -41,7 +41,6 @@
41
41
  ],
42
42
  "generators": [
43
43
  {
44
- "where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:77",
45
44
  "match": "({context}) => context.marker == 'noconversion'",
46
45
  "apply": "async ({context, gp}) => `there is no conversion between ${await gp(context.from)} and ${await gp(context.to)}`"
47
46
  }
@@ -702,6 +701,11 @@
702
701
  "theAble",
703
702
  false
704
703
  ],
704
+ [
705
+ "propertyOf",
706
+ "preposition",
707
+ false
708
+ ],
705
709
  [
706
710
  "punctuation",
707
711
  "punctuation",
@@ -1220,6 +1224,24 @@
1220
1224
  1
1221
1225
  ]
1222
1226
  ],
1227
+ [
1228
+ [
1229
+ "is",
1230
+ 0
1231
+ ],
1232
+ [
1233
+ "list",
1234
+ 0
1235
+ ],
1236
+ [
1237
+ "unknown",
1238
+ 0
1239
+ ],
1240
+ [
1241
+ "unknown",
1242
+ 1
1243
+ ]
1244
+ ],
1223
1245
  [
1224
1246
  [
1225
1247
  "is",
@@ -1404,6 +1426,24 @@
1404
1426
  1
1405
1427
  ]
1406
1428
  ],
1429
+ [
1430
+ [
1431
+ "is",
1432
+ 0
1433
+ ],
1434
+ [
1435
+ "list",
1436
+ 0
1437
+ ],
1438
+ [
1439
+ "unknown",
1440
+ 0
1441
+ ],
1442
+ [
1443
+ "unknown",
1444
+ 1
1445
+ ]
1446
+ ],
1407
1447
  [
1408
1448
  [
1409
1449
  "is",