protected StatementBase( ModelCom model ) { if (model == null) throw new JenaException( "Statement models must no be null" ); this.model = model; }
@Override public String toString() { String parent = super.toString(); String frame = frameStrings(); return frame.equals( "" ) ? parent : parent + "\n doing:\n" + frame; }
} catch (JenaException ex) LoggerFactory.getLogger(LocationMapper.class).warn("Error in configuration file: "+ex.getMessage()) ;
catch (JenaException ex) ex.printStackTrace(System.err) ;
} catch (JenaException ex) if ( ! ( ex.getCause() instanceof MalformedURLException ) ) throw ex ;
return processConfig(model) ; } catch (JenaException ex) { LoggerFactory.getLogger(LocationMapper.class).warn("Error in configuration file: " + ex.getMessage()) ; return new LocationMapper() ;
catch (JenaException ex) ex.printStackTrace(System.err) ;
static private void impossible() { throw new JenaException( "Cannot happen!" ); }
log.warn( "Exception while reading configuration: " + e.getMessage(), e);
ex.printStackTrace() ; throw ex ; } catch (CmdException ex) { throw ex ; }
protected void mustRename( File from, File to ) { if (from.renameTo( to ) == false) throw new JenaException( "could not rename " + from + " to " + to ); }
public void importRdf( File input, TimeZone timeZone, Priority priority, String visibilitySource, User user, Authorizations authorizations ) throws IOException { File inputFile = RdfFileLocator.findBestFile(input); LOGGER.info("Importing file: %s", inputFile.getAbsolutePath()); rdfTripleImportHelper.setFailOnFirstError(failOnFirstError); rdfTripleImportHelper.setDisableWorkQueues(disableWorkQueues); rdfXmlImportHelper.setDisableWorkQueues(disableWorkQueues); if (inputFile.getName().endsWith(".nt")) { importFileRdfTriple(inputFile, timeZone, priority, visibilitySource, user, authorizations); } else { try { importFileRdfXml(inputFile, priority, visibilitySource, user, authorizations); } catch (JenaException ex) { if (ex.getMessage().contains("Content is not allowed in prolog.")) { importFileRdfTriple(inputFile, timeZone, priority, visibilitySource, user, authorizations); } else { throw ex; } } } graph.flush(); }
ex.printStackTrace() ; throw ex ; } catch (CmdException ex) { throw ex ; }
protected IStream(Reader in) { try { this.in = in; eof = (in.read(thisChar, 0, 1) == -1); } catch (IOException e) { throw new JenaException(e); } }
throw new TerminationException(2) ; } catch (JenaException ex) { System.err.println(ex.getMessage()) ; throw new TerminationException(2) ; } catch (Exception ex) {
private int parseInt( String digits ) { try { return Integer.parseInt( digits );} catch (NumberFormatException e) { throw new JenaException( "checkOrdinal fails on " + digits, e ); } }
System.err.println(ex.getMessage()) ; throw new TerminationException(2) ;
public LocatorZip(String zfn) { try { zipFileName = zfn ; zipFile = new ZipFile(zipFileName) ; } catch (IOException ex) { throw new JenaException("Problems accessing "+zfn, ex) ; } }
} catch (JenaException ex) log.warn("Error processing name mapping: "+ex.getMessage()) ; return ; } catch (JenaException ex) log.warn("Error processing prefix mapping: "+ex.getMessage()) ; return ;
public LocatorZip(String zfn) { try { zipFileName = zfn ; zipFile = new ZipFile(zipFileName) ; } catch (IOException ex) { throw new JenaException("Problems accessing "+zipFileName, ex) ; } }