private Resource getRoot() { Model model = getModel() ; return GraphUtils.getResourceByType(model, ConfigVocab.typeConfig) ; }
private static ScriptDesc worker(Model m) { Resource r = GraphUtils.getResourceByType(m, ScriptVocab.ScriptType) ; if ( r == null ) throw new SDBException("Can't find command line description") ; return (ScriptDesc)AssemblerBase.general.open(r) ; }
private static CmdDesc worker(Model m) { Resource r = GraphUtils.getResourceByType(m, ScriptVocab.CommandLineType) ; if ( r == null ) throw new SDBException("Can't find command line description") ; return (CmdDesc)AssemblerBase.general.open(r) ; }
public static StoreDesc read(Model m) { // Does not mind store descriptions or dataset descriptions Resource r = GraphUtils.getResourceByType(m, AssemblerVocab.StoreAssemblerType) ; if ( r == null ) throw new SDBException("Can't find store description") ; return read(r) ; }
private static SDBConnectionDesc worker(Model m) { Resource r = GraphUtils.getResourceByType(m, AssemblerVocab.SDBConnectionAssemblerType) ; if ( r == null ) throw new SDBException("Can't find connection description") ; SDBConnectionDesc desc = (SDBConnectionDesc)AssemblerBase.general.open(r) ; desc.initJDBC() ; return desc ; }