private OWLEntity getEntity(OWLEntity entity, String id, IRI base) { try { return fac.createOWLEntity(entity.getClass(), id, base).getOWLEntity(); } catch (OWLEntityCreationException e) { throw new RuntimeException(e); } }
private OWLEntity getEntity(OWLEntity entity, String id, IRI base) { try { return fac.createOWLEntity(entity.getClass(), id, base).getOWLEntity(); } catch (OWLEntityCreationException e) { throw new RuntimeException(e); } }
private OWLEntity getEntity(OWLEntity entity, String id, IRI base) { try { return fac.createOWLEntity(entity.getClass(), id, base).getOWLEntity(); } catch (OWLEntityCreationException e) { throw new RuntimeException(e); } }
public void createChildEntity() { OWLEntityCreationSet<E> creationSet = createEntity(); List<OWLOntologyChange> changes = new ArrayList<>(); changes.addAll(changes); changes.addAll(createChild(entitySetProvider.getEntities(), creationSet.getOWLEntity())); editorKit.getModelManager().applyChanges(changes); }
public void createChildEntity() { OWLEntityCreationSet<E> creationSet = createEntity(); List<OWLOntologyChange> changes = new ArrayList<>(); changes.addAll(changes); changes.addAll(createChild(entitySetProvider.getEntities(), creationSet.getOWLEntity())); editorKit.getModelManager().applyChanges(changes); }
private static OWLEntityCreationSet<OWLClass> appendDefinitionToCreationSet(OWLEntityCreationSet<OWLClass> creationSet, OWLClassExpression desc, OWLEditorKit eKit) { final OWLClass owlEntity = creationSet.getOWLEntity(); final OWLAxiom ax = eKit.getOWLModelManager().getOWLDataFactory().getOWLEquivalentClassesAxiom(owlEntity, desc); final List<OWLOntologyChange> changes = new ArrayList<>(creationSet.getOntologyChanges()); changes.add(new AddAxiom(eKit.getOWLModelManager().getActiveOntology(), ax)); return new OWLEntityCreationSet<>(owlEntity, changes); } }
private void createNewDatatype() { OWLEntityCreationSet<OWLDatatype> set = getOWLWorkspace().createOWLDatatype(); if (set == null) { return; } getOWLModelManager().applyChanges(set.getOntologyChanges()); OWLDatatype datatype = set.getOWLEntity(); if (datatype != null) { list.setSelectedValue(datatype, true); } }
private void createNewDatatype() { OWLEntityCreationSet<OWLDatatype> set = getOWLWorkspace().createOWLDatatype(); if (set == null) { return; } getOWLModelManager().applyChanges(set.getOntologyChanges()); OWLDatatype datatype = set.getOWLEntity(); if (datatype != null) { list.setSelectedValue(datatype, true); } }
private void createNewDatatype() { OWLEntityCreationSet<OWLDatatype> set = getOWLWorkspace().createOWLDatatype(); if (set == null) { return; } getOWLModelManager().applyChanges(set.getOntologyChanges()); OWLDatatype datatype = set.getOWLEntity(); if (datatype != null) { list.setSelectedValue(datatype, true); } }
public void createNewObject() { OWLEntityCreationSet<OWLClass> set = getOWLWorkspace().createOWLClass(); if (set != null) { OWLClass newClass = set.getOWLEntity(); getOWLModelManager().applyChanges(set.getOntologyChanges()); getTree().setSelectedOWLObject(newClass); } }
public void createNewObject() { OWLEntityCreationSet<OWLClass> set = getOWLWorkspace().createOWLClass(); if (set != null){ OWLClass newClass = set.getOWLEntity(); getOWLModelManager().applyChanges(set.getOntologyChanges()); getTree().setSelectedOWLObject(newClass); } }
public void actionPerformed(ActionEvent e) { OWLClassExpression descr = getSelectedRowDescription(); if (descr != null) { OWLEntityCreationSet<OWLClass> creationSet = CreateDefinedClassPanel.showDialog(descr, getOWLEditorKit()); if (creationSet != null){ getOWLModelManager().applyChanges(creationSet.getOntologyChanges()); getOWLEditorKit().getOWLWorkspace().getOWLSelectionModel().setSelectedEntity(creationSet.getOWLEntity()); } } } }
public void actionPerformed(ActionEvent e) { OWLClassExpression descr = getSelectedRowDescription(); if (descr != null) { OWLEntityCreationSet<OWLClass> creationSet = CreateDefinedClassPanel.showDialog(descr, getOWLEditorKit()); if (creationSet != null){ getOWLModelManager().applyChanges(creationSet.getOntologyChanges()); getOWLEditorKit().getOWLWorkspace().getOWLSelectionModel().setSelectedEntity(creationSet.getOWLEntity()); } } } }
/** * Invoked when an action occurs. */ public void actionPerformed(ActionEvent e) { OWLEntityCreationSet<OWLNamedIndividual> set = getOWLWorkspace().createOWLIndividual(); if (set == null) { return; } OWLClass thing = getOWLDataFactory().getOWLThing(); OWLAxiom ax = getOWLDataFactory().getOWLClassAssertionAxiom(thing, set.getOWLEntity()); getOWLModelManager().applyChange(new AddAxiom(getOWLModelManager().getActiveOntology(), ax)); }
/** * Invoked when an action occurs. */ public void actionPerformed(ActionEvent e) { OWLEntityCreationSet<OWLNamedIndividual> set = getOWLWorkspace().createOWLIndividual(); if (set == null) { return; } OWLClass thing = getOWLDataFactory().getOWLThing(); OWLAxiom ax = getOWLDataFactory().getOWLClassAssertionAxiom(thing, set.getOWLEntity()); getOWLModelManager().applyChange(new AddAxiom(getOWLModelManager().getActiveOntology(), ax)); }
/** * Invoked when an action occurs. */ public void actionPerformed(ActionEvent e) { OWLEntityCreationSet<OWLNamedIndividual> set = getOWLWorkspace().createOWLIndividual(); if (set == null) { return; } OWLClass thing = getOWLDataFactory().getOWLThing(); OWLAxiom ax = getOWLDataFactory().getOWLClassAssertionAxiom(thing, set.getOWLEntity()); getOWLModelManager().applyChange(new AddAxiom(getOWLModelManager().getActiveOntology(), ax)); }
/** * Invoked when an action occurs. */ public void actionPerformed(ActionEvent e) { OWLIndividual ind = getOWLWorkspace().createOWLIndividual().getOWLEntity(); OWLClass selectedClass = getOWLWorkspace().getOWLSelectionModel().getLastSelectedClass(); OWLAxiom ax = getOWLDataFactory().getOWLClassAssertionAxiom(selectedClass, ind); getOWLModelManager().applyChange(new AddAxiom(getOWLModelManager().getActiveOntology(), ax)); } }
/** * Invoked when an action occurs. */ public void actionPerformed(ActionEvent e) { OWLIndividual ind = getOWLWorkspace().createOWLIndividual().getOWLEntity(); OWLClass selectedClass = getOWLWorkspace().getOWLSelectionModel().getLastSelectedClass(); OWLAxiom ax = getOWLDataFactory().getOWLClassAssertionAxiom(selectedClass, ind); getOWLModelManager().applyChange(new AddAxiom(getOWLModelManager().getActiveOntology(), ax)); } }
/** * Invoked when an action occurs. */ public void actionPerformed(ActionEvent e) { OWLIndividual ind = getOWLWorkspace().createOWLIndividual().getOWLEntity(); OWLClass selectedClass = getOWLWorkspace().getOWLSelectionModel().getLastSelectedClass(); OWLAxiom ax = getOWLDataFactory().getOWLClassAssertionAxiom(selectedClass, ind); getOWLModelManager().applyChange(new AddAxiom(getOWLModelManager().getActiveOntology(), ax)); } }
/** * Invoked when an action occurs. */ public void actionPerformed(ActionEvent e) { OWLIndividual ind = getOWLWorkspace().createOWLIndividual().getOWLEntity(); OWLClass selectedClass = getOWLWorkspace().getOWLSelectionModel().getLastSelectedClass(); OWLAxiom ax = getOWLDataFactory().getOWLClassAssertionAxiom(selectedClass, ind); getOWLModelManager().applyChange(new AddAxiom(getOWLModelManager().getActiveOntology(), ax)); } }