Aller au contenu principal


Developer Documentation

Using RCAExplore as a library

Creating a Relational Context Family in java

3 important classes in the package org.rcaexplore.context :

  • RelationalContextFamily
  • Context
  • RelationalContext

Creating an Object-Attribute context

//create the context
Context c=new Context("name");

//Optional. Define the default algorithm used on this context

//Optional. Add a textual description to the context
c.setDescription("a context just for test");

//add entities
c.addEntity(new Entity("ent1"));
c.addEntity(new Entity("ent2"));
c.addEntity(new Entity("ent3"));
c.addEntity(new Entity("ent4"));

//add attributes
c.addAttribute(new BinaryAttribute("att1"));
c.addAttribute(new BinaryAttribute("att2"));
c.addAttribute(new BinaryAttribute("att3"));

//add incident relation
c.addPair(new Entity("ent1"), new BinaryAttribute("att2"));
c.addPair(new Entity("ent2"), new BinaryAttribute("att2"));
c.addPair(new Entity("ent3"), new BinaryAttribute("att3"));

Objects Entity, BinaryAttribute and RelationalAttribute are immutable, meaning that, in the same way as String, the method equals is redefined, it can be used as a key in hashmaps, and equality does not depend on reference but on values.

Known bug: At the moment all the entities of the context should be added before adding any pair, otherwise it can lead to crash when adding a pair to a newly added Entity


Launching RCA in a java program


Retrieving a concept poset in a java program


Modify the behavior of RCAExplore

RCAExplore permits to explore different ways to extract information from your data. Some routes are already available, but you also can add new ones by creating new scaling operators or new concept generation algorithms.