Codota Logo
ONDEXConcept.getConceptAccession
Code IndexAdd Codota to your IDE (free)

How to use
getConceptAccession
method
in
net.sourceforge.ondex.core.ONDEXConcept

Best Java code snippets using net.sourceforge.ondex.core.ONDEXConcept.getConceptAccession (Showing top 14 results out of 315)

  • Common ways to obtain ONDEXConcept
private void myMethod () {
ONDEXConcept o =
  • Codota IconONDEXRelation r;r.getToConcept()
  • Codota IconONDEXRelation r;r.getFromConcept()
  • Codota IconONDEXGraph graph;graph.getConcept(id)
  • Smart code suggestions by Codota
}
origin: net.sourceforge.ondex.core/lucene

@Override
public ConceptAccession getConceptAccession(String accession,
    DataSource elementOf) throws NullValueException,
    EmptyStringException {
  return parent.getConceptAccession(accession, elementOf);
}
origin: net.sourceforge.ondex.apps/ovtk2

boolean ambiguous = concept.getConceptAccession(oldAccession, accession_dataSource).isAmbiguous();
concept.deleteConceptAccession(oldAccession, accession_dataSource);
concept.createConceptAccession(replacements.get(oldAccession), accession_dataSource, ambiguous);
origin: net.sourceforge.ondex.apps/ovtk2

boolean ambiguous = concept.getConceptAccession(oldAccession, accession_dataSource).isAmbiguous();
concept.deleteConceptAccession(oldAccession, accession_dataSource);
concept.createConceptAccession(replacements.get(oldAccession), accession_dataSource, ambiguous);
origin: net.sourceforge.ondex.modules/arabidopsis

