else if (allowedTypes.contains(PrimitiveType.IRI) && isAbsoluteIRI(trimmedContent)) {
IRIData iriData = new IRIData(IRI.create(trimmedContent));
callback.onSuccess(Optional.<OWLPrimitiveData>of(iriData));
}
else if (allowedTypes.contains(PrimitiveType.LITERAL)) {
OWLLiteralData literalData = parseLiteralData(trimmedContent, lang);
callback.onSuccess(Optional.<OWLPrimitiveData>of(literalData));
}
else {
callback.parsingFailure();
}