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

How to use
indexObo
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.indexObo (Showing top 9 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.psimi/intact-solr-core

public void indexOntologies(OntologyMapping[] ontologyMappings) throws IntactSolrException {
  if (ontologySolrServer == null) {
    throw new IllegalStateException("To index an ontology, an ontology SolrServer must be passed to the constructor");
  }
  
  if (log.isInfoEnabled()) log.info("Indexing ontologies: "+ Arrays.asList(ontologyMappings));
  
  OntologyIndexer ontologyIndexer = new OntologyIndexer(ontologySolrServer);
  ontologyIndexer.indexObo(ontologyMappings);
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-solr

public void indexOntologies(OntologyMapping[] ontologyMappings) throws IntactSolrException {
  if (ontologySolrServer == null) {
    throw new IllegalStateException("To index an ontology, an ontology SolrServer must be passed to the constructor");
  }
  
  if (log.isInfoEnabled()) log.info("Indexing ontologies: "+ Arrays.asList(ontologyMappings));
  
  OntologyIndexer ontologyIndexer = new OntologyIndexer(ontologySolrServer);
  ontologyIndexer.indexObo(ontologyMappings);
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-solr-core

public void indexObo(String ontologyName, URL oboUrl) throws IntactSolrException {
  indexObo(ontologyName, oboUrl, new DefaultDocumentFilter());
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-solr

public void indexObo(OntologyMapping[] ontologyMappings) throws IntactSolrException {
  indexObo(ontologyMappings, new DefaultDocumentFilter());
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-solr

public void indexObo(String ontologyName, URL oboUrl) throws IntactSolrException {
  indexObo(ontologyName, oboUrl, new DefaultDocumentFilter());
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-solr-core

public void indexObo(OntologyMapping[] ontologyMappings) throws IntactSolrException {
  indexObo(ontologyMappings, new DefaultDocumentFilter());
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-solr

public void indexObo(OntologyMapping[] ontologyMappings, DocumentFilter documentFilter) throws IntactSolrException {
  for (OntologyMapping om : ontologyMappings) {
    indexObo(om.getName(), om.getUrl(), documentFilter);
  }
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-solr-core

public void indexObo(OntologyMapping[] ontologyMappings, DocumentFilter documentFilter) throws IntactSolrException {
  for (OntologyMapping om : ontologyMappings) {
    indexObo(om.getName(), om.getUrl(), documentFilter);
  }
}
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.ontologyOntologyIndexerindexObo

Popular methods of OntologyIndexer

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

Popular in Java

  • Reactive rest calls using spring rest template
  • notifyDataSetChanged (ArrayAdapter)
  • startActivity (Activity)
  • findViewById (Activity)
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • JComboBox (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
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