public static boolean doesClassExist(Element element, OntologyToolset bundle) { String className = StringManipulation.makeURICompliantFragment( element.getIdentification(), bundle.getBaseIRI()); String classIRI = bundle.getIRI(className); return classes.get(classIRI) != null; }
public static OWLClass getOWLClass(Element element, OntologyToolset bundle, String postfix) { String className = StringManipulation.makeURICompliantFragment( element.getIdentification(), bundle.getBaseIRI()); String classIRI = bundle.getIRI(className); if (postfix != null) classIRI += "_" + postfix; return getClass(classIRI, bundle); }