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

Examples of edu.pitt.dbmi.nlp.noble.ontology.DefaultRepository


   * @return
   */
  public IRepository getRepository(){
    // if repository is empty, create empty repository
    if(repository == null){
      repository = new DefaultRepository();
      repository.addOntology(this);
    }
    return repository;
  }
View Full Code Here


 
  /**
   * @param args
   */
  public static void main(String[] args) throws Exception {
    TerminologyExporter importer = new TerminologyExporter(new DefaultRepository());
    JDialog d = importer.showExportWizard(null);
   
  }
View Full Code Here

   * @param args
   */
  public static void main(String[] args) throws Exception {
    RepositoryManager manager = new RepositoryManager();
    manager.getFrame().setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    manager.start(new DefaultRepository());
  }
View Full Code Here

    }
  }
 
  private Terminology [] getTerminologies() {
    if(repository == null)
      repository =  new DefaultRepository();
    Terminology [] terms =  repository.getTerminologies();
    Arrays.sort(terms,new Comparator<Terminology>() {
      public int compare(Terminology o1, Terminology o2) {
        return o1.getName().compareTo(o2.getName());
      }
View Full Code Here

        try{
          setBusy(true);
          URL url = new URL(DEFAULT_TERMINOLOGY_DOWNLOAD);
          InputStream is = url.openStream();
          unzip(is,NobleCoderTerminology.getPersistenceDirectory());
          repository =  new DefaultRepository();
          SwingUtilities.invokeLater(new Runnable() {
            public void run() {
              DefaultComboBoxModel<Terminology> model = new DefaultComboBoxModel<Terminology>();
              for(Terminology t: repository.getTerminologies()){
                model.addElement(t);
View Full Code Here

TOP

Related Classes of edu.pitt.dbmi.nlp.noble.ontology.DefaultRepository

Copyright © 2018 www.massapicom. 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.