return parentClass;
}
private void processProperties(DObjectType objectType, OntClass subjectClass, MappingEngine engine) throws RepositoryAccessException {
for (DPropertyDefinition propDef : objectType.getPropertyDefinitions()) {
OntologyResourceHelper orh = engine.getOntologyResourceHelper();
if ((propDef.getPropertyType() == PropType.NAME) || (propDef.getPropertyType() == PropType.PATH)
|| (propDef.getPropertyType() == PropType.REFERENCE)) {
ObjectProperty op = orh.createObjectPropertyByPropertyDefinition(propDef.getInstance(),
Arrays.asList(new Resource[] {subjectClass}), new ArrayList<Resource>());
if (op == null) {
logger.warn("Failed to create ObjectProperty for property definition {}",
propDef.getName());
}
} else {
DatatypeProperty dtp = orh.createDatatypePropertyByPropertyDefinition(propDef.getInstance(),
Arrays.asList(new Resource[] {subjectClass}));
if (dtp == null) {
logger.warn("Failed to create DatatypeProperty for property definition {}",
propDef.getName());