Пример #1
0
 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;
 }
Пример #2
0
  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);
  }