ca.uwaterloo.cs.ql.fb
Class ConceptEngine
java.lang.Object
ca.uwaterloo.cs.ql.fb.ConceptEngine
public class ConceptEngine
- extends java.lang.Object
The ConceptEngine computes all possible concepts given
a contex of binary relations (object -> feature).
This class, for example, can be used as follows:
EdgeSet result;
EdgeSet hasFeature;
ConceptEngine engine;
engine = new ConceptEngine();
engine.compute(hasFeature);
result = engine.getConcepts();
result.printTo(System.out);
...
Given a context as follows:
hasFeature cat fourlegged
hasFeature cat haircovered
hasFeature chimp haircovered
hasFeature chimp intelligent
hasFeature chimp thumbed
hasFeature dog fourlegged
hasFeature dog haircovered
hasFeature dolphin intelligent
hasFeature dolphin marine
hasFeature human intelligent
hasFeature human thumbed
hasFeature whale intelligent
hasFeature whale marine
The getConcepts() returns the following:
(cat dog) (fourlegged haircovered)
(chimp) (haircovered intelligent thumbed)
(dolphin whale) (intelligent marine)
(chimp human) (intelligent thumbed)
(cat chimp dog) (haircovered)
(chimp dolphin human whale) (intelligent)
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConceptEngine
public ConceptEngine()
compute
public void compute(EdgeSet hasFeature)
getConcepts
public EdgeSet getConcepts()