def Main(): cgiEnv = lib_common.ScriptEnvironment() db_fil_nam = cgiEnv.m_entity_id_dict["File"] logging.debug("db_fil_nam=", db_fil_nam) grph = cgiEnv.GetGraph() fil_node = lib_uris.gUriGen.FileUri(db_fil_nam) sqlite_node = sqlite_file.MakeUri(db_fil_nam) grph.add((sqlite_node, lib_common.MakeProp("Storage file"), fil_node)) sqlite.AddNodesTablesViews(grph, sqlite_node, db_fil_nam) cgiEnv.OutCgiRdf("LAYOUT_SPLINE")
def Main(): cgiEnv = lib_common.CgiEnv() dbFilNam = cgiEnv.GetId() # sys.stderr.write("dbFilNam=%s\n"%dbFilNam) grph = cgiEnv.GetGraph() filNode = lib_common.gUriGen.FileUri(dbFilNam ) sqliteNode = sqlite_file.MakeUri(dbFilNam) grph.add( ( sqliteNode, lib_common.MakeProp("Storage file"), filNode ) ) sqlite.AddNodesTablesViews(grph,sqliteNode,dbFilNam) cgiEnv.OutCgiRdf("LAYOUT_SPLINE")