Package edu.stanford.smi.protege.model

Examples of edu.stanford.smi.protege.model.Project


    private static OWLModel owlModel;
    private static ICDContentModel icdContentModel;

    public static void main(String[] args) {
        Project prj = Project.loadProjectFromFile("C:\\icdcontent\\icd_umbrella.pprj", new ArrayList());
        owlModel = (OWLModel) prj.getKnowledgeBase();
        icdContentModel = new ICDContentModel(owlModel);

        //getICDcategories(); //takes around 90 secs to get the result back, that is why it is commented out
        //getCategoryDetails();
        //getChildren();
View Full Code Here


     */
    public static void main(String[] args) {
        File file = new File("/tmp/icd10_claml.xml");

        //load into a file that has the empty content model in it
        Project prj = Project.loadProjectFromFile("/tmp/icd_content_model_empty.pprj", new ArrayList());
        OWLModel owlModel = (OWLModel) prj.getKnowledgeBase();

        ClamlImport ci = new ClamlImport(owlModel);
        ci.doImport(file);

        log.info("Started saving of OWL file on " + new Date());
        long t0 = System.currentTimeMillis();

        prj.save(new ArrayList());

        log.info("Finished saving OWL file in " + ((System.currentTimeMillis() - t0) / 1000) + " seconds");

    }
View Full Code Here

        textArea.append("Started at " + startedDate.toString() + "\n");

        String linearType = this.getSelectedLinearType();
     
        String pprjFileName = this.getUmbrellaProjectName();
        Project prj = Project.loadProjectFromFile(pprjFileName, new ArrayList());
        OWLModel localowlModel = (OWLModel) prj.getKnowledgeBase();
        icdContentModel = new ICDContentModel(localowlModel);
     
        this.updateStatus(1);
        if (Thread.interrupted()) {
          throw new InterruptedException();
View Full Code Here

    return tbdcodes[index];
   
  }
 
  public static void main(String[] args){
        Project prj = Project.loadProjectFromFile("c:\\icdcontent\\icd_umbrella.pprj", new ArrayList());
        OWLModel owlModel = (OWLModel) prj.getKnowledgeBase();
        ICDContentModel icdContentModel = new ICDContentModel(owlModel);
        ICDClaMLLinearizationHierarchicalStructure model = new ICDClaMLLinearizationHierarchicalStructure(icdContentModel, "Morbidity");
        model.generateCodes();
        model.getGeneretadCodes();
  }
View Full Code Here

 
  private String[] missingCodes = {"OEAE", "LDDD", "BACFCB", "GDJBE", "GDJBEA"};
 
 
  public ICDClaMLXMLExporter() {
        Project prj = Project.loadProjectFromFile("c:\\icdcontent\\icd_umbrella.pprj", new ArrayList());
        owlModel = (OWLModel) prj.getKnowledgeBase();
        icdContentModel = new ICDContentModel(owlModel);        
  }
View Full Code Here

TOP

Related Classes of edu.stanford.smi.protege.model.Project

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.