From: Antoni M. <Ant...@df...> - 2006-10-23 10:44:21
|
Christiaan Fluit wrote: > And how about using org.openrdf.model.URIs instead of java.net.URIs in > the RDF2Go APIs? They have introduced their own org.ontoware.rdf2go.model.node.URI class. This would solve the problem as far as interfaces are concerned. There is some room for discussion on the implementation side though. They use java.net.URI's internally to perform validation. This validation can be turned off, either by using the non-validating URIImpl.createURIWithoutChecking method or turning the log level to something above debug (curious solution as far as I'm concerned...) public static URI create(String uriString) throws ModelException { if (log.isDebugEnabled()) { // check URI: applying strict and not 100% correct URI validation try { new java.net.URI(uriString); } catch (URISyntaxException e) { throw new ModelException(e); } } return new URIImpl(uriString); } Antoni Mylka ant...@df... |