cbmjslib

所属分类:论文
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2015-02-20 18:54:27
上 传 者sh-1993
说明:  用于自动语义发现和数据自适应的“意义调用”编程模型的JavaScript实现,如第...,
(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/)

文件列表:
lib/ (0, 2015-02-16)
lib/codemirror/ (0, 2015-02-16)
lib/codemirror/codemirror.css (7318, 2015-02-16)
lib/codemirror/codemirror.js (145975, 2015-02-16)
lib/cyc/ (0, 2015-02-16)
lib/cyc/CycI.java (9788, 2015-02-16)
lib/cyc/build-cyci.sh (346, 2015-02-16)
lib/cyc/cbm-cyc-kb.ke (3025, 2015-02-16)
lib/cyc/run-cyc.sh (98, 2015-02-16)
lib/cyc/run-cyci.sh (486, 2015-02-16)
lib/fabric/ (0, 2015-02-16)
lib/fabric/dist/ (0, 2015-02-16)
lib/fabric/dist/fabric.js (608620, 2015-02-16)
src/ (0, 2015-02-16)
src/canvas.js (4395, 2015-02-16)
src/cbm.js (8384, 2015-02-16)
tests/ (0, 2015-02-16)
tests/clock1/ (0, 2015-02-16)
tests/clock1/index.html (12, 2015-02-16)
tests/clock1/test.js (1704, 2015-02-16)
tests/clock2/ (0, 2015-02-16)
tests/clock2/index.html (12, 2015-02-16)
tests/clock2/test.js (2402, 2015-02-16)
tests/clock3/ (0, 2015-02-16)
tests/clock3/index.html (12, 2015-02-16)
tests/clock3/test.js (2697, 2015-02-16)
tests/clock4/ (0, 2015-02-16)
tests/clock4/index.html (12, 2015-02-16)
tests/clock4/test.js (3256, 2015-02-16)
tests/clock5/ (0, 2015-02-16)
tests/clock5/index.html (12, 2015-02-16)
tests/clock5/test.js (3033, 2015-02-16)
tests/home.css (81, 2015-02-16)
tests/home.html (907, 2015-02-16)
tests/zodiac1/ (0, 2015-02-16)
tests/zodiac1/aquarius.png (63022, 2015-02-16)
tests/zodiac1/aries.png (59861, 2015-02-16)
tests/zodiac1/blank.png (2585, 2015-02-16)
tests/zodiac1/cancer.png (61360, 2015-02-16)
... ...

# 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](http://www.hesam.us/callbymeaning/). ## Blog Entry Read the [blog post](http://www.cdglabs.org/cbmjslib/blog) 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): * http://www.cyc.com/platform/researchcyc * 2) 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 * 3) Build Java based Cyc API CycI.java by running: * $ cd lib/cyc * $ mkdir classes * $ ./build-cyci.sh * 4) In one terminal run Cyc: * $ cd $CYCDIR/server/cyc/run/bin/ ; ./run-cyc.sh * 5) 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". * 6) 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

近期下载者

相关文件


收藏者