Codota Logo
OntologyTerm.getParents
Code IndexAdd Codota to your IDE (free)

How to use
getParents
method
in
uk.ac.ebi.intact.bridges.ontologies.term.OntologyTerm

Best Java code snippets using uk.ac.ebi.intact.bridges.ontologies.term.OntologyTerm.getParents (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: uk.ac.ebi.intact.bridges/intact-ontologies

protected Set<OntologyTerm> getAllParentsToRoot(OntologyTerm ontologyTerm, boolean includeSynonyms) {
  Set<OntologyTerm> parents = new HashSet<OntologyTerm>();
  for (OntologyTerm parent : ontologyTerm.getParents()) {
    parents.add(parent);
    if (includeSynonyms) {
      Set<OntologyTerm> synonyms = parent.getSynonyms();
      parents.addAll(synonyms);
    }
    
    parents.addAll(getAllParentsToRoot(parent, includeSynonyms));
  }
  return parents;
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-solr-core

protected Set<OntologyTerm> getAllParentsToRoot(OntologyTerm ontologyTerm, boolean includeSynonyms) {
  Set<OntologyTerm> parents = new HashSet<OntologyTerm>();
  for (OntologyTerm parent : ontologyTerm.getParents()) {
    parents.add(parent);
    if (includeSynonyms) {
      Set<OntologyTerm> synonyms = parent.getSynonyms();
      parents.addAll(synonyms);
    }
    parents.addAll(getAllParentsToRoot(parent, includeSynonyms));
  }
  return parents;
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-solr

protected Set<OntologyTerm> getAllParentsToRoot(OntologyTerm ontologyTerm, boolean includeSynonyms) {
  Set<OntologyTerm> parents = new HashSet<OntologyTerm>();
  for (OntologyTerm parent : ontologyTerm.getParents()) {
    parents.add(parent);
    if (includeSynonyms) {
      Set<OntologyTerm> synonyms = parent.getSynonyms();
      parents.addAll(synonyms);
    }
    parents.addAll(getAllParentsToRoot(parent, includeSynonyms));
  }
  return parents;
}
uk.ac.ebi.intact.bridges.ontologies.termOntologyTermgetParents

Javadoc

Parents of the term.

Popular methods of OntologyTerm

  • getChildren
    Children of the term.
  • getSynonyms
    Gets the synonyms for this ontology term.
  • getAllParentsToRoot
    Gets a set that contains all the parent terms until the root is reached. The root is included.
  • getId
    Id of the term.
  • getName
    Name of the term.

Popular in Java

  • Updating database using SQL prepared statement
  • getSharedPreferences (Context)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • orElseThrow (Optional)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now