You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: