private void checkNamespaceURI(String uri) throws SAXParseException {
((Frame) frame).checkEncoding(null,uri);
if (uri.length() != 0)
{
IRI u = iriFactory().create(uri);
// if (u.isVeryBad()) {
// warning(null,
// WARN_BAD_NAMESPACE_URI,
// "The namespace URI: <"
// + uri
// + "> is not well formed.");
// return;
//
// }
if (!u.isAbsolute()) {
warning(null,
WARN_RELATIVE_NAMESPACE_URI_DEPRECATED,
"The namespace URI: <"
+ uri
+ "> is relative. Such use has been deprecated by the W3C, and may result in RDF interoperability failures. Use an absolute namespace URI.");
}
try {
if (!u.toASCIIString().equals(u.toString()))
warning(null,
WARN_BAD_NAMESPACE_URI,
"Non-ascii characters in a namespace URI may not be completely portable: <"
+ u.toString()
+ ">. Resulting RDF URI references are legal.");
} catch (MalformedURLException e) {
warning(null,
WARN_BAD_NAMESPACE_URI,
"toAscii failed for namespace URI: <"
+ u.toString()
+ ">. " + e.getMessage());
}
if (uri.startsWith(rdfns) && !uri.equals(rdfns))
warning(null,WARN_BAD_RDF_NAMESPACE_URI, "Namespace URI ref <"