Parent Exception for operations on a {@link DataSource}
9293949596979899
aReader.setProperty("WARN_REDEFINITION_OF_ID","EM_IGNORE"); aReader.read(theModel, theReader, theBase != null ? theBase : ""); } catch (JenaException e) { throw new DataSourceException("There was a Jena error while reading the source", e); } }
127128129130131132133134135136137
try { aReader.read(theModel, new FileInputStream(aFile.trim()), theBase); } catch (Exception exc) { throw new DataSourceException("Cannot parse local files", e); } } } } }
159160161162163164165166167168169170
} else if (theObj instanceof URL) { return new InputStreamReader(((URL) theObj).openStream(), Charsets.UTF_8); } else { throw new DataSourceException("Cannot read from the specified stream objects, it is not a Reader or an InputStream: " + theObj); } } catch (IOException e) { throw new DataSourceException("There was an error opening the reader/inputstream", e); } }
8889909192939495969798
try { aReader.read(aModel, new FileInputStream(aFile.trim()), ""); } catch (Exception exc) { throw new DataSourceException(e); } } } } }
128129130131132133134135
mConnection.add(theGraph); } catch (RepositoryException e) { rollback(); throw new DataSourceException(e); } }
143144145146147148149150
try { mConnection.remove(theGraph); } catch (RepositoryException e) { throw new DataSourceException(e); } }
271272273274275276277278
try { mConnection.add(theGraph, mConnection.getValueFactory().createURI(theGraphURI.toString())); } catch (RepositoryException e) { throw new DataSourceException(e); } }
288289290291292293294295
Resource aContext = mConnection.getValueFactory().createURI(theGraphURI.toString()); mConnection.remove(mConnection.getStatements(null, null, null, true, aContext), aContext); } catch (RepositoryException e) { throw new DataSourceException(e); } }
303304305306307308309310
try { mConnection.remove(theGraph, mConnection.getValueFactory().createURI(theGraphURI.toString())); } catch (RepositoryException e) { throw new DataSourceException(e); } }
333334335336337338339340
try { mConnection.commit(); } catch (RepositoryException e) { throw new DataSourceException(e); } }