@Override
 public void visit(IRI iri) {
   obj = iri;
   for (EntityType<?> entityType : EntityType.values()) {
     OWLEntity entity = dataFactory.getOWLEntity(entityType, iri);
     IRI replacementIRI = replacementMap.get(entity);
     if (replacementIRI != null) {
       obj = replacementIRI;
       break;
     }
   }
 }
示例#2
0
 PrimitiveType(@Nonnull EntityType<?> entityType) {
   this(entityType.getShortForm(), entityType.getPrintName(), entityType.getPluralPrintName());
 }