owltools.gaf.eco
Class EcoMapperImpl

java.lang.Object
  extended by owltools.gaf.eco.EcoMapperImpl
All Implemented Interfaces:
EcoMapper
Direct Known Subclasses:
TraversingEcoMapperImpl

public class EcoMapperImpl
extends Object
implements EcoMapper


Field Summary
 
Fields inherited from interface owltools.gaf.eco.EcoMapper
ECO_MAPPING_PURL, ECO_PURL, ECO_PURL_IRI
 
Method Summary
 Set<org.semanticweb.owlapi.model.OWLClass> getAllEcoClassesForCode(String code)
          Retrieve the ECO classes for the given GO evidence code.
 Map<org.semanticweb.owlapi.model.OWLClass,String> getCodesForEcoClasses()
          Retrieve the mapping from ECO classes to GO evidence codes.
 org.semanticweb.owlapi.model.OWLClass getEcoClassForCode(String code)
          Retrieve the equivalent ECO class for the given GO evidence code.
 org.semanticweb.owlapi.model.OWLClass getEcoClassForCode(String code, String refCode)
          Retrieve the ECO class for the given GO evidence code and reference.
 boolean isGoEvidenceCode(String code)
          Check that the given GO code is a valid code with an existing mapping to ECO
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getEcoClassForCode

public org.semanticweb.owlapi.model.OWLClass getEcoClassForCode(String code)
Description copied from interface: EcoMapper
Retrieve the equivalent ECO class for the given GO evidence code. Assume, that the reference is 'default'.

Specified by:
getEcoClassForCode in interface EcoMapper
Returns:
OWLClass or null

getAllEcoClassesForCode

public Set<org.semanticweb.owlapi.model.OWLClass> getAllEcoClassesForCode(String code)
Description copied from interface: EcoMapper
Retrieve the ECO classes for the given GO evidence code. Include the classes to be used with more specific references.

Specified by:
getAllEcoClassesForCode in interface EcoMapper
Returns:
set of classes, never null

getEcoClassForCode

public org.semanticweb.owlapi.model.OWLClass getEcoClassForCode(String code,
                                                                String refCode)
Description copied from interface: EcoMapper
Retrieve the ECO class for the given GO evidence code and reference. If reference is null, assume default.

Specified by:
getEcoClassForCode in interface EcoMapper
Returns:
OWLClass or null

isGoEvidenceCode

public boolean isGoEvidenceCode(String code)
Description copied from interface: EcoMapper
Check that the given GO code is a valid code with an existing mapping to ECO

Specified by:
isGoEvidenceCode in interface EcoMapper
Returns:
true if the code is a valid

getCodesForEcoClasses

public Map<org.semanticweb.owlapi.model.OWLClass,String> getCodesForEcoClasses()
Description copied from interface: EcoMapper
Retrieve the mapping from ECO classes to GO evidence codes.

Specified by:
getCodesForEcoClasses in interface EcoMapper
Returns:
mapping


Copyright © 2010-2014. All Rights Reserved.