owltools.gaf.inference
Class CompositionalClassPredictor
java.lang.Object
owltools.gaf.inference.AbstractAnnotationPredictor
owltools.gaf.inference.CompositionalClassPredictor
- All Implemented Interfaces:
- AnnotationPredictor
public class CompositionalClassPredictor
- extends AbstractAnnotationPredictor
- implements AnnotationPredictor
Given an annotation to classes c1, c2, ..., cn, we
generate suggestions of annotations to class D if
D EquivalentTo d1 and d2 and dm
and forall d in d1..dm,
there exists a class c in c1...cn such that:
Path(c,d)
OR
d = r some e, and Path(c,e)
(i.e. we ignore the relation in the differentia)
note the list c1..cn is drawn from direct annotations,
AND the set of classes that are the subject of relations in c16.
here Path means there is some positive path
(TODO: include has_part?)
TODO: reimplement using OWL semantics and reasoning
- Author:
- cjm
Field Summary |
protected static org.apache.log4j.Logger |
LOG
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected static org.apache.log4j.Logger LOG
CompositionalClassPredictor
public CompositionalClassPredictor(GafDocument gafDocument,
OWLGraphWrapper graph)
getOWLClass
protected org.semanticweb.owlapi.model.OWLClass getOWLClass(String id)
predict
public Set<Prediction> predict(String bioentity)
- Specified by:
predict
in interface AnnotationPredictor
getPrediction
protected Prediction getPrediction(org.semanticweb.owlapi.model.OWLClass c,
String bioentity,
String with)
Copyright © 2010-2011. All Rights Reserved.