Package edu.pitt.ontology

Examples of edu.pitt.ontology.IOntology


    f.pack();
    f.setVisible(true);
    // set root
    Object value = getSelectedValue();
    if(value instanceof IOntology){
      final IOntology ont = (IOntology) value;
      explorer.setBusy(true);
      (new Thread(new Runnable(){
        public void run(){
          /*
          try{
            ont.load();
          }catch(IOntologyException ex){
            ex.printStackTrace();
          }*/
          explorer.setRoot(ont.getRootClasses());
          explorer.setBusy(false);
        }
      })).start();
    }else if(value instanceof Terminology){
      final Terminology term = (Terminology) value;
View Full Code Here


    f.pack();
    f.setVisible(true);
    // set root
    Object value = getSelectedValue();
    if(value instanceof IOntology){
      final IOntology ont = (IOntology) value;
      explorer.setBusy(true);
      (new Thread(new Runnable(){
        public void run(){
          try{
            ont.load();
          }catch(IOntologyException ex){
            ex.printStackTrace();
          }
          explorer.setOntology(ont);
          explorer.setBusy(false);
View Full Code Here

    try {
      url = path.toURL();
    } catch (MalformedURLException e) {
      throw new IOntologyException("Invalid URI supplied: "+path,e);
    }
    IOntology ont = OOntology.loadOntology(url);
    importOntology(ont);
    return getOntology(ont.getURI());
   
  }
View Full Code Here

  public IResource getResource(URI path){
    String uri = ""+path;
    int i = uri.lastIndexOf("#");
    uri = (i > -1)?uri.substring(0,i):uri;
    // get ontology
    IOntology ont = getOntology(URI.create(uri));
   
    // if ontology is all you want, fine Girish
    if(i == -1)
      return ont;
    //
    if(ont != null){
      return ont.getResource(""+path);
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of edu.pitt.ontology.IOntology

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.