protected static void checkURI(XMLHandler forErrors, Taint taintMe, IRI rslt)
throws SAXParseException {
if (rslt.hasViolation(false)) {
Iterator<Violation> it = rslt.violations(false);
while (it.hasNext()) {
Violation irie = it.next();
// if (irie.getViolationCode() ==
// ViolationCodes.REQUIRED_COMPONENT_MISSING)
String msg = irie.getShortMessage();
String uri = rslt.toString();
// if (msg.endsWith(uri)) {
// msg = msg.substring(0, msg.length() - uri.length()) + "<"
// + uri + ">";
// } else {
// msg = "<" + uri + "> " + msg;
// }
if (irie.getViolationCode() == ViolationCodes.REQUIRED_COMPONENT_MISSING
&& irie.getComponent() == IRIComponents.SCHEME) {
if (!forErrors.allowRelativeURIs())
forErrors.warning(taintMe, WARN_RELATIVE_URI,
"Relative URIs are not permitted in RDF: specifically <"
+ rslt.toString() + ">");