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

How to use
indexOntology
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.indexOntology (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

public void indexOntology(OntologyIterator ontologyIterator) throws IntactSolrException {
  if (ontologySolrServer == null) {
    throw new IllegalStateException("To index an ontology, an ontology SolrServer must be passed to the constructor");
  }
  OntologyIndexer ontologyIndexer = new OntologyIndexer(ontologySolrServer);
  ontologyIndexer.indexOntology(ontologyIterator);
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-solr-core

public void indexOntology(OntologyIterator ontologyIterator) throws IntactSolrException {
  if (ontologySolrServer == null) {
    throw new IllegalStateException("To index an ontology, an ontology SolrServer must be passed to the constructor");
  }
  OntologyIndexer ontologyIndexer = new OntologyIndexer(ontologySolrServer);
  ontologyIndexer.indexOntology(ontologyIterator);
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-solr

public void indexOntology(OntologyIterator ontologyIterator) {
  indexOntology(ontologyIterator, new DefaultDocumentFilter());
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-solr-core

public void indexOntology(OntologyIterator ontologyIterator) {
  indexOntology(ontologyIterator, new DefaultDocumentFilter());
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-solr-core

public void indexObo(String ontologyName, URL oboUrl, DocumentFilter documentFilter) throws IntactSolrException {
  OntologyIterator oboIterator;
  if ( log.isInfoEnabled() ) log.info( "Starting to index " + ontologyName + " from " + oboUrl );
  try {
    oboIterator = new OboOntologyIterator(ontologyName, oboUrl);
  } catch (Throwable e) {
    throw new IntactSolrException("Problem creating OBO iterator for: "+ontologyName+" URL: "+oboUrl, e);
  }
  indexOntology(oboIterator, documentFilter);
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-solr

public void indexObo(String ontologyName, URL oboUrl, DocumentFilter documentFilter) throws IntactSolrException {
  OntologyIterator oboIterator;
  if ( log.isInfoEnabled() ) log.info( "Starting to index " + ontologyName + " from " + oboUrl );
  try {
    oboIterator = new OboOntologyIterator(ontologyName, oboUrl);
  } catch (Throwable e) {
    throw new IntactSolrException("Problem creating OBO iterator for: "+ontologyName+" URL: "+oboUrl, e);
  }
  indexOntology(oboIterator, documentFilter);
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-solr-core

public void indexUniprotTaxonomy() throws IntactSolrException {
  OntologyIterator ontologyIterator;
  try {
    if ( log.isInfoEnabled() ) log.info( "Starting to index uniprot taxonomy" );
    ontologyIterator = new UniprotTaxonomyOntologyIterator();
  } catch (Throwable e) {
    throw new IntactSolrException("Problem creating default Uniprot taxonomy iterator", e);
  }
  indexOntology(ontologyIterator);
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-solr

public void indexUniprotTaxonomy() throws IntactSolrException {
  OntologyIterator ontologyIterator;
  try {
    if ( log.isInfoEnabled() ) log.info( "Starting to index uniprot taxonomy" );
    ontologyIterator = new UniprotTaxonomyOntologyIterator();
  } catch (Throwable e) {
    throw new IntactSolrException("Problem creating default Uniprot taxonomy iterator", e);
  }
  indexOntology(ontologyIterator);
}
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.ontologyOntologyIndexerindexOntology

Popular methods of OntologyIndexer

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

Popular in Java

  • Making http requests using okhttp
  • startActivity (Activity)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
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