Tabnine Logo
ONDEXConcept.getAnnotation
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: net.sourceforge.ondex.core/lucene

@Override
public String getAnnotation() {
  return parent.getAnnotation();
}
origin: net.sourceforge.ondex.modules/tab-tools

public String getValue(ONDEXEntity cOrr) throws InvalidOndexEntityException {
  if(AbstractConcept.class.isAssignableFrom(cOrr.getClass())){
    return ((ONDEXConcept)cOrr).getAnnotation();
  }
  throw new InvalidOndexEntityException(cOrr.getClass()+": is not an Ondex class for which annotation is known");
}
origin: net.sourceforge.ondex.apps/ovtk2-experimental

public String assembleLine(ONDEXConcept c1, Set<ONDEXConcept> additional,
    ONDEXConcept c2, RelationType rt, Set<ONDEXConcept> other) {
  StringBuffer buf = new StringBuffer();
  buf.append(c1.getPID());
  buf.append("\t");
  buf.append(additional);
  buf.append("\t");
  if (c1.getAnnotation().contains("irreversible")) {
    buf.append("irreversible");
  } else if (c1.getAnnotation().contains("reversible")) {
    buf.append("reversible");
  } else {
    buf.append("unknown");
  }
  buf.append("\t");
  buf.append(c2.getPID());
  buf.append("\t");
  buf.append(rt.getId());
  buf.append("\t");
  buf.append(other);
  buf.append("\n");
  return buf.toString();
}
origin: net.sourceforge.ondex.apps/ovtk2-experimental

public String getName(ONDEXConcept ac) {
  String label = "";
  // get first preferred name as label
  for (ConceptName cn : ac.getConceptNames()) {
    if (cn.isPreferred()) {
      label = cn.getName();
      break;
    }
  }
  // next try annotation
  if (label == null || label.trim().length() == 0) {
    label = ac.getAnnotation();
  }
  // next try description
  if (label == null || label.trim().length() == 0) {
    label = ac.getDescription();
  }
  // next try pid
  if (label == null || label.trim().length() == 0) {
    label = ac.getPID();
  }
  // last resort to concept id
  if (label == null || label.trim().length() == 0) {
    label = String.valueOf(ac.getId());
  }
  return label;
}
origin: net.sourceforge.ondex.apps/ovtk2-poplar

else if (c.getAnnotation().length() > 0)
  name = c.getAnnotation().trim();
else if (c.getDescription().length() > 0)
  name = c.getDescription().trim();
origin: net.sourceforge.ondex.apps/ovtk2

else if (c.getAnnotation().length() > 0)
  name = c.getAnnotation().trim();
else if (c.getDescription().length() > 0)
  name = c.getDescription().trim();
origin: net.sourceforge.ondex.modules/prolog

