public OWLDocumentFormat getFormat() { return ontologyFormatPanel.getFormat(); } }
public OWLOntologyFormat getFormat() { return ontologyFormatPanel.getFormat(); } }
public OWLOntologyFormat getFormat() { return formatPanel.getFormat(); }
public OWLDocumentFormat getFormat() { return ontologyFormatPanel.getFormat(); } }
public OWLDocumentFormat getFormat() { return formatPanel.getFormat(); }
public OWLOntologyFormat getFormat() { return ontologyFormatPanel.getFormat(); } }
public OWLDocumentFormat getFormat() { return formatPanel.getFormat(); }
public OWLOntologyFormat getFormat() { return formatPanel.getFormat(); }
public OWLOntology getOntologyToMergeInto() { OWLOntology ont = selectTargetOntologyPage.getOntology(); if (ont == null){ try { OWLOntologyID id = IDPanel.getOntologyID(); ont = owlModelManager.createNewOntology(id, physicalLocationPanel.getLocationURL()); owlModelManager.getOWLOntologyManager().setOntologyFormat(ont, ontologyFormatPage.getFormat()); } catch (OWLOntologyCreationException e) { throw new OWLRuntimeException(e); } } return ont; } }
public OWLOntology getOntologyToMergeInto() { OWLOntology ont = selectTargetOntologyPage.getOntology(); if (ont == null){ try { OWLOntologyID id = IDPanel.getOntologyID(); ont = owlModelManager.createNewOntology(id, physicalLocationPanel.getLocationURL()); owlModelManager.getOWLOntologyManager().setOntologyFormat(ont, ontologyFormatPage.getFormat()); } catch (OWLOntologyCreationException e) { throw new OWLRuntimeException(e); } } return ont; } }
public OWLOntology getOntologyToMergeInto() { OWLOntology ont = selectTargetOntologyPage.getOntology(); if (ont == null){ try { OWLOntologyID id = IDPanel.getOntologyID(); ont = owlModelManager.createNewOntology(id, physicalLocationPanel.getLocationURL()); owlModelManager.getOWLOntologyManager().setOntologyFormat(ont, ontologyFormatPage.getFormat()); } catch (OWLOntologyCreationException e) { throw new OWLRuntimeException(e); } } return ont; } }
public OWLOntology getOntologyToMergeInto() { OWLOntology ont = selectTargetOntologyPage.getOntology(); if (ont == null){ try { OWLOntologyID id = IDPanel.getOntologyID(); ont = owlModelManager.createNewOntology(id, physicalLocationPanel.getLocationURL()); owlModelManager.getOWLOntologyManager().setOntologyFormat(ont, ontologyFormatPage.getFormat()); } catch (OWLOntologyCreationException e) { throw new OWLRuntimeException(e); } } return ont; } }
public List<OWLOntologyChange> getChanges() throws OWLOntologyCreationException { OWLOntology targetOntology = null; if (addToTargetOntology){ OWLOntologyManager man = editorKit.getModelManager().getOWLOntologyManager(); if(man.contains(getTargetOntologyID())) { targetOntology = man.getOntology(getTargetOntologyID()); } else { targetOntology = editorKit.getModelManager().createNewOntology(getTargetOntologyID(), ontologyPhysicalLocationPage.getLocationURL()); editorKit.getModelManager().getOWLOntologyManager().setOntologyFormat(targetOntology, ontologyFormatPage.getFormat()); } } List<OWLOntologyChange> changes = new ArrayList<OWLOntologyChange>(); Set<OWLAxiom> axiomsToBeMoved = getAxiomsToBeMoved(); for(OWLAxiom ax : axiomsToBeMoved) { for (OWLOntology ont : getSourceOntologies()) { if (ont.containsAxiom(ax)) { if(deleteFromOriginalOntology) { changes.add(new RemoveAxiom(ont, ax)); } if(targetOntology != null){ changes.add(new AddAxiom(targetOntology, ax)); } } } } return changes; }