public static String mapDynamicURI(String uri) { // Jena2 -> Jena3 transition if ( uri.startsWith("http://jena.hpl.hp.com/ARQ") ) { String newURI = uri.replace("http://jena.hpl.hp.com/", "http://jena.apache.org/") ; Log.warnOnce(MappedLoader.class, "Loading function or property function with old style 'jena.hpl.hp.com' used - preferred style is to use 'jena.apache.org': "+uri+ " => "+newURI, uri) ; } Map.Entry<String, String> e = find(uri); if (e == null) { if (uri.startsWith(ARQConstants.javaClassURIScheme)) return uri; return null; } String k = e.getKey(); String v = e.getValue(); uri = uri.substring(k.length()); uri = v + uri; return uri; }
private static Class<?> loadClassNamedBy( Statement s ) { String x = getString( s ) ; // Jena2 -> Jena3 transition if ( x.startsWith("com.hp.hpl.jena") ) { String x1 = x.replaceFirst("com.hp.hpl.jena", "org.apache.jena") ; Log.warnOnce(AssemblerHelp.class, "ja:loadClass: Migration to Jena3: Converting "+x+" to "+x1, x) ; x = x1 ; } try { return Class.forName(x); } catch (Exception e) { throw new JenaException( e ); } }
private static Class<?> loadClassNamedBy( Statement s ) { String x = getString( s ) ; // Jena2 -> Jena3 transition if ( x.startsWith("com.hp.hpl.jena") ) { String x1 = x.replaceFirst("com.hp.hpl.jena", "org.apache.jena") ; Log.warnOnce(AssemblerHelp.class, "ja:loadClass: Migration to Jena3: Converting "+x+" to "+x1, x) ; x = x1 ; } try { return Class.forName(x); } catch (Exception e) { throw new JenaException( e ); } }