Codota Logo
OntologyTerm.getName
Code IndexAdd Codota 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)

  • 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.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

  • Start an intent from android
  • setScale (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • findViewById (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JFrame (javax.swing)
  • Runner (org.openjdk.jmh.runner)
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