Class AbstractMIOntologyAccess

    • Field Detail

      • log

        public static final org.apache.commons.logging.Log log
        Constant log
    • Constructor Detail

      • AbstractMIOntologyAccess

        public AbstractMIOntologyAccess()
                                 throws psidev.psi.tools.ontology_manager.impl.local.OntologyLoaderException

        Constructor for AbstractMIOntologyAccess.

        Throws:
        psidev.psi.tools.ontology_manager.impl.local.OntologyLoaderException - if any.
      • AbstractMIOntologyAccess

        public AbstractMIOntologyAccess​(OntologyTermFetcher termBuilder)
                                 throws psidev.psi.tools.ontology_manager.impl.local.OntologyLoaderException

        Constructor for AbstractMIOntologyAccess.

        Parameters:
        termBuilder - a OntologyTermFetcher object.
        Throws:
        psidev.psi.tools.ontology_manager.impl.local.OntologyLoaderException - if any.
      • AbstractMIOntologyAccess

        public AbstractMIOntologyAccess​(String dbName,
                                        String dbIdentifier,
                                        Pattern dbRegexp,
                                        String parent)
                                 throws psidev.psi.tools.ontology_manager.impl.local.OntologyLoaderException

        Constructor for AbstractMIOntologyAccess.

        Parameters:
        dbName - a String object.
        dbIdentifier - a String object.
        dbRegexp - a Pattern object.
        parent - a String object.
        Throws:
        psidev.psi.tools.ontology_manager.impl.local.OntologyLoaderException - if any.
      • AbstractMIOntologyAccess

        public AbstractMIOntologyAccess​(OntologyTermFetcher termBuilder,
                                        String dbName,
                                        String dbIdentifier,
                                        Pattern dbRegexp,
                                        String parent)
                                 throws psidev.psi.tools.ontology_manager.impl.local.OntologyLoaderException

        Constructor for AbstractMIOntologyAccess.

        Parameters:
        termBuilder - a OntologyTermFetcher object.
        dbName - a String object.
        dbIdentifier - a String object.
        dbRegexp - a Pattern object.
        parent - a String object.
        Throws:
        psidev.psi.tools.ontology_manager.impl.local.OntologyLoaderException - if any.
    • Method Detail

      • loadOntology

        public abstract void loadOntology​(String ontologyID,
                                          String name,
                                          String version,
                                          String format,
                                          URI uri)
                                   throws psidev.psi.tools.ontology_manager.impl.local.OntologyLoaderException
        Specified by:
        loadOntology in interface psidev.psi.tools.ontology_manager.interfaces.OntologyAccessTemplate<MIOntologyTermI>
        Throws:
        psidev.psi.tools.ontology_manager.impl.local.OntologyLoaderException
      • setOntologyDirectory

        public void setOntologyDirectory​(File directory)
        Specified by:
        setOntologyDirectory in interface psidev.psi.tools.ontology_manager.interfaces.OntologyAccessTemplate<MIOntologyTermI>
      • getValidTerms

        public Set<MIOntologyTermI> getValidTerms​(String accession,
                                                  boolean allowChildren,
                                                  boolean useTerm)
        Method that is used by the validator to determine a Set of Ontology terms that are valid terms for a particular rule. E.g. according to the flags, this can be the term corresponding to the provided accession or its children or both.
        Specified by:
        getValidTerms in interface psidev.psi.tools.ontology_manager.interfaces.OntologyAccessTemplate<MIOntologyTermI>
      • getTermForAccession

        public MIOntologyTermI getTermForAccession​(String accession)
        Specified by:
        getTermForAccession in interface psidev.psi.tools.ontology_manager.interfaces.OntologyAccessTemplate<MIOntologyTermI>
      • isObsolete

        public boolean isObsolete​(MIOntologyTermI term)

        isObsolete.

        Specified by:
        isObsolete in interface psidev.psi.tools.ontology_manager.interfaces.OntologyAccessTemplate<MIOntologyTermI>
        Parameters:
        term - a MIOntologyTermI object.
        Returns:
        a boolean.
      • isOntologyUpToDate

        public abstract boolean isOntologyUpToDate()
                                            throws psidev.psi.tools.ontology_manager.impl.local.OntologyLoaderException

        isOntologyUpToDate.

        Specified by:
        isOntologyUpToDate in interface psidev.psi.tools.ontology_manager.interfaces.OntologyAccessTemplate<MIOntologyTermI>
        Returns:
        a boolean.
        Throws:
        psidev.psi.tools.ontology_manager.impl.local.OntologyLoaderException - if any.
      • isUseTermSynonyms

        public boolean isUseTermSynonyms()

        isUseTermSynonyms.

        Specified by:
        isUseTermSynonyms in interface psidev.psi.tools.ontology_manager.interfaces.OntologyAccessTemplate<MIOntologyTermI>
        Returns:
        a boolean.
      • setUseTermSynonyms

        public void setUseTermSynonyms​(boolean useTermSynonyms)
        Specified by:
        setUseTermSynonyms in interface psidev.psi.tools.ontology_manager.interfaces.OntologyAccessTemplate<MIOntologyTermI>
      • setOntologyID

        protected void setOntologyID​(String ontologyID)

        Setter for the field ontologyID.

        Parameters:
        ontologyID - a String object.