Пример #1
0
  @Override
  public void create(Collection errors) throws OntologyLoadException {
    project = Project.createNewProject(factory, errors);
    owlModel = (JenaOWLModel) project.getKnowledgeBase();

    if (ontologyName == null) {
      ontologyName = FactoryUtils.generateOntologyURIBase();
    }
    try {
      FactoryUtils.addOntologyToTripleStore(
          owlModel, owlModel.getTripleStoreModel().getActiveTripleStore(), ontologyName);
    } catch (AlreadyImportedException e) {
      throw new RuntimeException("This shouldn't happen", e);
    }
    addViewSettings(project.getSources());
  }