ErgoAI Example Bank

Nothing works better than "Programming by Example." In recognition of this fact, we created an example bank where users can find runnable, annotated examples that illustrate the various advanced features of ErgoAI. This is a living document and more categories of examples will be added. Suggestions from users on how to improve the examples or what additional examples would be of interest as well as user-contributed examples are welcome! Please email us at info@coherentknowledge.com with your thoughts and ideas. The examples could be both of the HOWTO type as well as domain-specific (e.g., e-commerce, e-learning).

The following categories of examples are currently available. Each link, below, points to a folder that contains an 'About' document and the example files themselves.The 'About' document in each folder is a guide to that folder's examples and includes additional information on how to run them on your system. Please read this document before trying out the examples. Each example includes both data and rules and are generously commented for ease of use.

Examples

Connectivity to other languages and systems:

Importing data formats:

  • Importing tabular data. A howto on importing comma-separated (csv), tab-separated (tsv), and more general delimiter-separated (dsv) data.

  • Importing XML. A howto on importing XML data into Ergo.

  • Working with JSON. Examples of importing, exporting, and working with JSON data.

  • RDF and OWL. Examples illustrating import of RDF and OWL statements into Ergo.

Applications and features:

  • Defeasible reasoning. Illustrates the use of defeasible reasoning in Ergo.

  • Trust Management and Access Control. Shows how trust policies can be implemented in ErgoAI, including an access control policy for standard IT services in a company and part of the Facebook data access control policy. The examples illustrate: object-oriented features, HiLog (higher-order features), defeasible reasoning and the use of the dateTime data type .

  • ErgoText and Federal Regulation W. A real world example capturing part of the rules in the U.S. Federal banking regulation known as Regulation W. The information in the regulation is captured via a predefined corpus of English phrases pertaining to the banking domain. Conclusions made based on Regulation W can be explained in English using the same corpus.

  • Doing input and output as a Pro. Examples showing how to read data from files, write out to files, and more -- without pain!