0.0.3 • Published 8 years ago
cycada v0.0.3
Cycada
CYC 4 queries in node.js on localhost or remote.
Currently experimental and slow enough it's not a good choice for client interactive code paths.
Installation
npm install cycadaRunning opencyc 4.0 requires Java already be installed on your system. The OpenCYC binary will be downloaded and unpacked on npm postinstall.
Running
To run the CYC service interactively:
npm run startTo terminate all instances of CYC (in case something gets hung):
npm run stopTo run CYC as a service (requires screen):
npm run service-startIf you need to access the running instance (To Exit: CTRL + a d)
screen opencycThen to stop the service:
npm run service-stopUsage
require the library
var CycServer = require('cycada');make a connection
var cyc = new CycServer({
host : '<host>',
port : <port>
});search for a concept
cyc.concepts('<name>', function(err, results){
//do something with the results
});perform a query TBD - I don't currently need it, contact me if you do
cyc.infer('<query>', function(err, results){
});Roadmap
- Finish inferences
- Investigate supporting proprietary CYC
- Keystore based caching
- Investigate supporting UMBEL
Enjoy,
-Abbey Hawk Sparrow