protected OWLClass getOWLClass(String name){ OWLClass cls = nameMap.get(name); if (cls == null){ try { OWLEntityCreationSet<OWLClass> creationSet = entityFactory.createOWLClass(name, null); changes.addAll(creationSet.getOntologyChanges()); cls = creationSet.getOWLEntity(); nameMap.put(name, cls); } catch (OWLEntityCreationException e) { ErrorLogPanel.showErrorDialog(e); } } return cls; }
protected OWLClass getOWLClass(String name){ OWLClass cls = nameMap.get(name); if (cls == null){ try { OWLEntityCreationSet<OWLClass> creationSet = entityFactory.createOWLClass(name, null); changes.addAll(creationSet.getOntologyChanges()); cls = creationSet.getOWLEntity(); nameMap.put(name, cls); } catch (OWLEntityCreationException e) { ErrorLogPanel.showErrorDialog(e); } } return cls; }
protected OWLClass getOWLClass(String name){ OWLClass cls = nameMap.get(name); if (cls == null){ try { OWLEntityCreationSet<OWLClass> creationSet = entityFactory.createOWLClass(name, null); changes.addAll(creationSet.getOntologyChanges()); cls = creationSet.getOWLEntity(); nameMap.put(name, cls); } catch (OWLEntityCreationException e) { ErrorLogPanel.showErrorDialog(e); } } return cls; }
protected OWLClass getOWLClass(String name){ OWLClass cls = nameMap.get(name); if (cls == null){ try { OWLEntityCreationSet<OWLClass> creationSet = entityFactory.createOWLClass(name, null); changes.addAll(creationSet.getOntologyChanges()); cls = creationSet.getOWLEntity(); nameMap.put(name, cls); } catch (OWLEntityCreationException e) { ErrorLogPanel.showErrorDialog(e); } } return cls; }
default <T extends OWLEntity> OWLEntityCreationSet<T> createOWLEntity(EntityType<T> entityType, String shortName, Optional<IRI> baseIRI) throws OWLEntityCreationException { if (entityType == EntityType.CLASS) { return (OWLEntityCreationSet<T>) this.createOWLClass(shortName, null);
default <T extends OWLEntity> OWLEntityCreationSet<T> createOWLEntity(EntityType<T> entityType, String shortName, Optional<IRI> baseIRI) throws OWLEntityCreationException { if (entityType == EntityType.CLASS) { return (OWLEntityCreationSet<T>) this.createOWLClass(shortName, null);