Tabnine Logo
OntologyTerm.getName
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: uk.ac.ebi.intact.dataexchange.psimi/intact-solr-core

protected void enrichOrganism(String fieldName, String facetField, SolrInputDocument solrDocument, OntologyTerm ontologyTerm) {
  // name
  solrDocument.addField ( fieldName, ontologyTerm.getName( ) ) ;
  // synonyms
  for ( OntologyTerm synonym : ontologyTerm.getSynonyms ( ) ) {
    solrDocument.addField ( fieldName, synonym.getName() ) ;
  }
  // taxid
  solrDocument.addField ( fieldName, ontologyTerm.getId() ) ;
  // facet field
  if (facetField != null){
    solrDocument.addField(facetField, ontologyTerm.getName());
  }
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-solr

private Field convertTermToField(String type, OntologyTerm term) {
  return new Field( type, term.getId(), term.getName() );
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-solr-core

private Field convertTermToField(String type, OntologyTerm term) {
  Field field = new DefaultField( );
  field.set(CalimochoKeys.DB, type);
  field.set(CalimochoKeys.VALUE, term.getId());
  field.set(CalimochoKeys.TEXT, term.getName());
  return field;
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-solr-core

public void enrich(Field field) throws SolrServerException {
  String db = field.get(CalimochoKeys.DB);
  if (fieldEnricher.isExpandableOntology(db)) {
    String id = field.get(CalimochoKeys.VALUE);
    OntologyTerm ontologyTerm = fieldEnricher.findOntologyTerm(id, null);
    field.set(CalimochoKeys.TEXT, ontologyTerm.getName());
  }
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-solr

public void enrich(CrossReference xref) throws SolrServerException {
  if (fieldEnricher.isExpandableOntology(xref.getDatabase())) {
    String id = xref.getIdentifier();
    OntologyTerm ontologyTerm = fieldEnricher.findOntologyTerm(id, null);
    xref.setText(ontologyTerm.getName());
  }
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-solr-core

public void enrich(CrossReference xref) throws SolrServerException {
  if (fieldEnricher.isExpandableOntology(xref.getDatabase())) {
    String id = xref.getIdentifier();
    OntologyTerm ontologyTerm = fieldEnricher.findOntologyTerm(id, null);
    xref.setText(ontologyTerm.getName());
  }
}
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-solr-core

solrDocument.addField ( xrefFieldExact, ontologyTerm_aux.getName ( ) ) ;
solrDocument.addField ( xrefFieldName, ontologyTerm_aux.getName ( ) ) ;
for ( OntologyTerm synonym : ontologyTerm_aux.getSynonyms ( ) ) {
  solrDocument.addField ( xrefFieldExact, synonym.getName ( ) ) ;
  solrDocument.addField ( xrefFieldName, synonym.getName ( ) ) ;
  solrDocument.addField ( xrefFieldName, parent.getName ( ) ) ;
  for ( OntologyTerm synonym : parent.getSynonyms ( ) ) {
    solrDocument.addField ( xrefFieldName, synonym.getName ( ) ) ;
origin: uk.ac.ebi.intact.dataexchange.psimi/intact-solr-core

public void enrichOrganism(Interaction interaction, SolrInputDocument solrDocument) throws SolrServerException {
  // retrieve the ontology term for this interaction (using BioSource)
  final OntologyTerm ontologyTerm = findOrganism(interaction) ;
  // add name, all synonyms and tax id to complex_organism
  if ( ontologyTerm != null ) {
    // enrich exact organism
    enrichOrganism(ComplexFieldNames.COMPLEX_ORGANISM_EXACT, null, solrDocument, ontologyTerm);
    // enrich organism for query
    enrichOrganism(ComplexFieldNames.COMPLEX_ORGANISM, ComplexFieldNames.COMPLEX_ORGANISM_F, solrDocument, ontologyTerm);
    // sort field
    solrDocument.addField(ComplexFieldNames.COMPLEX_ORGANISM_SORT, ontologyTerm.getId());
    // stored field to retrieve from the index
    solrDocument.addField(ComplexFieldNames.ORGANISM_NAME, ontologyTerm.getName()+"; "+ontologyTerm.getId());
    // add parents to complex_organism_ontology
    for ( OntologyTerm parent : ontologyTerm.getAllParentsToRoot ( true ) ) {
      enrichOrganism(ComplexFieldNames.COMPLEX_ORGANISM, null, solrDocument, parent);
    }
  }
}
uk.ac.ebi.intact.bridges.ontologies.termOntologyTermgetName

Javadoc

Name of the term.

Popular methods of OntologyTerm

  • getChildren
    Children of the term.
  • getParents
    Parents 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.

Popular in Java

  • Reading from database using SQL prepared statement
  • startActivity (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • notifyDataSetChanged (ArrayAdapter)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ImageIO (javax.imageio)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now