Package edu.pitt.ontology

Examples of edu.pitt.ontology.IClass.addLabel()


    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


     
      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

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.