Package com.clarkparsia.empire.ds

Examples of com.clarkparsia.empire.ds.DataSourceException


            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);
        }
    }
View Full Code Here


                    try {
                        aReader.read(theModel, new FileInputStream(aFile.trim()), theBase);
                    }
                    catch (Exception exc) {
                        throw new DataSourceException("Cannot parse local files", e);
                    }
                }
            }
        }
    }
View Full Code Here

            }
            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);
        }
    }
View Full Code Here

            try {
              aReader.read(aModel, new FileInputStream(aFile.trim()), "");
            }
            catch (Exception exc) {
              throw new DataSourceException(e);
            }
          }
        }
      }
    }
View Full Code Here

      mConnection.add(theGraph);
    }
    catch (RepositoryException e) {
      rollback();

      throw new DataSourceException(e);
    }
  }
View Full Code Here

    try {
      mConnection.remove(theGraph);
    }
    catch (RepositoryException e) {
      throw new DataSourceException(e);
    }
  }
View Full Code Here

    try {
      mConnection.add(theGraph, mConnection.getValueFactory().createURI(theGraphURI.toString()));
    }
    catch (RepositoryException e) {
      throw new DataSourceException(e);
    }
  }
View Full Code Here

      Resource aContext = mConnection.getValueFactory().createURI(theGraphURI.toString());

      mConnection.remove(mConnection.getStatements(null, null, null, true, aContext), aContext);
    }
    catch (RepositoryException e) {
      throw new DataSourceException(e);
    }
  }
View Full Code Here

    try {
      mConnection.remove(theGraph, mConnection.getValueFactory().createURI(theGraphURI.toString()));
    }
    catch (RepositoryException e) {
      throw new DataSourceException(e);
    }
  }
View Full Code Here

    try {
      mConnection.commit();
    }
    catch (RepositoryException e) {
      throw new DataSourceException(e);
    }
  }
View Full Code Here

TOP

Related Classes of com.clarkparsia.empire.ds.DataSourceException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.