IConcept ret = getOntology().getConcept(getBaseTraitName()); if (ret == null) { ArrayList<IAxiom> ax = new ArrayList<IAxiom>(); ax.add(Axiom.ClassAssertion(getBaseTraitName())); ax.add(Axiom.SubClass(getTraitType(), getBaseTraitName())); ax.add(Axiom .AnnotationAssertion(getBaseTraitName(), NS.BASE_DECLARATION, "true")); ax.add(Axiom .AnnotationAssertion(getBaseTraitName(), NS.AUTHORITY_ID_PROPERTY, getAuthorityId())); ax.add(Axiom.SubObjectProperty(pProp, pName)); ax.add(Axiom .AnnotationAssertion(getBaseTraitName(), NS.TRAIT_RESTRICTING_PROPERTY, getAuthorityId() .toLowerCase() + ":" + getTraitPropertyName())); ret = getOntology().getConcept(getBaseTraitName());