// public EntityData getEntityData(IRI entityIRI) {
// return getEntityData(entityIRI.toString());
// }
public PropertyEntityData getPropertyEntityData(OWLEntity entity) {
final PropertyEntityData entityData = new PropertyEntityData(entity.getIRI().toString());
// Don't know if this is correct.
entityData.setBrowserText(getShortForm(entity));
entity.accept(new OWLEntityVisitor() {
public void visit(OWLClass owlClass) {
}
public void visit(OWLObjectProperty owlObjectProperty) {
entityData.setPropertyType(PropertyType.OBJECT);
// Correct or not? Grrrrr
entityData.setValueType(ValueType.Instance);
}
public void visit(OWLDataProperty owlDataProperty) {
entityData.setPropertyType(PropertyType.DATATYPE);
// Correct or not? Grrrrr
entityData.setValueType(ValueType.Literal);
}
public void visit(OWLNamedIndividual owlNamedIndividual) {
}
public void visit(OWLDatatype owlDatatype) {
}
public void visit(OWLAnnotationProperty owlAnnotationProperty) {
// Correct or not? Grrrrr
entityData.setPropertyType(PropertyType.ANNOTATION);
entityData.setValueType(ValueType.Any);
}
});
return entityData;
}