Code Monkey home page Code Monkey logo

epistemic-reasoner's Introduction

Epistemic Reasoning as a Service

Deployed at (there is no front-end): https://epistemic-reasoner.herokuapp.com/

Epistemic Reasoner API (Express/Node.js Server)

This is a fork of hintikkasworld that has been stripped of anything other than the explicit models and barebones reasoner, and exposes the functionality via a REST API. This server provides a simple API for creating, updating, and reasoning about Explicit Epistemic models.

Epistemic Agents

The agents using this reasoner can be found at: https://github.com/MikeVezina/epistemic-agents

Getting Started

Prerequisites

Node Version: 13 (Current, found here: https://nodejs.org/en/download/current/)

Setting up the application

1. Clone the repository

git clone https://github.com/MikeVezina/epistemic-reasoner.git
cd epistemic-reasoner

2. Install dependencies

npm install

3. Starting the application

npm start

epistemic-reasoner's People

Contributors

francoisschwarzentruber avatar lxnv avatar sebgamblin avatar mikevezina avatar gpbp avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar

epistemic-reasoner's Issues

Max call stack size when finding pointed world on empty model

Call stack from Heroku is as follows (recursive call):

(node:30) UnhandledPromiseRejectionWarning: RangeError: Maximum call stack size exceeded
2020-11-08T21:05:53.286741+00:00 app[web.1]: at ExplicitEpistemicModel.Graph.getPointedNode (/app/src/app/modules/core/models/graph.ts:537:5)
2020-11-08T21:05:53.286742+00:00 app[web.1]: at ExplicitEpistemicModel.getPointedWorldID (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:173:21)
2020-11-08T21:05:53.286742+00:00 app[web.1]: at ExplicitEpistemicModel.findPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:152:18)
2020-11-08T21:05:53.286743+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:144:44)
2020-11-08T21:05:53.286743+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:144:14)
2020-11-08T21:05:53.286744+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:144:14)
2020-11-08T21:05:53.286744+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:144:14)
2020-11-08T21:05:53.286744+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:144:14)
2020-11-08T21:05:53.286744+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:144:14)
2020-11-08T21:05:53.286745+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:144:14)
2020-11-08T21:05:53.286945+00:00 app[web.1]: (node:30) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
2020-11-08T21:05:53.287087+00:00 app[web.1]: (node:30) [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.
2020-11-08T21:05:53.833179+00:00 app[web.1]: Creating new model with 0 worlds
2020-11-08T21:05:53.941975+00:00 app[web.1]: (node:30) UnhandledPromiseRejectionWarning: RangeError: Maximum call stack size exceeded
2020-11-08T21:05:53.941977+00:00 app[web.1]: at Function.[Symbol.hasInstance] ()
2020-11-08T21:05:53.941978+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:133:14)
2020-11-08T21:05:53.941979+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:144:14)
2020-11-08T21:05:53.941979+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:144:14)
2020-11-08T21:05:53.941980+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:144:14)
2020-11-08T21:05:53.941983+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:144:14)
2020-11-08T21:05:53.941983+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:144:14)
2020-11-08T21:05:53.942005+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:144:14)
2020-11-08T21:05:53.942006+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:144:14)
2020-11-08T21:05:53.942006+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:144:14)
2020-11-08T21:05:53.942123+00:00 app[web.1]: (node:30) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
2020-11-08T21:06:36.413256+00:00 app[web.1]: Creating new model with 0 worlds
2020-11-08T21:06:36.449363+00:00 app[web.1]: (node:30) UnhandledPromiseRejectionWarning: RangeError: Maximum call stack size exceeded
2020-11-08T21:06:36.449365+00:00 app[web.1]: at Function.[Symbol.hasInstance] ()
2020-11-08T21:06:36.449369+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:133:14)
2020-11-08T21:06:36.449370+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:144:14)
2020-11-08T21:06:36.449370+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:144:14)
2020-11-08T21:06:36.449371+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:144:14)
2020-11-08T21:06:36.449371+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:144:14)
2020-11-08T21:06:36.449371+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:144:14)
2020-11-08T21:06:36.449372+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:144:14)
2020-11-08T21:06:36.449372+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:144:14)
2020-11-08T21:06:36.449372+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:144:14)
2020-11-08T21:06:36.457443+00:00 app[web.1]: (node:30) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)
2020-11-08T21:08:16.169296+00:00 app[web.1]: Creating new model with 0 worlds
2020-11-08T21:08:16.176701+00:00 app[web.1]: (node:30) UnhandledPromiseRejectionWarning: RangeError: Maximum call stack size exceeded
2020-11-08T21:08:16.176704+00:00 app[web.1]: at Function.[Symbol.hasInstance] ()
2020-11-08T21:08:16.176706+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:133:14)
2020-11-08T21:08:16.176706+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:144:14)
2020-11-08T21:08:16.176707+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:144:14)
2020-11-08T21:08:16.176707+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:144:14)
2020-11-08T21:08:16.176708+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:144:14)
2020-11-08T21:08:16.176708+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:144:14)
2020-11-08T21:08:16.176708+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:144:14)
2020-11-08T21:08:16.176709+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:144:14)
2020-11-08T21:08:16.176709+00:00 app[web.1]: at ExplicitEpistemicModel.setPointedWorld (/app/src/app/modules/core/models/epistemicmodel/explicit-epistemic-model.ts:144:14)
2020-11-08T21:08:16.176851+00:00 app[web.1]: (node:30) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.