jcolibri.method.retrieve.FilterBasedRetrieval.predicates
Class OntologyCompatible

java.lang.Object
  extended by jcolibri.method.retrieve.FilterBasedRetrieval.predicates.OntologyCompatible
All Implemented Interfaces:
FilterPredicate

public class OntologyCompatible
extends java.lang.Object
implements FilterPredicate

Predicate that compares if two objects (that must be Instance typed) are compatible. Compatible means that the Least-Common-Subsumer of the query and the case instances is the direct parent of the query. Informally, it means that que case is "under" the query in the ontology tree. Only applicable to Instances.

Version:
1.0
Author:
Juan A. Recio-Garcia, Developed at University College Cork (Ireland) in collaboration with Derek Bridge.
See Also:
FilterBasedRetrievalMethod, FilterConfig

Constructor Summary
OntologyCompatible()
           
 
Method Summary
 boolean compute(java.lang.Object caseObject, java.lang.Object queryObject)
          Computes the predicate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OntologyCompatible

public OntologyCompatible()
Method Detail

compute

public boolean compute(java.lang.Object caseObject,
                       java.lang.Object queryObject)
                throws NoApplicableFilterPredicateException
Description copied from interface: FilterPredicate
Computes the predicate

Specified by:
compute in interface FilterPredicate
Parameters:
caseObject - is the object of the case being compared
queryObject - is the object of the query being compared
Returns:
the result of the comparation
Throws:
NoApplicableFilterPredicateException - if the predicate cannot be applied to those objects.

GAIA - Group for Artificial Intelligence Applications
http://gaia.fdi.ucm.es