for (ONDEXConcept c : concepts.get(key)) {
  String anno = "";
  if (c.getAnnotation() != null)
    anno = c.getAnnotation();
  String desc = "";
  if (c.getDescription() != null)
origin: net.sourceforge.ondex.modules/generic

defaultName = concept.getAnnotation();
origin: net.sourceforge.ondex.modules/sbml

else if (concept.getAnnotation() != null)
  name = concept.getAnnotation();
else if (concept.getDescription() != null)
  name = concept.getDescription();
origin: net.sourceforge.ondex.apps/ovtk2

/**
 * Clone concept with having a new DataSource.
 * 
 * @param oldC
 *            old ONDEXConcept
 * @param newDataSource
 *            new DataSource to use
 * @return new ONDEXConcept
 */
public ONDEXConcept clone(ONDEXConcept oldC, DataSource newDataSource) {
  // first clone concept with new DataSource
  ONDEXConcept newC = graph.createConcept(oldC.getPID(), oldC.getAnnotation(), oldC.getDescription(), newDataSource, oldC.getOfType(), oldC.getEvidence());
  // copies everything else
  copyEverythingElse(oldC, newC);
  return newC;
}
origin: net.sourceforge.ondex.apps/ovtk2

/**
 * Clone concept with having a new PID.
 * 
 * @param oldC
 *            old ONDEXConcept
 * @param newPID
 *            new PID to use
 * @return new ONDEXConcept
 */
public ONDEXConcept clone(ONDEXConcept oldC, String newPID) {
  // first clone concept with new PID
  ONDEXConcept newC = graph.createConcept(newPID, oldC.getAnnotation(), oldC.getDescription(), oldC.getElementOf(), oldC.getOfType(), oldC.getEvidence());
  // copies everything else
  copyEverythingElse(oldC, newC);
  return newC;
}
origin: net.sourceforge.ondex.apps/ovtk2

/**
 * Clone concept with having a new ConceptClass.
 * 
 * @param oldC
 *            old ONDEXConcept
 * @param newCC
 *            new ConceptClass to use
 * @return new ONDEXConcept
 */
public ONDEXConcept clone(ONDEXConcept oldC, ConceptClass newCC) {
  // first clone concept with new ConceptClass
  ONDEXConcept newC = graph.createConcept(oldC.getPID(), oldC.getAnnotation(), oldC.getDescription(), oldC.getElementOf(), newCC, oldC.getEvidence());
  // copies everything else
  copyEverythingElse(oldC, newC);
  return newC;
}
origin: net.sourceforge.ondex.modules/protein-structure

concept.setAnnotation(concept.getAnnotation() + " URL:" + dbLink.getAccession());
continue;
origin: net.sourceforge.ondex.apps/ovtk2

/**
 * Initialises table data with the given ONDEXGraph.
 * 
 * @param graph
 *            ONDEXGraph to extract concepts from
 */
public ConceptPanel(ONDEXGraph graph) {
  Object[][] data = new Object[graph.getConcepts().size()][];
  int i = 0;
  for (ONDEXConcept concept : graph.getConcepts()) {
    // first entry in table row is concept itself
    Object[] row = { concept, concept.getPID(), concept.getAnnotation(), concept.getDescription(), concept.getElementOf(), concept.getOfType(), concept.getEvidence() };
    data[i] = row;
    i++;
  }
  // initialise table model and populate table
  DefaultTableModel model = new DefaultTableModel();
  model.setDataVector(data, header);
  table = new ConceptTable(model, graph);
  // add table to panel
  this.setLayout(new GridLayout(1, 1));
  this.add(new JScrollPane(table));
  Util.calcColumnWidths(table, 150);
}
origin: net.sourceforge.ondex.modules/poplar

String anno = ac.getAnnotation();
if (isMatching(p, search, anno))
  found = true;
origin: net.sourceforge.ondex.apps/ovtk2-poplar

String anno = ac.getAnnotation();
if (isMatching(p, anno))
  found = true;
origin: net.sourceforge.ondex.core/tools

/**
 * Copies all of the attributes from one concept to another (only if they do
 * not already exist at target)
 * 
 * @param from
 *            - concept to copy from
 * @param to
 *            - concept to copy to
 * @throws AccessDeniedException
 * @throws NullValueException
 * @throws EmptyStringException
 */
public static void copyConceptAttributes(ONDEXConcept from, ONDEXConcept to)
    throws NullValueException, AccessDeniedException,
    EmptyStringException {
  for (EvidenceType et : from.getEvidence())
    addNewEvidence(to, et);
  for (ConceptAccession ca : from.getConceptAccessions())
    addNewAccession(to, ca);
  for (ConceptName cn : from.getConceptNames())
    addNewName(to, cn);
  for (Attribute attribute : from.getAttributes())
    addNewAttribute(to, attribute);
  if (from.getAnnotation() != null && to.getDescription() == null)
    to.setAnnotation(from.getAnnotation());
  if (from.getDescription() != null && to.getDescription() == null)
    to.setDescription(from.getDescription());
}
origin: net.sourceforge.ondex.core/tools

if (copySourceConcept.getAnnotation() != null)
  copyTargetConcept.setAnnotation(copySourceConcept.getAnnotation());
origin: net.sourceforge.ondex.core/tools

String anno = conceptToClone.getAnnotation();
origin: net.sourceforge.ondex.modules/rdf

Resource cR = model.createResource(ONDEXRdf.conceptToUri(graphURI, c));
cRap(cR, model.createProperty(ONDEXRdf.annotationUri), c.getAnnotation());
for(ConceptAccession ca : c.getConceptAccessions()) {
  cR.addProperty(model.createProperty(ONDEXRdf.conceptAccessionUri), ca.getAccession());
net.sourceforge.ondex.coreONDEXConceptgetAnnotation

Javadoc

Returns the annotation of this instance of AbstractConcept.

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.
  • addTag
  • getConceptName,
  • addTag,
  • getDescription,
  • getAttributes,
  • getTags,
  • getEvidence,
  • setAnnotation,
  • getConceptAccession,
  • setDescription

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (Timer)
  • runOnUiThread (Activity)
  • getSystemService (Context)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top PhpStorm plugins
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