private List<OWLOntology> getOntologies() { final OWLModelManager mngr = getOWLModelManager(); List<OWLOntology> ontologies = new ArrayList<OWLOntology>(mngr.getOntologies()); ontologies.removeAll(mngr.getOWLOntologyManager().getImportsClosure(mngr.getActiveOntology())); // you cannot import an ontology from the same series ontologies.removeAll(getOntologiesInSeries(mngr.getActiveOntology(), ontologies)); Collections.sort(ontologies, mngr.getOWLObjectComparator()); return ontologies; }
private List<OWLOntology> getOntologies() { final OWLModelManager mngr = getOWLModelManager(); List<OWLOntology> ontologies = new ArrayList<>(mngr.getOntologies()); ontologies.removeAll(mngr.getOWLOntologyManager().getImportsClosure(mngr.getActiveOntology())); // you cannot import an ontology from the same series ontologies.removeAll(getOntologiesInSeries(mngr.getActiveOntology(), ontologies)); Collections.sort(ontologies, mngr.getOWLObjectComparator()); return ontologies; }
private List<OWLOntology> getOntologies() { final OWLModelManager mngr = getOWLModelManager(); List<OWLOntology> ontologies = new ArrayList<>(mngr.getOntologies()); ontologies.removeAll(mngr.getOWLOntologyManager().getImportsClosure(mngr.getActiveOntology())); // you cannot import an ontology from the same series ontologies.removeAll(getOntologiesInSeries(mngr.getActiveOntology(), ontologies)); Collections.sort(ontologies, mngr.getOWLObjectComparator()); return ontologies; }
private List<OWLOntology> getOntologies() { final OWLModelManager mngr = getOWLModelManager(); List<OWLOntology> ontologies = new ArrayList<OWLOntology>(mngr.getOntologies()); ontologies.removeAll(mngr.getOWLOntologyManager().getImportsClosure(mngr.getActiveOntology())); // you cannot import an ontology from the same series ontologies.removeAll(getOntologiesInSeries(mngr.getActiveOntology(), ontologies)); Collections.sort(ontologies, mngr.getOWLObjectComparator()); return ontologies; }
@Override public void aboutToHidePanel() { OntologyImportWizard wizard = getWizard(); wizard.setImportsAreFinal(false); wizard.clearImports(); for (Object o : ontologyList.getSelectedValues()){ OWLOntology ontology = (OWLOntology) o; OWLOntologyID id = ontology.getOntologyID(); IRI physicalLocation = getOWLModelManager().getOWLOntologyManager().getOntologyDocumentIRI(ontology); ImportInfo parameter = new ImportInfo(); parameter.setOntologyID(ontology.getOntologyID()); parameter.setPhysicalLocation(physicalLocation.toURI()); parameter.setImportLocation(!id.isAnonymous() ? id.getDefaultDocumentIRI().get() : physicalLocation); wizard.addImport(parameter); } ((SelectImportLocationPage) getWizardModel().getPanel(SelectImportLocationPage.ID)).setBackPanelDescriptor(ID); ((ImportConfirmationPage) getWizardModel().getPanel(ImportConfirmationPage.ID)).setBackPanelDescriptor(ID); super.aboutToHidePanel(); }
@Override public void aboutToHidePanel() { OntologyImportWizard wizard = getWizard(); wizard.setImportsAreFinal(false); wizard.clearImports(); for (Object o : ontologyList.getSelectedValues()){ OWLOntology ontology = (OWLOntology) o; OWLOntologyID id = ontology.getOntologyID(); IRI physicalLocation = getOWLModelManager().getOWLOntologyManager().getOntologyDocumentIRI(ontology); ImportInfo parameter = new ImportInfo(); parameter.setOntologyID(ontology.getOntologyID()); parameter.setPhysicalLocation(physicalLocation.toURI()); parameter.setImportLocation(!id.isAnonymous() ? id.getDefaultDocumentIRI().get() : physicalLocation); wizard.addImport(parameter); } ((SelectImportLocationPage) getWizardModel().getPanel(SelectImportLocationPage.ID)).setBackPanelDescriptor(ID); ((ImportConfirmationPage) getWizardModel().getPanel(ImportConfirmationPage.ID)).setBackPanelDescriptor(ID); super.aboutToHidePanel(); }
@Override public void aboutToHidePanel() { OntologyImportWizard wizard = (OntologyImportWizard) getWizard(); wizard.clearImports(); for (Object o : ontologyList.getSelectedValues()){ OWLOntology ontology = (OWLOntology) o; OWLOntologyID id = ontology.getOntologyID(); IRI physicalLocation = getOWLModelManager().getOWLOntologyManager().getOntologyDocumentIRI(ontology); ImportInfo parameter = new ImportInfo(); parameter.setOntologyID(ontology.getOntologyID()); parameter.setPhysicalLocation(physicalLocation.toURI()); parameter.setImportLocation(!id.isAnonymous() ? id.getDefaultDocumentIRI() : physicalLocation); wizard.addImport(parameter); } ((SelectImportLocationPage) getWizardModel().getPanel(SelectImportLocationPage.ID)).setBackPanelDescriptor(ID); ((ImportConfirmationPage) getWizardModel().getPanel(ImportConfirmationPage.ID)).setBackPanelDescriptor(ID); super.aboutToHidePanel(); }
@Override public void aboutToHidePanel() { OntologyImportWizard wizard = (OntologyImportWizard) getWizard(); wizard.setImportsAreFinal(false); wizard.clearImports(); for (Object o : ontologyList.getSelectedValues()){ OWLOntology ontology = (OWLOntology) o; OWLOntologyID id = ontology.getOntologyID(); IRI physicalLocation = getOWLModelManager().getOWLOntologyManager().getOntologyDocumentIRI(ontology); ImportInfo parameter = new ImportInfo(); parameter.setOntologyID(ontology.getOntologyID()); parameter.setPhysicalLocation(physicalLocation.toURI()); parameter.setImportLocation(!id.isAnonymous() ? id.getDefaultDocumentIRI() : physicalLocation); wizard.addImport(parameter); } ((SelectImportLocationPage) getWizardModel().getPanel(SelectImportLocationPage.ID)).setBackPanelDescriptor(ID); ((ImportConfirmationPage) getWizardModel().getPanel(ImportConfirmationPage.ID)).setBackPanelDescriptor(ID); super.aboutToHidePanel(); }