Giter Site home page Giter Site logo

cr3a7ure / cbmjslib Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cdglabs/cbmjslib

0.0 3.0 0.0 1.8 MB

A JavaScript implementation of the "Call by Meaning" programming model for automated semantic discovery and data adaption as described in paper: http://www.hesam.us/callbymeaning/

CSS 1.06% Java 1.41% Shell 0.13% JavaScript 97.27% HTML 0.13%

cbmjslib's Introduction

cbmjslib

This is a JavaScript implementation of the "Call by Meaning" programming model for automated semantic discovery and data adaption as described in this paper.

Blog Entry

Read the blog post about it

Instructions

In order to use CbMJS library first launch Cyc and its interface server:

    1. Obtain ResearchCyc (placed in a directory, say $CYCDIR):
    1. Obtain the following jar files and place in lib/jar/:
    • javax.servlet-5.1.11.jar
    • servlet-api-3.0.jar
    • jetty-http-9.0.6.v20130930.jar
    • websocket-api-9.0.6.v20130930.jar
    • jetty-io-9.0.6.v20130930.jar
    • websocket-client-9.0.6.v20130930.jar
    • jetty-server-9.0.6.v20130930.jar
    • websocket-common-9.0.6.v20130930.jar
    • jetty-util-9.0.6.v20130930.jar
    • websocket-server-9.0.6.v20130930.jar
    • opencyc-4.0-nighthawk.145797.jar
    • websocket-servlet-9.0.6.v20130930.jar
    1. Build Java based Cyc API CycI.java by running:
    • $ cd lib/cyc
    • $ mkdir classes
    • $ ./build-cyci.sh
    1. In one terminal run Cyc:
    • $ cd $CYCDIR/server/cyc/run/bin/ ; ./run-cyc.sh
    1. Load the extra Call-by-Meaning ontology into base Cyc KB by following steps:
    • a. Open up the Cyc browser in your web browser by noting the URL given in the terminal where you ran step (4) above, seen on line saying "Connect via URL ..."
    • b. Log in as "CycAdministrator".
    • c. On top pane click on Tools > Navigator > Load KE File
    • d. Enter full pathname: "$HERE/lib/cyc/cbm-cyc-kb.ke" and click on "Load File".
    • e. Click on "Add Forms to Agenda".
    1. In another terminal run CycI interface server:
    • $ ./run-cyci.sh

API (package: cbm.KB)

addComponent(object)

add object to KB repository

findByName(name)

find an object in KB repository with the name of

 findByAPIName(name)

find an object in KB repository having a property named

 findByMeaning(query, asker, onFound)

object asks the KB to find an object in repository matching with query and callback function(foundObject) { ... } to be invoked on response

 askByMeaning(query, isBoolean, onReturn, asker, askee)

object asks the KB query about object and callback function(answer) { ... } is invoked on response. boolean value says whether (if true) this is a "yes/no" question or (if false) asking for a dictionary model as the answer

cbmjslib's People

Watchers

James Cloos avatar Goutis Dimitrios avatar  avatar

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.