// TODO: Throw Exceptions
LOG.error("Cannot translate: {}", clause);
} else if (values.size() == 2) {
// property_value(Rel-ID Entity-ID Qualifiers)
OWLAnnotationProperty prop = trAnnotationProp((String) v);
OWLAnnotationValue value = trAnnotationProp(v2.toString())
.getIRI();
OWLAnnotation ontAnn = fac.getOWLAnnotation(prop, value,
annotations);
AddOntologyAnnotation addAnn = new AddOntologyAnnotation(
getOwlOntology(), ontAnn);
apply(addAnn);
} else if (values.size() == 3) {
// property_value(Rel-ID Value XSD-Type Qualifiers)
Iterator<Object> it = clause.getValues().iterator();
it.next();
it.next();
String v3String = (String) it.next();
IRI valueIRI;
if (v3String.startsWith("xsd:")) {
valueIRI = IRI.create(Namespaces.XSD
+ v3String.substring(4));
} else {
valueIRI = IRI.create(v3String);
}
OWLAnnotationValue value = fac.getOWLLiteral((String) v2,
OWL2Datatype.getDatatype(valueIRI));
OWLAnnotationProperty prop = trAnnotationProp((String) v);
OWLAnnotation ontAnn = fac.getOWLAnnotation(prop, value,
annotations);
AddOntologyAnnotation addAnn = new AddOntologyAnnotation(