ithailevi / expert Goto Github PK
View Code? Open in Web Editor NEWExpert.js - the knowledge base system for node.js
Expert.js - the knowledge base system for node.js
I think adding some runnable examples to the readme would be nice.
For example: https://runkit.com/barakplasma/expert-js-quick-start (I took the code from the readme and simply ran it on runkit).
This is more of a question / Feature Request.
It would be nice to be able to get the end values of isTransitive relationships, since the relationships appears to be linear.
For example:
console.log("Biggest mammal that has fur?");
var answer3 = _.intersection( example(mammal), whatHas(fur), biggerThan(...) );
What good is serialize without a deserialize or load method?
I'm trying to use a transitive relation though a isa but it is not working. Is this a bug in my code or approach, outside the scope of the project or perhaps a unimplemented feature, in which case I can try to tackle it perhaps with a little direction.
var ant = domain.Concept.create({id:"ant"}),
dog = domain.Concept.create({id:"dog"}),
mammal = domain.Concept.create({id:"mammal"}),
insect = domain.Concept.create({id:"insect"}),
smallerThan = domain.Relation.create({id:"smallerThan",isTransitive:true});
ant.isa(insect);
dog.isa(mammal);
insect.smallerThan(mammal);
// These should both be true
assert(smallerThan(insect, mammal) === true); // true
assert(smallerThan(ant, dog) === true); // false
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.