@Override public Concept visit(OWLObjectPropertyRangeAxiom axiom) { if (!axiom.getProperty().isOWLObjectProperty()) { return null; } RelationshipType objectRelation = migrator.relation(axiom.getProperty().asOWLObjectProperty()); if (axiom.getRange().isOWLClass()) { EntityType entityType = migrator.entityType(axiom.getRange().asOWLClass()); Role range = migrator.objectRole(objectRelation); objectRelation.relates(range); migrator.owlThingEntityType().deletePlays(range); entityType.plays(range); } return objectRelation; }
@Override public Concept visit(OWLObjectPropertyDomainAxiom axiom) { if (!axiom.getProperty().isOWLObjectProperty()) { return null; } RelationshipType objectRelation = migrator.relation(axiom.getProperty().asOWLObjectProperty()); if (axiom.getDomain().isOWLClass()) { EntityType entityType = migrator.entityType(axiom.getDomain().asOWLClass()); Role domain = migrator.subjectRole(objectRelation); migrator.owlThingEntityType().deletePlays(domain); entityType.plays(domain); objectRelation.relates(domain); // System.out.println("Replaced domain thing with " + entityType.getLabel()); } return objectRelation; }