@@ -0,0 +1,1053 @@
+package org.arachb.owlbuilder.lib;%0A%0Aimport java.util.Map;%0A%0Aimport org.arachb.arachadmin.TermBean;%0Aimport org.arachb.owlbuilder.Owlbuilder;%0Aimport org.semanticweb.owlapi.model.IRI;%0Aimport org.semanticweb.owlapi.model.OWLClass;%0Aimport org.semanticweb.owlapi.model.OWLDataFactory;%0Aimport org.semanticweb.owlapi.model.OWLObject;%0A%0Apublic class ClassTerm implements NamedGeneratingEntity,TaxonomicEntity %7B%0A%0A%09private TermBean bean;%0A%09//TODO figure out how to set this meaningfully%0A%09private boolean isTaxon = false;%0A%09%0A%09public ClassTerm(TermBean tb)%7B%0A%09%09bean = tb;%0A%09%7D%0A%09%0A%09@Override%0A%09public boolean isTaxon()%7B%0A%09%09return isTaxon;%0A%09%7D%0A%09%0A%09@Override%0A%09public OWLObject generateOWL(Owlbuilder b) throws Exception %7B%0A%09%09OWLDataFactory factory = b.getDataFactory();%0A%09%09IRI classIRI = IRI.create(bean.getIRIString());%0A%09%09return factory.getOWLClass(classIRI);%0A%09%7D%0A%0A%09@Override%0A%09public OWLObject generateOWL(Owlbuilder b, Map%3CString, OWLObject%3E elements) throws Exception %7B%0A%09%09OWLObject newClass = generateOWL(b);%0A%09%09elements.put(bean.getIRIString(), newClass);%0A%09%09return newClass;%0A%09%7D%0A%0A%7D%0A

add generating class for terms (modularizes both loading and generation)