public Object create(Resource type) { Object thing = null ; try { thing = AssemblerUtils.build(assemblerFile, type) ; } catch (ARQException ex) { throw ex; } catch (NotFoundException ex) { throw new CmdException("Not found: "+ex.getMessage()) ; } catch (JenaException ex) { throw ex ; } catch (Exception ex) { throw new CmdException("Error creating", ex) ; } return thing ; } }
public Object create(Resource type) { Object thing = null ; try { thing = AssemblerUtils.build(assemblerFile, type) ; } catch (ARQException ex) { throw ex; } catch (NotFoundException ex) { throw new CmdException("Not found: "+ex.getMessage()) ; } catch (JenaException ex) { throw ex ; } catch (Exception ex) { throw new CmdException("Error creating", ex) ; } return thing ; } }
@Override public Dataset createDataset() { if ( modAssembler.getAssemblerFile() == null ) return null ; try { dataset = (Dataset)modAssembler.create(DatasetAssemblerVocab.tDataset) ; if ( dataset == null ) throw new CmdException("No dataset description found in: "+modAssembler.getAssemblerFile()) ; } catch (CmdException ex) { throw ex ; } catch (ARQException ex) { throw ex; } catch (NotFoundException ex) { throw new CmdException("Not found: "+ex.getMessage()) ; } catch (JenaException ex) { throw ex ; } catch (Exception ex) { throw new CmdException("Error creating dataset", ex) ; } return dataset ; }
@Override public Dataset createDataset() { if ( modAssembler.getAssemblerFile() == null ) return null ; try { dataset = (Dataset)modAssembler.create(DatasetAssemblerVocab.tDataset) ; if ( dataset == null ) throw new CmdException("No dataset description found in: "+modAssembler.getAssemblerFile()) ; } catch (CmdException ex) { throw ex ; } catch (ARQException ex) { throw ex; } catch (NotFoundException ex) { throw new CmdException("Not found: "+ex.getMessage()) ; } catch (JenaException ex) { throw ex ; } catch (Exception ex) { throw new CmdException("Error creating dataset", ex) ; } return dataset ; }