Package edu.stanford.smi.protegex.owl.repository

Examples of edu.stanford.smi.protegex.owl.repository.RepositoryManager


 
  public static class MyOWLDatabaseKnowledgeBaseFactory extends OWLDatabaseKnowledgeBaseFactory {
    public KnowledgeBase createKnowledgeBase(Collection errors) {
      OWLDatabaseModel owlModel = new OWLDatabaseModel(this){
        public URI loadImportedAssertions(URI ontologyName) throws OntologyLoadException {
          RepositoryManager rm = getRepositoryManager();
          for(Repository r: rm.getGlobalRepositories()){
            if(r instanceof DatabaseRepository)
              rm.addProjectRepository(0, r);
          }
          return super.loadImportedAssertions(ontologyName);
        }
      };
      return owlModel;
View Full Code Here


 
  public static class MyOWLDatabaseKnowledgeBaseFactory extends OWLDatabaseKnowledgeBaseFactory {
    public KnowledgeBase createKnowledgeBase(Collection errors) {
      OWLDatabaseModel owlModel = new OWLDatabaseModel(this){
        public URI loadImportedAssertions(URI ontologyName) throws OntologyLoadException {
          RepositoryManager rm = getRepositoryManager();
          for(Repository r: rm.getGlobalRepositories()){
            if(r instanceof DatabaseRepository)
              rm.addProjectRepository(0, r);
          }
          return super.loadImportedAssertions(ontologyName);
        }
      };
      return owlModel;
View Full Code Here

TOP

Related Classes of edu.stanford.smi.protegex.owl.repository.RepositoryManager

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.