/** * Impact the given graph considering the given configuration. The graph * will be populated by the data and actions will be performed on it if any * exist. * * * @param graphConf the graph configuration * @param g the graph * @return the graph which as been build form the configuration * * @throws SLIB_Exception */ public static G load(GraphConf graphConf, G g) throws SLIB_Exception { logger.info("-------------------------------------"); logger.info(" Loading DATA"); logger.info("-------------------------------------"); for (GDataConf dataConf : graphConf.getData()) { populate(dataConf, g); } URIFactory factory = URIFactoryMemory.getSingleton(); GraphActionExecutor.applyActions(factory, graphConf.getActions(), g); return g; }
/** * Build the graph considering the given configuration. * * @param graphConf the graph configuration * @return the graph which as been build form the configuration * * @throws SLIB_Exception */ public static G load(GraphConf graphConf) throws SLIB_Exception { logger.info("Loading Graph " + graphConf.getUri()); G g = createGraph(graphConf.getUri()); return load(graphConf, g); }
GraphConf gconf = new GraphConf(); gconf.setUri(uri); gconf.addGDataConf(gDataConf); gconf.addGAction(gAction);
GraphConf gconf = new GraphConf(); gconf.setUri(uri); gconf.addGDataConf(gDataConf); gconf.addGAction(gAction);
/** * Impact the given graph considering the given configuration. The graph * will be populated by the data and actions will be performed on it if any * exist. * * * @param graphConf the graph configuration * @param g the graph * @return the graph which as been build form the configuration * * @throws SLIB_Exception */ public static G load(GraphConf graphConf, G g) throws SLIB_Exception { logger.info("-------------------------------------"); logger.info(" Loading DATA"); logger.info("-------------------------------------"); for (GDataConf dataConf : graphConf.getData()) { populate(dataConf, g); } URIFactory factory = URIFactoryMemory.getSingleton(); GraphActionExecutor.applyActions(factory, graphConf.getActions(), g); return g; }
/** * Build the graph considering the given configuration. * * @param graphConf the graph configuration * @return the graph which as been build form the configuration * * @throws SLIB_Exception */ public static G load(GraphConf graphConf) throws SLIB_Exception { logger.info("Loading Graph " + graphConf.getUri()); G g = createGraph(graphConf.getUri()); return load(graphConf, g); }