if(acDomain.getConceptAccession(domId, interPro) == null) {
  if(domId.length() > 1 && !domId.equalsIgnoreCase("NULL")) {
    acDomain.createConceptAccession(domId, interPro,false);
origin: net.sourceforge.ondex.apps/ovtk2

concept.getConceptAccession((String) pair.getFirst(), dataSource).setAmbiguous(accessions.get(pair));
origin: net.sourceforge.ondex.modules/biobase

private void writeSynonym(String synonym, String conceptName,
    ONDEXConcept c) {
  String check = (String) ValidatorRegistry.validators.get("cvregex").validate(synonym);
  if (check != null) {
    DataSource dataSource = aog.getMetaData().getDataSource(check);
    if (dataSource == null) {
      if (!reportedMissingCVs.contains(check)) {
        ONDEXEventHandler.getEventHandlerForSID(aog.getSID()).fireEventOccurred(new DataSourceMissingEvent("DataSource missing => "
            + check, ""));
        reportedMissingCVs.add(check);
      }
    } else {
      if (c.getConceptAccession(synonym, dataSource) == null) {
        c.createConceptAccession(synonym.toUpperCase(), dataSource,
            false);
      }
    }
  } else {
    if (!synonym.equalsIgnoreCase(conceptName)) {
      c.createConceptName(synonym,false);
    }
  }
}
origin: net.sourceforge.ondex.modules/arabidopsis

    String ob = obIt.next();
    if (ac.getConceptAccession(ob, elementOf) == null) 
      ac.createConceptAccession(ob, elementOf, true);
  while (merIt.hasNext()) {
    String mer = merIt.next();
    if ((obsoletes == null ||!obsoletes.contains(mer)) || ac.getConceptAccession(mer, elementOf) == null ) {
      ac.createConceptAccession(mer, elementOf, true);
if (ac.getConceptAccession(pid, elementOf) == null) 
  ac.createConceptAccession(pid, elementOf, false);
if (loc > -1) {
  String fakelocus = pid.substring(0, loc);
  if (ac.getConceptAccession(fakelocus, elementOf) == null) 
    ac.createConceptAccession(fakelocus, elementOf, true);
origin: net.sourceforge.ondex.modules/arabidopsis

  while (obIt.hasNext()) {
    String ob = obIt.next();
    if (ac.getConceptAccession(ob, elementOf) == null) 
      ac.createConceptAccession(ob, elementOf, true);
  while (merIt.hasNext()) {
    String mer = merIt.next();
    if ((obsoletes == null || !obsoletes.contains(mer)) && ac.getConceptAccession(mer, elementOf) == null) {
      ac.createConceptAccession(mer, elementOf, true);
if ( ac.getConceptAccession(pid, elementOf) == null) 
  ac.createConceptAccession(pid, elementOf, false);
if ( ac.getConceptAccession(locus, elementOf) == null) 
  ac.createConceptAccession(locus, elementOf, true);
origin: net.sourceforge.ondex.apps/ovtk2

@Override
public Object getCellEditorValue() {
  // this is value returned by default editor
  String newAccession = super.getCellEditorValue().toString();
  if (acc == null) {
    // construct new CA with defaults
    if (newAccession.trim().length() > 0)
      acc = concept.createConceptAccession(newAccession, unknown, true);
  } else {
    // existing CA check accession update
    if (!newAccession.equals(acc.getAccession())) {
      // delete old one
      ConceptAccession old = concept.getConceptAccession(acc.getAccession(), acc.getElementOf());
      concept.deleteConceptAccession(acc.getAccession(), acc.getElementOf());
      // keep additional settings and create non empty accession
      if (newAccession.trim().length() > 0)
        acc = concept.createConceptAccession(newAccession, old.getElementOf(), old.isAmbiguous());
      else
        // clear existing concept accession from table
        acc = null;
    }
  }
  // return concept accession instead of string
  return acc;
}
origin: net.sourceforge.ondex.modules/cyc-pathwaydbs

/**
 * A unification reference is a non-ambiguous accession.
 * 
 * @param c
 *            ONDEXConcept with unification reference
 * @param uni
 *            unificationXref used
 */
private void addUnificationXref(ONDEXConcept c, unificationXref uni)
    throws Exception {
  // sanity checks
  if (uni.getID() == null || uni.getID().isEmpty()) {
    System.err.println(uni.getRDFId() + " is empty unificationXref.");
    return;
  }
  // get current data source
  DataSource elementOf = findDataSource(uni.getDB());
  
  if(elementOf.getId().equalsIgnoreCase("unknown")){
    System.err.println("DataSource is UNKNOWN");
    
  }
  
  
  if ((DEBUG || c.getConceptAccession(uni.getID(), elementOf) == null) && !(elementOf.getId().equalsIgnoreCase("unknown"))){
      c.createConceptAccession(uni.getID(), elementOf, false);
  }    
}
origin: net.sourceforge.ondex.modules/cyc-pathwaydbs

/**
 * Any other relationships with entry of other data sources, marked as
 * ambiguous.
 * 
 * @param c
 *            ONDEXConcept with relationship reference
 * @param rel
 *            relationshipXref used
 */
private void addRelationshipXref(ONDEXConcept c, relationshipXref rel)
    throws Exception {
  // sanity checks
  if (rel.getID() == null || rel.getID().isEmpty()) {
    System.err.println(rel.getRDFId() + " is empty relationshipXref.");
    return;
  }
  DataSource elementOf = findDataSource(rel.getDB());
  if ((DEBUG || c.getConceptAccession(rel.getID(), elementOf) == null) && !(elementOf.getId().equalsIgnoreCase("unknown"))){
    c.createConceptAccession(rel.getID(), elementOf, false);
  }    
}
  // get current data source
origin: net.sourceforge.ondex.apps/ovtk2

  @Override
  public void actionPerformed(ActionEvent e) {
    this.setVisible(false);
    editor.acc.setAmbiguous(box.isSelected());

    // has the DataSource of accession changed?
    DataSource dataSource = (DataSource) selection.getSelectedItem();
    if (!editor.acc.getElementOf().equals(dataSource)) {
      // delete old one
      ConceptAccession old = editor.concept.getConceptAccession(editor.acc.getAccession(), editor.acc.getElementOf());
      editor.concept.deleteConceptAccession(editor.acc.getAccession(), editor.acc.getElementOf());
      // create one with new DataSource
      editor.acc = editor.concept.createConceptAccession(old.getAccession(), dataSource, old.isAmbiguous());
    }
  }
}
origin: net.sourceforge.ondex.core/tools

/**
 * Creates an accession on concept only if it does not already exists
 * 
 * @param target
 *            - relation
 * @param newAcc
 *            - attribute to create
 * @throws AccessDeniedException
 * @throws EmptyStringException
 * @throws NullValueException
 */
public static void addNewAccession(ONDEXConcept target,
    ConceptAccession newAcc) throws NullValueException,
    EmptyStringException, AccessDeniedException {
  if (target.getConceptAccession(newAcc.getAccession(),
      newAcc.getElementOf()) == null)
    target.createConceptAccession(newAcc.getAccession(),
        newAcc.getElementOf(), true);
}
origin: net.sourceforge.ondex.modules/generic

  && c.getConceptAccession(name, ds) == null) {
c.createConceptAccession(name, ds, false);
net.sourceforge.ondex.coreONDEXConceptgetConceptAccession

Javadoc

Returns a ConceptAccession or null if unsuccessful for a given accession and DataSource or null if unsuccessful.

Popular methods of ONDEXConcept

  • getId
  • createAttribute
  • createConceptAccession
    Creates a new ConceptAccession with the given accession, the information which DataSource it belongs
  • createConceptName
    Creates a new ConceptName with the given name and the information if this name is preferred. Then ad
  • getOfType
  • getConceptAccessions
  • getElementOf
    Returns the DataSource, which this AbstractConcept belongs to.
  • getPID
    Returns the parser id of this instance of AbstractConcept.
  • getConceptNames
    Returns all ConceptNames contained in the list of ConceptNames.
  • getAttribute
  • getConceptName
    Returns a ConceptName or null if unsuccessful for a given name or null if unsuccessful.
  • getAnnotation
    Returns the annotation of this instance of AbstractConcept.
  • getConceptName,
  • getAnnotation,
  • addTag,
  • getDescription,
  • getAttributes,
  • getTags,
  • getEvidence,
  • setAnnotation,
  • setDescription

Popular in Java

  • Creating JSON documents from java classes using gson
  • findViewById (Activity)
  • startActivity (Activity)
  • addToBackStack (FragmentTransaction)
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Table (org.hibernate.mapping)
    A relational table
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
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