Package edu.pitt.dbmi.nlp.noble.ontology

Examples of edu.pitt.dbmi.nlp.noble.ontology.IClass.addLabel()


     
      IClass dst = target.createClass(src.getName());
   
      // copy superficial stuff
      for(String lbl: src.getLabels())
        dst.addLabel(lbl);
      for(String com: src.getComments())
        dst.addComment(com);
      if(src.getVersion() != null)
        dst.addVersion(src.getVersion());
   
View Full Code Here


    labels.add(c.getName());
    Collections.addAll(labels,c.getSynonyms());
   
    // add synonyms
    for(String s: labels){
      cls.addLabel(s);
    }
    // add definitions
    for(Definition d: c.getDefinitions()){
      cls.addComment(d.getDefinition());
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.