This is an acceptable structure, yet it leads to schema compilation error:
2020-02-26 08:59:16 [info]: Schema generated from string
(node:396) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'fields' of unde
fined
at createClassList (/home/runner/GleefulLimitedSpof/node_modules/staple-api/schema/schema
FromOntology.js:122:49)
at process._tickCallback (internal/process/next_tick.js:68:7)
at Function.Module.runMain (internal/modules/cjs/loader.js:834:11)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
(node:396) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originat
ed either by throwing inside of an async function without a catch block, or by rejecting a pr
omise which was not handled with .catch(). (rejection id: 1)
(node:396) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the
future, promise rejections that are not handled will terminate the Node.js process with a non
-zero exit code.
In the following schema, class
dbo:Country
has only one property inherited fromowl:Thing
:This is an acceptable structure, yet it leads to schema compilation error: