public void actionPerformed(ActionEvent e) { List<OWLOntologyChange> changes = new ArrayList<>(); final OWLOntology activeOnt = getOWLModelManager().getActiveOntology(); final Set<OWLOntology> activeOnts = getOWLModelManager().getActiveOntologies(); final OWLDataFactory df = getOWLModelManager().getOWLDataFactory(); final OWLClass root = getRootObject(); for (OWLObjectProperty prop : getPropertiesFromSelection()){ OWLAxiom ax = ClosureAxiomFactory.getClosureAxiom(root, prop, df, activeOnts); if (ax != null && !activeOnt.containsAxiom(ax)){ changes.add(new AddAxiom(activeOnt, ax)); } } if (!changes.isEmpty()){ getOWLModelManager().applyChanges(changes); } }
public void actionPerformed(ActionEvent e) { List<OWLOntologyChange> changes = new ArrayList<>(); final OWLOntology activeOnt = getOWLModelManager().getActiveOntology(); final Set<OWLOntology> activeOnts = getOWLModelManager().getActiveOntologies(); final OWLDataFactory df = getOWLModelManager().getOWLDataFactory(); final OWLClass root = getRootObject(); for (OWLObjectProperty prop : getPropertiesFromSelection()){ OWLAxiom ax = ClosureAxiomFactory.getClosureAxiom(root, prop, df, activeOnts); if (ax != null && !activeOnt.containsAxiom(ax)){ changes.add(new AddAxiom(activeOnt, ax)); } } if (!changes.isEmpty()){ getOWLModelManager().applyChanges(changes); } }
public void actionPerformed(ActionEvent e) { List<OWLOntologyChange> changes = new ArrayList<OWLOntologyChange>(); final OWLOntology activeOnt = getOWLModelManager().getActiveOntology(); final Set<OWLOntology> activeOnts = getOWLModelManager().getActiveOntologies(); final OWLDataFactory df = getOWLModelManager().getOWLDataFactory(); final OWLClass root = getRootObject(); for (OWLObjectProperty prop : getPropertiesFromSelection()){ OWLAxiom ax = ClosureAxiomFactory.getClosureAxiom(root, prop, df, activeOnts); if (ax != null && !activeOnt.containsAxiom(ax)){ changes.add(new AddAxiom(activeOnt, ax)); } } if (!changes.isEmpty()){ getOWLModelManager().applyChanges(changes); } }
public void actionPerformed(ActionEvent e) { List<OWLOntologyChange> changes = new ArrayList<OWLOntologyChange>(); final OWLOntology activeOnt = getOWLModelManager().getActiveOntology(); final Set<OWLOntology> activeOnts = getOWLModelManager().getActiveOntologies(); final OWLDataFactory df = getOWLModelManager().getOWLDataFactory(); final OWLClass root = getRootObject(); for (OWLObjectProperty prop : getPropertiesFromSelection()){ OWLAxiom ax = ClosureAxiomFactory.getClosureAxiom(root, prop, df, activeOnts); if (ax != null && !activeOnt.containsAxiom(ax)){ changes.add(new AddAxiom(activeOnt, ax)); } } if (!changes.isEmpty()){ getOWLModelManager().applyChanges(changes); } }