Codota Logo
OntologyIndexer.indexUniprotTaxonomy
Code IndexAdd Codota to your IDE (free)

How to use
indexUniprotTaxonomy
method
in
uk.ac.ebi.intact.dataexchange.psimi.solr.ontology.OntologyIndexer

Best Java code snippets using uk.ac.ebi.intact.dataexchange.psimi.solr.ontology.OntologyIndexer.indexUniprotTaxonomy (Showing top 1 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: uk.ac.ebi.intact.dataexchange/intact-tasks

public RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext) throws Exception {
  if (ontologiesSolrUrl == null) {
    throw new NullPointerException("ontologiesSolrUrl is null");
  }
  HttpSolrServer ontologiesSolrServer = createSolrServer();
  OntologyIndexer ontologyIndexer = new OntologyIndexer(ontologiesSolrServer);
  if (taxonomyOntologyMappings != null) {
    indexUniprotTaxonomy = true;
  }
  if (indexUniprotTaxonomy) {
    if (taxonomyOntologyMappings == null) {
      ontologyIndexer.indexUniprotTaxonomy();
    } else {
      for (OntologyMapping om : taxonomyOntologyMappings) {
        ontologyIndexer.indexOntology(new UniprotTaxonomyOntologyIterator(om.getUrl()));
      }
    }
  }
  ontologyIndexer.indexObo(oboOntologyMappings.toArray(new OntologyMapping[oboOntologyMappings.size()]));
  long count = countDocs(ontologiesSolrServer);
  contribution.getExitStatus().addExitDescription("Total docs in index: "+count);
  ontologiesSolrServer.shutdown();
  return RepeatStatus.FINISHED;
}
uk.ac.ebi.intact.dataexchange.psimi.solr.ontologyOntologyIndexerindexUniprotTaxonomy

Popular methods of OntologyIndexer

  • <init>
  • indexObo
  • indexOntology
  • addField
  • commitSolr
  • createSolrInputDocument
  • index

Popular in Java

  • Making http requests using okhttp
  • getApplicationContext (Context)
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • JComboBox (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
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