Codota Logo
OntologyTerm.getId
Code IndexAdd Codota to your IDE (free)

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

Best Java code snippets using uk.ac.ebi.intact.bridges.ontologies.term.OntologyTerm.getId (Showing top 6 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

private List<Field> convertTermsToFieldsIncludingSynonyms(String type, Set<OntologyTerm> terms) {
  List<Field> fields = new ArrayList<Field>();
  if (terms != null) {
    for ( OntologyTerm term : terms ) {
      if (!getOntologyTermsToIgnore().contains(term.getId())){
        Collection<Field> fieldsWithSynonyms = convertTermToFieldIncludingSynonyms(type, term);
        fields.addAll( fieldsWithSynonyms );
      }
    }
  }
  return fields;
}
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 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);
    }
  }
}
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-core

solrDocument.addField ( xrefFieldName, parent.getId() ) ;
solrDocument.addField ( xrefFieldName, parent.getName ( ) ) ;
for ( OntologyTerm synonym : parent.getSynonyms ( ) ) {
uk.ac.ebi.intact.bridges.ontologies.termOntologyTermgetId

Javadoc

Id 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.
  • getName
    Name of the term.

Popular in Java

  • Reading from database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • startActivity (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • JFrame (javax.swing)
  • JLabel (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
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