Ejemplo n.º 1
0
 public OntologyDB(String filename) {
   try {
     // String modelFileName = filename;
     this.reloadOWLFile(filename);
   } catch (IllegalArgumentException e) {
     System.out.println("Caught Exception : " + e.getMessage());
   }
   this.reasoning();
 }
Ejemplo n.º 2
0
  public OntologyDB(ArrayList<String> filenames) {
    // create an empty model
    this.model = ModelFactory.createOntologyModel(PelletReasonerFactory.THE_SPEC);

    // this.model = ModelFactory.createDefaultModel();
    try {
      for (String filename : filenames) {
        // String modelFileName = filename;
        this.importOntology(filename);
      }
    } catch (IllegalArgumentException e) {
      System.out.println("Caught Exception : " + e.getMessage());
    }
    this.reasoning();
  }