org.put.semintec.mining.association
Class Bias

java.lang.Object
  extended by org.put.semintec.mining.association.Bias

public class Bias
extends java.lang.Object

Represents a declarative bias.

Author:
Agnieszka Lawrynowicz

Field Summary
static java.util.ArrayList predicates
          The list of predicates from which patterns are to be generated.
 
Constructor Summary
Bias()
           
 
Method Summary
 jdsl.core.api.Tree buildTaxonomyRootedAtClass(org.semanticweb.kaon2.api.owl.elements.OWLClass topClass, java.util.ArrayList predicates, KnowledgeBase kb, jdsl.core.api.Tree taxonomy)
          Creates a taxonomy of classes, from the list of predicates specified as input, that are rooted at the specified class according to classified knowledge base
 void computeClassTaxonomy(KnowledgeBase kb)
          Computes taxonomy of class predicates given in declarative bias, wrt the classified KB A root of class taxonomy is owl:thing
 void computePropertyTaxonomy(KnowledgeBase kb)
          Computes taxonomy of property predicates given in declarative bias A root of property taxonomy is a fake property simulating top property
 java.util.ArrayList determineTopKBClassesInList(java.util.ArrayList predicates, KnowledgeBase kb)
          Retrieves classes that are top classes in given KB from the list of predicates specified as input.
 jdsl.core.api.Tree getClassTaxonomy()
          Getter of the property classTaxonomy
static java.util.ArrayList getPredicates()
          Getter of the property predicates
 jdsl.core.api.Tree getPropertyTaxonomy()
          Getter of the property propertyTaxonomy
 boolean isSuperPropertyTransitively(org.semanticweb.kaon2.api.owl.elements.ObjectProperty opSup, org.semanticweb.kaon2.api.owl.elements.ObjectProperty opSub, KnowledgeBase kb)
           
 java.util.ArrayList selectTopClassesFromList(java.util.ArrayList predicates, KnowledgeBase kb)
          Retrieves all classes from the list of predicates, specified as input, that have no class subsuming it present at the list of predicates
 java.util.ArrayList selectTopPropertiesFromList(java.util.ArrayList predicates, KnowledgeBase kb)
          Retrieves all properties from the list of predicates, specified as input, that have no super property (transitively) present at the list of predicates
 void setClassTaxonomy(jdsl.core.api.Tree classTaxonomy)
          Setter of the property classTaxonomy
 void setPredicates(java.util.ArrayList predicates)
          Setter of the property predicates
 void setPropertyTaxonomy(jdsl.core.api.Tree propertyTaxonomy)
          Setter of the property propertyTaxonomy
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

predicates

public static java.util.ArrayList predicates
The list of predicates from which patterns are to be generated.

Constructor Detail

Bias

public Bias()
Method Detail

getPredicates

public static java.util.ArrayList getPredicates()
Getter of the property predicates

Returns:
Returns the predicates.

setPredicates

public void setPredicates(java.util.ArrayList predicates)
Setter of the property predicates

Parameters:
predicates - The predicates to set.

getClassTaxonomy

public jdsl.core.api.Tree getClassTaxonomy()
Getter of the property classTaxonomy

Returns:
Returns the classTaxonomy.

setClassTaxonomy

public void setClassTaxonomy(jdsl.core.api.Tree classTaxonomy)
Setter of the property classTaxonomy

Parameters:
classTaxonomy - The classTaxonomy to set.

getPropertyTaxonomy

public jdsl.core.api.Tree getPropertyTaxonomy()
Getter of the property propertyTaxonomy

Returns:
Returns the propertyTaxonomy.

setPropertyTaxonomy

public void setPropertyTaxonomy(jdsl.core.api.Tree propertyTaxonomy)
Setter of the property propertyTaxonomy

Parameters:
propertyTaxonomy - The propertyTaxonomy to set.

computeClassTaxonomy

public void computeClassTaxonomy(KnowledgeBase kb)
Computes taxonomy of class predicates given in declarative bias, wrt the classified KB A root of class taxonomy is owl:thing

Parameters:
kb - Knowledge base

computePropertyTaxonomy

public void computePropertyTaxonomy(KnowledgeBase kb)
Computes taxonomy of property predicates given in declarative bias A root of property taxonomy is a fake property simulating top property

Parameters:
kb - Knowledge base

buildTaxonomyRootedAtClass

public jdsl.core.api.Tree buildTaxonomyRootedAtClass(org.semanticweb.kaon2.api.owl.elements.OWLClass topClass,
                                                     java.util.ArrayList predicates,
                                                     KnowledgeBase kb,
                                                     jdsl.core.api.Tree taxonomy)
Creates a taxonomy of classes, from the list of predicates specified as input, that are rooted at the specified class according to classified knowledge base

Parameters:
topClass - Top class to be root of the taxonomy
predicates - List of predicates, from which classes are to be selected
kb - Knowledge base
Returns:
Taxonomy of classes, rooted at specified class, from those appearing in input predicate list

selectTopClassesFromList

public java.util.ArrayList selectTopClassesFromList(java.util.ArrayList predicates,
                                                    KnowledgeBase kb)
Retrieves all classes from the list of predicates, specified as input, that have no class subsuming it present at the list of predicates

Parameters:
predicates - List of predicates, from which only classes without any subsumer are to be selected
kb - Knowledge base
Returns:
List of classes without subsumers, from those appearing in input predicate list

selectTopPropertiesFromList

public java.util.ArrayList selectTopPropertiesFromList(java.util.ArrayList predicates,
                                                       KnowledgeBase kb)
Retrieves all properties from the list of predicates, specified as input, that have no super property (transitively) present at the list of predicates

Parameters:
predicates - List of predicates, from which only properties without any super property are to be selected
kb - Knowledge base
Returns:
List of properties without super properties, from those appearing in input predicate list

isSuperPropertyTransitively

public boolean isSuperPropertyTransitively(org.semanticweb.kaon2.api.owl.elements.ObjectProperty opSup,
                                           org.semanticweb.kaon2.api.owl.elements.ObjectProperty opSub,
                                           KnowledgeBase kb)
Parameters:
opSup - Object property to check for being super-property of opSub, by a chain of subObjectPropertyOf axioms
opSub - Object property to check for being sub-property of opSup, by a chain of subObjectPropertyOf axioms
kb - Knowledge base
Returns:
true If opSup is (transitively) super-property of opSub, false otherwise

determineTopKBClassesInList

public java.util.ArrayList determineTopKBClassesInList(java.util.ArrayList predicates,
                                                       KnowledgeBase kb)
Retrieves classes that are top classes in given KB from the list of predicates specified as input.

Parameters:
predicates - List of predicates, from which only top classes are to be selected
kb - Knowledge base
Returns:
List of top classes, from those appearing in input predicate list