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

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

Best Java code snippets using net.sourceforge.ondex.core.ONDEXConcept.getDescription (Showing top 20 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 String getDescription() {
  return parent.getDescription();
}
origin: net.sourceforge.ondex.modules/tab-tools

public String getValue(ONDEXEntity cOrr) throws InvalidOndexEntityException {
  if(AbstractConcept.class.isAssignableFrom(cOrr.getClass())){
    return ((ONDEXConcept)cOrr).getDescription();
  }
  throw new InvalidOndexEntityException(cOrr.getClass()+": is not an Ondex class for which a description is known");
}
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

/**
 * Returns a JLabel for the concept
 */
@Override
public Object getElementAt(int index) {
  JLabel label = null;
  if (index > -1) {
    ONDEXConcept ac = concepts.get(index);
    String name = null;
    ConceptName cn = ac.getConceptName();
    if (cn != null)
      name = cn.getName();
    else
      name = String.valueOf(ac.getId());
    label = new JLabel(name);
    label.setName(String.valueOf(ac.getId()));
    label.setToolTipText("(" + ac.getId() + ") " + ac.getDescription());
  }
  return label;
}
origin: net.sourceforge.ondex.apps/ovtk2-poplar

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

/**
 * Tries to get the most worthwhile identifier for the concept
 * 
 * @param c
 *            - concept
 * @return - some id (in order of decreasing preference: name, pid,
 *         description, concepts class+is)
 */
private static String getSomething(ONDEXConcept c) {
  if (c.getConceptName() != null) {
    return c.getConceptName().getName();
  }
  if (c.getPID() != null && c.getPID().equals("")) {
    return c.getPID();
  }
  if (c.getDescription() != null && c.getDescription().equals("")) {
    return c.getDescription();
  }
  return "[" + c.getOfType().getId() + " " + c.getId() + "]";
}
origin: net.sourceforge.ondex.apps/ovtk2

else if (c.getDescription().length() > 0)
  name = c.getDescription().trim();
else
  name = c.getId() + " - n/a";
origin: net.sourceforge.ondex.modules/prolog

  anno = c.getAnnotation();
String desc = "";
if (c.getDescription() != null)
  desc = c.getDescription();
for (EvidenceType et : c.getEvidence()) {
  clause.delete(0, clause.length());
origin: net.sourceforge.ondex.modules/generic

defaultName = concept.getDescription();
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.modules/sbml

else if (concept.getAnnotation() != null)
  name = concept.getAnnotation();
else if (concept.getDescription() != null)
  name = concept.getDescription();
else
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 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.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

/**
 * 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 desc = ac.getDescription();
if (isMatching(p, search, desc))
  found = true;
origin: net.sourceforge.ondex.apps/ovtk2-poplar

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

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

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

  cR.addProperty(model.createProperty(ONDEXRdf.conceptNameUri), cn.getName());
cRap(cR, model.createProperty(ONDEXRdf.descriptionUri), c.getDescription());
cR.addProperty(model.createProperty(ONDEXRdf.elementOfUri), model.createResource(ONDEXRdf.dataSourceToUri(graphURI, c.getElementOf())));
net.sourceforge.ondex.coreONDEXConceptgetDescription

Javadoc

Returns the description 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.
  • getAnnotation
    Returns the annotation of this instance of AbstractConcept.
  • getConceptName,
  • getAnnotation,
  • addTag,
  • getAttributes,
  • getTags,
  • getEvidence,
  • setAnnotation,
  • getConceptAccession,
  • setDescription

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onCreateOptionsMenu (Activity)
  • setContentView (Activity)
  • addToBackStack (FragmentTransaction)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Join (org.hibernate.mapping)
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