WO2019109556A1 - Cube file creation method, device, storage medium and terminal - Google Patents

Cube file creation method, device, storage medium and terminal Download PDF

Info

Publication number
WO2019109556A1
WO2019109556A1 PCT/CN2018/081041 CN2018081041W WO2019109556A1 WO 2019109556 A1 WO2019109556 A1 WO 2019109556A1 CN 2018081041 W CN2018081041 W CN 2018081041W WO 2019109556 A1 WO2019109556 A1 WO 2019109556A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
key information
cube
target xml
database
Prior art date
Application number
PCT/CN2018/081041
Other languages
French (fr)
Chinese (zh)
Inventor
温善安
邓俊俊
金鑫
谭志杰
陈宝花
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019109556A1 publication Critical patent/WO2019109556A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/33Intelligent editors

Definitions

  • the present application belongs to the field of communications technologies, and in particular, to a method, an apparatus, a storage medium, and a terminal for creating a cube file.
  • Pentaho is currently the most popular open source business intelligence software. It is a workflow-focused BI suite that emphasizes solution-oriented rather than tool components. It brings together a large number of machine learning algorithms that can undertake data mining tasks, including preprocessing data. Classification, regression, clustering, correlation rule analysis, and visualization of data on an interactive interface.
  • the cube files ie data cubes and cube files, are a kind of multi-dimensional matrix, which can encapsulate multi-dimensional metadata from databases or files, which is convenient for users to explore and analyze data sets from multiple angles.
  • the existing technology uses the schema-workbench component of the Pentaho component for development. You need to connect to the database, create a schema file, and then create a cube file, including:
  • the cube file is created, and the save control is selected to save the cube file.
  • the steps are interlocked, the operation process is cumbersome, time-consuming, and inefficient.
  • the salesperson who is not familiar with the schema-workbench component cannot independently create the cube file. .
  • the embodiment of the present invention provides a method, a device, a storage medium, and a terminal for creating a cube file, so as to solve the problem that the prior art is time-consuming and inefficient in creating a cube file.
  • An embodiment of the present application provides a method for creating a cube file, where the method includes:
  • the key information-based save instruction associates and stores the key information and its corresponding field value
  • the key information and its corresponding field values are loaded into the target XML file to generate a cube file.
  • the creation method before the obtaining the creation instruction, before the file index of the cube file to be created is obtained according to the creation instruction, the creation method further includes:
  • a target XML file is generated according to the text format, and the key information is recorded as an editable item on the entry window.
  • the loading the key information and its corresponding field value into the target XML file, and generating the cube file includes:
  • a cube file is generated based on the target XML file.
  • the creating method further includes:
  • the prompt information is output.
  • the entry window includes an Excel file
  • each key information is an editable item, including at least one edit bar.
  • the embodiment of the present application further provides a device for creating a cube file, and the device includes:
  • An editing module configured to acquire a file index of a cube file to be created according to the creation instruction, and output an input window of a key information editing column that includes the cube file according to the file index;
  • An obtaining module configured to obtain, by using the input window, a field value corresponding to the key information input by the creator
  • a storage module configured to associate and store the key information and its corresponding field value based on a save instruction of the key information
  • a generating module configured to load the key information and its corresponding field value into the target XML file to generate a cube file.
  • the creating device further includes:
  • a parsing module for parsing the cube file created by the Schema-workbenth tool to obtain a text format and key information
  • an index generating module configured to generate a target XML file according to the text format, and record the key information as an editable item on the input window.
  • the generating module further includes:
  • a database obtaining unit configured to obtain a fact table in which the field value corresponding to the key information is located, and obtain a database for verification according to the name of the fact table;
  • a verification unit configured to generate a verification instruction based on the database, and verify, according to the verification instruction, whether the content in the target XML file is consistent with the table information recorded in the database;
  • a generating unit configured to generate a cube file based on the target XML file if the content in the target XML file is consistent with the table information recorded in the database;
  • the prompting unit is configured to output prompt information if the content in the target XML file is inconsistent with the table information recorded in the database.
  • the embodiment of the present application further provides one or more non-volatile readable storage media storing computer readable instructions, when the computer readable instructions are executed by one or more processors, such that the one or more The processor performs the following steps:
  • the key information-based save instruction associates and stores the key information and its corresponding field value
  • the key information and its corresponding field values are loaded into the target XML file to generate a cube file.
  • the embodiment of the present application further provides a terminal, where the terminal includes a memory, a processor, and computer readable instructions stored on the memory and executable on the processor, where the processor executes the calculated readable instruction sequence Implement the following steps:
  • the key information-based save instruction associates and stores the key information and its corresponding field value
  • the key information and its corresponding field values are loaded into the target XML file to generate a cube file.
  • FIG. 1 is a first implementation flowchart of a method for creating a cube file according to an embodiment of the present application
  • FIG. 2 is a second implementation flowchart of a method for creating a cube file according to an embodiment of the present application
  • FIG. 3 is a third implementation flowchart of a method for creating a cube file according to an embodiment of the present application
  • FIG. 4 is a structural diagram of a device for creating a cube file according to an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a terminal provided by an embodiment of the present application.
  • FIG. 1 shows a first implementation flow of a method for creating a cube file provided by an embodiment of the present application.
  • the method for creating a cube file is applied to a terminal, including but not limited to a computer, a server, and the like.
  • the method for creating a cube file includes:
  • step S101 when the creation instruction is acquired, the file index of the cube file to be created is acquired according to the creation instruction, and the input window of the key information editing column including the cube file is output according to the file index.
  • the embodiment of the present application replaces the original schema-workbenth component by an editing tool developed by itself.
  • the editing tool works by skipping the creator's operation steps on the schema-workbenth component and directly acquiring the key information in the cube file to be created to automatically generate the cube file.
  • the key information is obtained through a preset entry window.
  • the entry window includes an Excel file; in the Excel file, each key information is an editable item, including at least one edit bar, the edit bar is used to instruct the creator to input the to-be-created The key information of the cube file.
  • the embodiment of the present application first obtains the file index according to the creation instruction.
  • the file index is index information of the cube file to be created, including but not limited to the name of the cube file to be created, key information, target XML file, and the like.
  • the entry window is then output according to the key information to prompt the creator to edit the cube file by filling the edit bar on the window.
  • step S102 a field value corresponding to the key information input by the creator is obtained through the entry window.
  • the fact table, dimension table, aggregation table, etc. of the multidimensional data are stored in the database, belonging to the physical model, and the concepts of the data cube, the dimension, and the metric are logical models.
  • the multidimensional analysis engine must understand the logical model and be able to map to the physical model.
  • the multidimensional data model, the cube file is used to describe this logical model and the mapping to the physical model.
  • the key information is description information of the cube file to the logical model, including but not limited to Dimension dimension information, Hierarchy level information, Level level information, and Measure metric information of the physical model.
  • each key information corresponds to at least one edit field, and the creator inputs information such as Dimension, Level, and Measure corresponding to the cube file to be created on the edit bar as needed.
  • the dimension information is a table name of the database, and is a set of hierarchical Hierarchy.
  • the dimension of one aspect generally corresponds to at least one dimension table (Dimension Table), that is, a table storing dimension data.
  • Dimension Table a dimension table storing dimension data.
  • common dimensions include, but are not limited to, time, region, product, and the like.
  • the contents of the dimension table include but are not limited to fields such as date_tk, year, quarter, month, week, day_of_month, day_of_year, and these fields are the levels below the dimension.
  • the contents of the area dimension table include but are not limited to fields such as region_tk, country, province, city, and district.
  • step S103 the key information and its corresponding field value are associated and stored based on the save instruction of the key information.
  • the save function identifier is provided on the entry window. If the creator finishes editing the key information on the entry window, the save function identifier may be triggered by a specified gesture operation to input a save instruction.
  • the key information on the entry window and the current field value in the corresponding edit field are associated, and then stored in the specified storage medium to save the creator's edit operation.
  • step S104 the key information and its corresponding field value are loaded into the target XML file to generate a cube file.
  • the target XML file is a template file of the cube file to be created, wherein the content of the key information is in a vacant state, to be filled.
  • the embodiment of the present application After detecting that the creator edits a certain key information on the entry window, the embodiment of the present application automatically fills in the field value input by the creator to the corresponding vacancy position in the target XML file. . Iterate through all the key information on the input window and its corresponding field values, and perform the save operation after filling out to generate the cube file.
  • the user inputs the field value StandardDimension in the edit field corresponding to the key information Dimension in the entry window, and enters the field value DIM_RPT_HCPMS_PERIOD in the edit field corresponding to the key information Hierarchy, and the edit column corresponding to the key information level
  • the field values YEAR_ID, QUTER_ID, and MONTH_ID are entered, and are automatically filled in the target XML file.
  • the example is as follows, in which the italic part is the filled field value; finally, the save operation is performed to generate the cube file.
  • the embodiment of the present application can realize the mass production by editing the key information of the cube file through the input window, thereby improving the efficiency of creating the cube file, and only the creator needs to fill in the edit column according to the given format, and does not need to perform other operations.
  • the terminal automatically generates a cube file according to the input key information, thereby automatically creating a cube file; and does not need to load data such as fact table, dimension table, etc. from the database, and save the content in the input window, without additional Caching mechanism.
  • FIG. 2 it is a second implementation flowchart of a method for creating a cube file provided by an embodiment of the present application.
  • a creation instruction When a creation instruction is acquired, the file index of the cube file to be created is obtained according to the creation instruction, and the creation is performed.
  • the method also includes:
  • step S201 the cube file created by the Schema-workbenth tool is parsed to obtain a text format and key information.
  • the created cube file is a historical cube file created by the prior art using the Schema-workbenth tool. Since the cube file follows the format of the XML file, it does not need to be compiled during parsing. It only needs to analyze the code rules of the cube file to get the text format and key information. Alternatively, the XML file can be analyzed and processed using OCR technology.
  • the text format is a grammar rule of a code in a cube file
  • the key information is a description information of a cube file to a logical model, including but not limited to Dimension dimension information of a physical model, Hierarchy level information, Level level information, and Measure metric. information.
  • step S202 a target XML file is generated according to the text format, and the key information is recorded as an editable item on the entry window.
  • the target XML file and the editable item together constitute a file index of the cube file.
  • the key information in the generated target XML file is a vacant state, and is to be filled, thereby obtaining a template file of the cube file, so that the cube file is created without generating the cube file according to the creation step of the Schema-workbenth tool to implement the cube. Batch creation of files.
  • the key information is then recorded as an editable item when editing the cube file, and the editable items define an edit bar which should include key information in the entry window output according to the creation instruction, so that the creator can intuitively edit the key information.
  • Steps S203 to S206 wherein the steps S203 to S206 are the same as the steps S101 to S104 described in the embodiment of the present invention.
  • steps S203 to S206 are the same as the steps S101 to S104 described in the embodiment of the present invention.
  • steps S203 to S206 are the same as the steps S101 to S104 described in the embodiment of the present invention.
  • the embodiment of the present application generates an object XML file and an editable item by parsing an existing cube file, and the editable item is used to define an edit bar on the entry window, thereby realizing completion of the key on the entry window.
  • the editing operation of the information is more intuitive and convenient than the prior art to create a cube file according to the creation process of the Schema-workbenth tool, which improves the experience of the creator.
  • FIG. 3 it is a third implementation flowchart of a method for creating a cube file provided by an embodiment of the present application.
  • the step S104 loads the key information and its corresponding field value into a target XML file to generate a cube file.
  • step S1041 the fact table in which the field value corresponding to the key information is located is obtained, and the database for verification is obtained according to the name of the fact table.
  • the embodiment of the present application may also obtain a fact table storing the field values, and trace the storage path according to the name of the fact table, obtain a database that stores the fact table, and determine a range of the verification.
  • the fact table (Fact Table), that is, the data table, refers to a table that stores data from the business.
  • step S1042 a verification instruction is generated based on the database.
  • the verification instruction is an SQL statement for verifying the accuracy of the target XML file in the database.
  • the embodiment of the present application After obtaining the database, the embodiment of the present application generates an SQL statement based on the database to perform a verification operation on the target XML file.
  • step S1043 it is verified whether the content in the target XML file is consistent with the table information recorded in the database according to the verification instruction.
  • the key information loaded in the target XML file is traversed, and each key information is compared with the table information recorded in the database, and the field value and the table information of the key information are determined. Consistent to verify the accuracy of the target XML file.
  • step S1044 if they match, a cube file is generated based on the target XML file.
  • the save operation is performed to generate a cube file.
  • the creating method further includes:
  • step S1045 if the content in the target XML file does not match the table information recorded in the database, the prompt information is output.
  • the prompt information includes, but is not limited to, a pop-up alert window, and all the key information of the verification failure is displayed through the alert window, and the current cube file creation process is suspended.
  • the accuracy of the key information acquired through the input window is ensured, and the validity of the generated cube file is ensured, which is favorable for eliminating the entry in the entry. Invalid cube file caused by incorrect input on the window.
  • the size of the serial number of each step does not mean the order of execution order, and the order of execution of each step should be determined by its function and internal logic, and should not constitute any implementation process of the embodiment of the present application. limited.
  • FIG. 4 is a structural diagram of a device for creating a cube file according to an embodiment of the present application. For the convenience of description, only parts related to the embodiment of the present application are shown.
  • the device for creating a cube file is used to implement the method for creating a cube file described in the foregoing embodiments of FIG. 1, FIG. 2, and FIG. 3, and may be a software unit and a hardware unit built in the terminal.
  • a unit combining hardware and software, the terminal including but not limited to a computer, a server, and the like.
  • the device for creating a cube file includes:
  • the editing module 41 is configured to acquire a file index of the cube file to be created according to the creation instruction, and output an input window of the key information editing column that includes the cube file according to the file index;
  • the obtaining module 42 is configured to obtain, by using the input window, a field value corresponding to the key information input by the creator;
  • the storage module 43 is configured to associate and store the key information and its corresponding field value based on the save instruction of the key information
  • the generating module 44 is configured to load the key information and its corresponding field value into the target XML file to generate a cube file.
  • the entry window includes an Excel file
  • each key information is an editable item, including at least one edit bar.
  • the creating device further includes:
  • the parsing module 45 is configured to parse the cube file created by the Schema-workbenth tool to obtain a text format and key information;
  • the index generating module 46 is configured to generate a target XML file according to the text format, and record the key information as an editable item on the input window.
  • the generating module 44 further includes:
  • the database obtaining unit 441 is configured to obtain a fact table in which the field value corresponding to the key information is located, and obtain a database for verification according to the name of the fact table;
  • the verification unit 442 is configured to generate a verification instruction based on the database, and verify, according to the verification instruction, whether the content in the target XML file is consistent with the table information recorded in the database;
  • a generating unit 443, configured to generate a cube file based on the target XML file if the content in the target XML file is consistent with the table information recorded in the database;
  • the prompting unit 444 is configured to output prompt information if the content in the target XML file does not match the table information recorded in the database.
  • each module/unit in the embodiment of the present application may be used to implement all the technical solutions in the foregoing method embodiments, and the specific working process may refer to the corresponding process in the foregoing method embodiments, and details are not described herein again. .
  • This embodiment provides one or more non-volatile readable storage media having computer readable instructions stored thereon.
  • the one or more non-transitory readable storage mediums storing computer readable instructions, when executed by one or more processors, causing one or more processors to execute the cube files of embodiment 1. Create a method, to avoid duplication, no longer repeat here.
  • the computer readable instructions when executed by the processor, the functions of the modules/units in the device for creating the cube file in the embodiment 2 are implemented. To avoid repetition, details are not described herein again.
  • non-volatile readable storage media storing computer readable instructions may comprise: any entity or device capable of carrying the computer readable instructions, a recording medium, a USB flash drive, a mobile hard drive, a magnetic Discs, optical discs, computer memories, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier signals, and telecommunications signals.
  • FIG. 5 is a schematic diagram of a terminal according to an embodiment of the present disclosure, where the terminal includes but is not limited to a server and a mobile terminal.
  • the terminal 5 of this embodiment includes a processor 50, a memory 51, and computer readable instructions 52 stored in the memory 51 and executable on the processor 50.
  • the processor 50 executes the computer readable instructions 52 to implement the steps in the foregoing method for creating a cube file, such as steps S101 to S104 shown in FIG. 1 and steps S201 to S206 in the embodiment of FIG. Steps S1041 to S1045 described in the embodiment of FIG. 3; or, when the processor 50 executes the computer readable instructions 52, the functions of the modules/units in the apparatus for creating a cube file are implemented, for example, FIG. The functions of the modules 41 to 46 shown.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present application is applicable to the field of communication technologies and provides a cube file creation method, a device, a storage medium and a terminal. The method comprises: upon acquiring a creation instruction, acquiring a file index of a cube file to be created according to the creation instruction, outputting an entry window comprising a key information edit column of the cube file according to the file index; acquiring field values corresponding to the key information input by the file creator from the entry window; associating and storing the key information and corresponding field values thereof on the basis of a save instruction of the key information; and loading the key information and the corresponding field values thereof into a target XML file to generate a cube file. The present application realizes automated creation of cube files and simplifies operations for a file creator, thereby solving issues in the prior art of slowness and inefficiency during the creation of cube files.

Description

cube文件的创建方法、装置、存储介质及终端Cube file creation method, device, storage medium and terminal
本申请以2017年12月08日提交的申请号为201711291900.6,名称为“cube文件的创建方法、装置、存储介质及终端”的中国发明专利申请为基础,并要求其优先权。This application is based on the Chinese Patent Application No. 201711291900.6, filed on Dec. 8, 2017, entitled "Cube File Creation Method, Apparatus, Storage Medium, and Terminal", and requires priority.
技术领域Technical field
本申请属于通信技术领域,尤其涉及一种cube文件的创建方法、装置、存储介质及终端。The present application belongs to the field of communications technologies, and in particular, to a method, an apparatus, a storage medium, and a terminal for creating a cube file.
背景技术Background technique
Pentaho是目前最流行的开源商务智能软件,是以工作流为核心、强调面向解决方案而非工具组件的BI套件,集合了大量能承担数据挖掘任务的机器学习算法,包括对数据进行预处理、分类、回归、聚类、关联规则分析,以及在交互式界面上可视化数据。其中的cube文件,即数据立方体、立方体文件,是一类多维矩阵,能够将来自数据库或者文件的多维元数据封装起来,方便了用户从多个角度探索和分析数据集。在创建cube文件时,现有技术使用Pentaho组件中的schema-workbench组件来进行开发,需要先连接数据库,创建Schema文件,然后创建cube文件,包括:Pentaho is currently the most popular open source business intelligence software. It is a workflow-focused BI suite that emphasizes solution-oriented rather than tool components. It brings together a large number of machine learning algorithms that can undertake data mining tasks, including preprocessing data. Classification, regression, clustering, correlation rule analysis, and visualization of data on an interactive interface. The cube files, ie data cubes and cube files, are a kind of multi-dimensional matrix, which can encapsulate multi-dimensional metadata from databases or files, which is convenient for users to explore and analyze data sets from multiple angles. When creating a cube file, the existing technology uses the schema-workbench component of the Pentaho component for development. You need to connect to the database, create a schema file, and then create a cube file, including:
1、添加新的cube文件,命名;1. Add a new cube file and name it;
2、添加事实表,命名;2, add the fact table, named;
3、添加一个维度,展开该维度添加维度表数据,修改维度层次属性的名称、设置维度表的主键用于同事实表链接、设置用户使用该cube文件时该层次属性显示的名称;3. Add a dimension, expand the dimension to add dimension table data, modify the name of the dimension hierarchy attribute, set the primary key of the dimension table to be used to link with the fact table, and set the name displayed by the hierarchical attribute when the user uses the cube file;
4、设置维度的相关属性信息,包括给用户看的名称、给程序员看的名称、与事实表链接的字段;4. Set related attribute information of the dimension, including the name given to the user, the name given to the programmer, and the field linked with the fact table;
5、添加层次,设置层次的相关属性信息,比如给用户看的名称、给程序员看的名称、在维度表中选择需要展现的维度属性;5, add a hierarchy, set the relevant attribute information of the hierarchy, such as the name given to the user, the name given to the programmer, and the dimension attribute to be displayed in the dimension table;
6、添加度量,设置度量的相关属性信息,比如给用户查看的名称、给程序员查看的名称、度量聚合方式等。6. Add metrics, set related attribute information of the metric, such as the name to be viewed by the user, the name to be viewed by the programmer, and the metric aggregation method.
至此,cube文件创建完毕,选择save控件保存所述cube文件,各个步骤环环相扣,操作过程繁琐,耗费时间,效率低,不熟悉schema-workbench组件的业务员不能独立地完成cube文件的创建。At this point, the cube file is created, and the save control is selected to save the cube file. The steps are interlocked, the operation process is cumbersome, time-consuming, and inefficient. The salesperson who is not familiar with the schema-workbench component cannot independently create the cube file. .
发明内容Summary of the invention
本申请实施例提供了一种cube文件的创建方法、装置、存储介质及终端,以解决现有技术在创建cube文件时耗费时间、效率低的问题。The embodiment of the present invention provides a method, a device, a storage medium, and a terminal for creating a cube file, so as to solve the problem that the prior art is time-consuming and inefficient in creating a cube file.
本申请实施例提供了一种cube文件的创建方法,所述方法包括:An embodiment of the present application provides a method for creating a cube file, where the method includes:
获取创建指令时,根据所述创建指令获取待创建的cube文件的文件索引,根据所述文件索引输出包含所述cube文件的关键信息编辑栏的录入窗口;Obtaining a file index of the cube file to be created according to the creation instruction, and outputting an input window of the key information editing column including the cube file according to the file index;
通过所述录入窗口获取创建者输入的所述关键信息对应的字段值;Obtaining, by the entry window, a field value corresponding to the key information input by the creator;
基于关键信息的保存指令关联并存储所述关键信息及其对应的字段值;The key information-based save instruction associates and stores the key information and its corresponding field value;
将所述关键信息及其对应的字段值载入目标XML文件中,生成cube文件。The key information and its corresponding field values are loaded into the target XML file to generate a cube file.
进一步地,在获取创建指令时,根据所述创建指令获取待创建的cube文件的文件索引之前,所述创建方法还包括:Further, before the obtaining the creation instruction, before the file index of the cube file to be created is obtained according to the creation instruction, the creation method further includes:
解析Schema-workbenth工具已创建的cube文件,得到文本格式和关键信息;Parse the cube file created by the Schema-workbenth tool to get the text format and key information;
按照所述文本格式生成目标XML文件,并记录所述关键信息为录入窗口上的可编辑项。A target XML file is generated according to the text format, and the key information is recorded as an editable item on the entry window.
进一步地,所述将所述关键信息及其对应的字段值载入目标XML文件中,生成cube文件包括:Further, the loading the key information and its corresponding field value into the target XML file, and generating the cube file includes:
获取所述关键信息对应的字段值所在的事实表,根据事实表的名称获取用于校验的数据库;Obtaining a fact table in which the field value corresponding to the key information is located, and obtaining a database for verification according to the name of the fact table;
基于所述数据库生成校验指令;Generating a verification instruction based on the database;
根据所述校验指令校验所述目标XML文件中的内容与所述数据库中记录的表信息是否一致;Verifying, according to the verification instruction, whether the content in the target XML file is consistent with the table information recorded in the database;
若一致时,基于所述目标XML文件生成cube文件。If they are consistent, a cube file is generated based on the target XML file.
进一步地,所述创建方法还包括:Further, the creating method further includes:
若所述目标XML文件中的内容与数据库中记录的表信息不一致时,输出提示信息。If the content in the target XML file does not match the table information recorded in the database, the prompt information is output.
进一步地,所述录入窗口中包括Excel文件;Further, the entry window includes an Excel file;
在所述Excel文件中,每一种关键信息为一个可编辑项,包括至少一个编辑栏。In the Excel file, each key information is an editable item, including at least one edit bar.
本申请实施例还提供了一种cube文件的创建装置,所述装置包括:The embodiment of the present application further provides a device for creating a cube file, and the device includes:
编辑模块,用于获取创建指令时,根据所述创建指令获取待创建的cube文件的文件索引,根据所述文件索引输出包含所述cube文件的关键信息编辑栏的录入窗口;An editing module, configured to acquire a file index of a cube file to be created according to the creation instruction, and output an input window of a key information editing column that includes the cube file according to the file index;
获取模块,用于通过所述录入窗口获取创建者输入的所述关键信息对应的字段值;An obtaining module, configured to obtain, by using the input window, a field value corresponding to the key information input by the creator;
存储模块,用于基于关键信息的保存指令关联并存储所述关键信息及其对应的字段值;a storage module, configured to associate and store the key information and its corresponding field value based on a save instruction of the key information;
生成模块,用于将所述关键信息及其对应的字段值载入目标XML文件中,生成cube文件。And a generating module, configured to load the key information and its corresponding field value into the target XML file to generate a cube file.
进一步地,所述创建装置还包括:Further, the creating device further includes:
解析模块,用于解析Schema-workbenth工具已创建的cube文件,得到文本格式和关键信息;A parsing module for parsing the cube file created by the Schema-workbenth tool to obtain a text format and key information;
索引生成模块,用于按照所述文本格式生成目标XML文件,并记录所述关键信息为录入窗口上的可编辑项。And an index generating module, configured to generate a target XML file according to the text format, and record the key information as an editable item on the input window.
进一步地,所述生成模块还包括:Further, the generating module further includes:
数据库获取单元,用于获取所述关键信息对应的字段值所在的事实表,根据事实表的名称获取用于校验的数据库;a database obtaining unit, configured to obtain a fact table in which the field value corresponding to the key information is located, and obtain a database for verification according to the name of the fact table;
校验单元,用于基于所述数据库生成校验指令,根据所述校验指令校验所述目标XML文件中的内容与所述数据库中记录的表信息是否一致;a verification unit, configured to generate a verification instruction based on the database, and verify, according to the verification instruction, whether the content in the target XML file is consistent with the table information recorded in the database;
生成单元,用于若所述目标XML文件中的内容与所述数据库中记录的表信息一致时,基于所述目标XML文件生成cube文件;a generating unit, configured to generate a cube file based on the target XML file if the content in the target XML file is consistent with the table information recorded in the database;
提示单元,用于若所述目标XML文件中的内容与数据库中记录的表信息不一致时,输出提示信息。The prompting unit is configured to output prompt information if the content in the target XML file is inconsistent with the table information recorded in the database.
本申请实施例还提供了一个或多个存储有计算机可读指令的非易失性可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行如下步骤:The embodiment of the present application further provides one or more non-volatile readable storage media storing computer readable instructions, when the computer readable instructions are executed by one or more processors, such that the one or more The processor performs the following steps:
获取创建指令时,根据所述创建指令获取待创建的cube文件的文件索引,根据所述文件索引输出包含所述cube文件的关键信息编辑栏的录入窗口;Obtaining a file index of the cube file to be created according to the creation instruction, and outputting an input window of the key information editing column including the cube file according to the file index;
通过所述录入窗口获取创建者输入的所述关键信息对应的字段值;Obtaining, by the entry window, a field value corresponding to the key information input by the creator;
基于关键信息的保存指令关联并存储所述关键信息及其对应的字段值;The key information-based save instruction associates and stores the key information and its corresponding field value;
将所述关键信息及其对应的字段值载入目标XML文件中,生成cube文件。The key information and its corresponding field values are loaded into the target XML file to generate a cube file.
本申请实施例还提供了一种终端,所述终端包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机可读指令,所述处理器执行所述计算可读指令序时实现如下步骤:The embodiment of the present application further provides a terminal, where the terminal includes a memory, a processor, and computer readable instructions stored on the memory and executable on the processor, where the processor executes the calculated readable instruction sequence Implement the following steps:
获取创建指令时,根据所述创建指令获取待创建的cube文件的文件索引,根据所述文件索引输出包含所述cube文件的关键信息编辑栏的录入窗口;Obtaining a file index of the cube file to be created according to the creation instruction, and outputting an input window of the key information editing column including the cube file according to the file index;
通过所述录入窗口获取创建者输入的所述关键信息对应的字段值;Obtaining, by the entry window, a field value corresponding to the key information input by the creator;
基于关键信息的保存指令关联并存储所述关键信息及其对应的字段值;The key information-based save instruction associates and stores the key information and its corresponding field value;
将所述关键信息及其对应的字段值载入目标XML文件中,生成cube文件。The key information and its corresponding field values are loaded into the target XML file to generate a cube file.
本申请的一个或多个实施例的细节在下面的附图及描述中提出。本申请的其他特征和优点将从说明书、附图以及权利要求书变得明显。Details of one or more embodiments of the present application are set forth in the accompanying drawings and description below. Other features and advantages of the present invention will be apparent from the description, drawings and claims.
附图说明DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings to be used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present application, and other drawings can be obtained according to the drawings without any creative work for those skilled in the art.
图1是本申请实施例提供的cube文件的创建方法的第一实现流程图;1 is a first implementation flowchart of a method for creating a cube file according to an embodiment of the present application;
图2是本申请实施例提供的cube文件的创建方法的第二实现流程图;2 is a second implementation flowchart of a method for creating a cube file according to an embodiment of the present application;
图3是本申请实施例提供的cube文件的创建方法的第三实现流程图;3 is a third implementation flowchart of a method for creating a cube file according to an embodiment of the present application;
图4是本申请实施例提供的cube文件的创建装置的组成结构图;4 is a structural diagram of a device for creating a cube file according to an embodiment of the present application;
图5是本申请实施例提供的终端的示意图。FIG. 5 is a schematic diagram of a terminal provided by an embodiment of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
实施例1Example 1
图1示出了本申请实施例提供的cube文件的创建方法的第一实现流程。FIG. 1 shows a first implementation flow of a method for creating a cube file provided by an embodiment of the present application.
在本申请实施例中,所述cube文件的创建方法应用于终端,包括但不限于计算机、服务器等。In the embodiment of the present application, the method for creating a cube file is applied to a terminal, including but not limited to a computer, a server, and the like.
参阅图1,所述cube文件的创建方法包括:Referring to FIG. 1, the method for creating a cube file includes:
在步骤S101中,获取创建指令时,根据所述创建指令获取待创建的cube文件的文件索引,根据所述文件索引输出包含所述cube文件的关键信息编辑栏的录入窗口。In step S101, when the creation instruction is acquired, the file index of the cube file to be created is acquired according to the creation instruction, and the input window of the key information editing column including the cube file is output according to the file index.
本申请实施例通过自助开发的一个编辑工具,来替换原有的schema-workbenth组件。所述编辑工具的工作原理是跳过创建者在schema-workbenth组件上的操作步骤,直接获取待创建的cube文件中的关键信 息自动生成cube文件。其中,所述关键信息通过预设的录入窗口获得。可选地,所述录入窗口中包括Excel文件;在所述Excel文件中,每一种关键信息为一个可编辑项,包括至少一个编辑栏,所述编辑栏用于指示创建者输入待创建的cube文件的关键信息。与现有技术不同,每当获取到cube文件的创建指令时,本申请实施例首先根据所述创建指令获取文件索引。所述文件索引为待创建的cube文件的索引信息,包括但不限于待创建的cube文件的名称、关键信息、目标XML文件等。然后根据所述关键信息输出录入窗口,以提示创建者通过填充窗口上的编辑栏对所述cube文件进行编辑。The embodiment of the present application replaces the original schema-workbenth component by an editing tool developed by itself. The editing tool works by skipping the creator's operation steps on the schema-workbenth component and directly acquiring the key information in the cube file to be created to automatically generate the cube file. The key information is obtained through a preset entry window. Optionally, the entry window includes an Excel file; in the Excel file, each key information is an editable item, including at least one edit bar, the edit bar is used to instruct the creator to input the to-be-created The key information of the cube file. Different from the prior art, when the creation instruction of the cube file is obtained, the embodiment of the present application first obtains the file index according to the creation instruction. The file index is index information of the cube file to be created, including but not limited to the name of the cube file to be created, key information, target XML file, and the like. The entry window is then output according to the key information to prompt the creator to edit the cube file by filling the edit bar on the window.
在步骤S102中,通过所述录入窗口获取创建者输入的所述关键信息对应的字段值。In step S102, a field value corresponding to the key information input by the creator is obtained through the entry window.
在这里,多维数据的事实表、维表、聚集表等存储于数据库中,属于物理模型,而数据立方体、维度、度量这些概念属于逻辑模型。多维分析引擎必须要理解逻辑模型,并能够映射到物理模型上。多维数据的模式,即cube文件,就是用来描述这个逻辑模型以及到物理模型的映射。在本申请实施例中,所述关键信息为cube文件对逻辑模型的描述信息,包括但不限于物理模型的Dimension维度信息、Hierarchy层次信息、Level级别信息、Measure度量信息。在所述录入窗口上,每一个关键信息对应至少一个编辑栏,创建者按需在所述编辑栏上输入待创建的cube文件对应的Dimension、Level、Measure等信息。其中,所述维度信息为数据库的表名,是一个层次Hierarchy的集合。一个方面的维度一般对应至少一个维度表(Dimension Table),即存储维度数据的表。示例性地,常见的维度包括但不限于时间、区域、产品等。以时间维度为例,维度表的内容包括但不限于date_tk、year、quarter、month、week、day_of_month、day_of_year等字段,而这些字段就是维度下面的层次。区域维度表的内容包括但不限于region_tk、country、province、city、district等字段。Here, the fact table, dimension table, aggregation table, etc. of the multidimensional data are stored in the database, belonging to the physical model, and the concepts of the data cube, the dimension, and the metric are logical models. The multidimensional analysis engine must understand the logical model and be able to map to the physical model. The multidimensional data model, the cube file, is used to describe this logical model and the mapping to the physical model. In the embodiment of the present application, the key information is description information of the cube file to the logical model, including but not limited to Dimension dimension information, Hierarchy level information, Level level information, and Measure metric information of the physical model. On the entry window, each key information corresponds to at least one edit field, and the creator inputs information such as Dimension, Level, and Measure corresponding to the cube file to be created on the edit bar as needed. The dimension information is a table name of the database, and is a set of hierarchical Hierarchy. The dimension of one aspect generally corresponds to at least one dimension table (Dimension Table), that is, a table storing dimension data. Illustratively, common dimensions include, but are not limited to, time, region, product, and the like. Taking the time dimension as an example, the contents of the dimension table include but are not limited to fields such as date_tk, year, quarter, month, week, day_of_month, day_of_year, and these fields are the levels below the dimension. The contents of the area dimension table include but are not limited to fields such as region_tk, country, province, city, and district.
在步骤S103中,基于关键信息的保存指令关联并存储所述关键信息及其对应的字段值。In step S103, the key information and its corresponding field value are associated and stored based on the save instruction of the key information.
在本申请实施例中,所述录入窗口上提供了保存功能标识。若创建者在所述录入窗口上完成对关键信息的编辑后,可通过指定的手势操作触发所述保存功能标识以输入保存指令。In the embodiment of the present application, the save function identifier is provided on the entry window. If the creator finishes editing the key information on the entry window, the save function identifier may be triggered by a specified gesture operation to input a save instruction.
在获取到保存指令时,所述录入窗口上的关键信息及其对应的编辑栏内当前的字段值将被关联起来,然后存储至指定存储介质中,以保存创建者的编辑操作。When the save instruction is obtained, the key information on the entry window and the current field value in the corresponding edit field are associated, and then stored in the specified storage medium to save the creator's edit operation.
在步骤S104中,将所述关键信息及其对应的字段值载入目标XML文件中,生成cube文件。In step S104, the key information and its corresponding field value are loaded into the target XML file to generate a cube file.
在这里,所述目标XML文件为所述待创建的cube文件的模板文件,其中的关键信息的内容处于空缺状态,待填充。当检测到创建者在所述录入窗口上对某个关键信息进行编辑后,本申请实施例则将所述创建者所输入的字段值,自动填写到所述目标XML文件中对应的空缺位置上。遍历录入窗口上所有的关键信息及其对应的字段值,并在填写完后执行保存操作,生成cube文件。Here, the target XML file is a template file of the cube file to be created, wherein the content of the key information is in a vacant state, to be filled. After detecting that the creator edits a certain key information on the entry window, the embodiment of the present application automatically fills in the field value input by the creator to the corresponding vacancy position in the target XML file. . Iterate through all the key information on the input window and its corresponding field values, and perform the save operation after filling out to generate the cube file.
示例性地,假设检测到用户在录入窗口中往关键信息Dimension对应的编辑栏中输入了字段值StandardDimension,往关键信息Hierarchy对应的编辑栏中输入了字段值DIM_RPT_HCPMS_PERIOD,往关键信息Level对应的编辑栏中输入了字段值YEAR_ID、QUTER_ID、MONTH_ID,则自动填写到目标XML文件中,示例如下,其中斜体部分为填充的字段值;最后执行保存操作生成cube文件。Exemplarily, it is assumed that the user inputs the field value StandardDimension in the edit field corresponding to the key information Dimension in the entry window, and enters the field value DIM_RPT_HCPMS_PERIOD in the edit field corresponding to the key information Hierarchy, and the edit column corresponding to the key information level The field values YEAR_ID, QUTER_ID, and MONTH_ID are entered, and are automatically filled in the target XML file. The example is as follows, in which the italic part is the filled field value; finally, the save operation is performed to generate the cube file.
<Dimension type="StandardDimension"visible="true"highCardinality="false"name="DIM_RPT_HCPMS_PERIOD"><Dimension type="StandardDimension"visible="true"highCardinality="false"name="DIM_RPT_HCPMS_PERIOD">
<Hierarchyname="DIM_RPT_HCPMS_PERIOD"visible="true"hasAll="true"primaryKey="PERIOD_ID"caption="&#26085;&#26399;&#32500;"><Hierarchyname="DIM_RPT_HCPMS_PERIOD"visible="true"hasAll="true"primaryKey="PERIOD_ID"caption="&#26085;&#26399;&#32500;">
<Table name="RPT_HCPMS_PERIOD_V_D"><Table name="RPT_HCPMS_PERIOD_V_D">
</Table></Table>
<Levelname="YEAR_ID"visible="true"column="YEAR_ID"<Levelname="YEAR_ID"visible="true"column="YEAR_ID"
nameColumn="YEAR_NAME"type="String"uniqueMembers="false"levelType="R egular"hideMemberIf="Never"caption="&#24180;">nameColumn="YEAR_NAME"type="String"uniqueMembers="false"levelType="R egular"hideMemberIf="Never"caption="&#24180;">
</Level></Level>
<Levelname="QUTER_ID"visible="true"column="QUTER_ID"nameColumn="QUTER_NAME"type="String"uniqueMembers="false"levelType="Regular"hideMemberIf="Never"caption="&#23395;&#24230;"><Levelname="QUTER_ID"visible="true"column="QUTER_ID"nameColumn="QUTER_NAME"type="String"uniqueMembers="false"levelType="Regular"hideMemberIf="Never"caption="&#23395;&# 24230;">
</Level></Level>
<Levelname="MONTH_ID"visible="true"column="MONTH_ID"nameColumn="MONTH_NAME"type="String"uniqueMembers="false"levelType="Regular"hideMemberIf="Never"caption="&#26376;&#20221;"><Levelname="MONTH_ID"visible="true"column="MONTH_ID"nameColumn="MONTH_NAME"type="String"uniqueMembers="false"levelType="Regular"hideMemberIf="Never"caption="&#26376;&# 20221;">
</Level></Level>
</Hierarchy></Hierarchy>
</Dimension></Dimension>
综上所述,本申请实施例通过录入窗口编辑cube文件的关键信息,可以实现批量生产,提高了cube文件创建的效率,仅需创建者按照给定的格式填写编辑栏,不需要做其他操作;终端自动根据输入的关键信息执行填充操作生成cube文件,从而实现了自动化创建cube文件;且不需要从数据库中加载比如事实表、维表等数据,保存录入窗口中的内容即可,无需额外的缓存机制。In summary, the embodiment of the present application can realize the mass production by editing the key information of the cube file through the input window, thereby improving the efficiency of creating the cube file, and only the creator needs to fill in the edit column according to the given format, and does not need to perform other operations. The terminal automatically generates a cube file according to the input key information, thereby automatically creating a cube file; and does not need to load data such as fact table, dimension table, etc. from the database, and save the content in the input window, without additional Caching mechanism.
进一步地,基于图1提供的cube文件的创建方法的第一实现流程的基础上,提出本申请实施例提供的cube文件的创建方法的第二实现流程。Further, based on the first implementation flow of the method for creating a cube file provided in FIG. 1 , a second implementation flow of the method for creating a cube file provided by the embodiment of the present application is proposed.
如图2所示,是本申请实施例提供的cube文件的创建方法的第二实现流程图,在获取创建指令时,根据所述创建指令获取待创建的cube文件的文件索引之前,所述创建方法还包括:As shown in FIG. 2, it is a second implementation flowchart of a method for creating a cube file provided by an embodiment of the present application. When a creation instruction is acquired, the file index of the cube file to be created is obtained according to the creation instruction, and the creation is performed. The method also includes:
在步骤S201中,解析Schema-workbenth工具已创建的cube文件,得到文本格式和关键信息。In step S201, the cube file created by the Schema-workbenth tool is parsed to obtain a text format and key information.
在这里,所述已创建的cube文件为现有技术使用Schema-workbenth工具创建的历史cube文件。由于cube文件遵循XML文件的格式,在解析时无需编译,只需要分析cube文件的代码规则来得到文本格式和关键信息。可选地,可 以使用OCR技术,对XML文件进行分析处理。其中,所述文本格式为cube文件中代码的语法规则,所述关键信息为cube文件对逻辑模型的描述信息,包括但不限于物理模型的Dimension维度信息、Hierarchy层次信息、Level级别信息、Measure度量信息。Here, the created cube file is a historical cube file created by the prior art using the Schema-workbenth tool. Since the cube file follows the format of the XML file, it does not need to be compiled during parsing. It only needs to analyze the code rules of the cube file to get the text format and key information. Alternatively, the XML file can be analyzed and processed using OCR technology. The text format is a grammar rule of a code in a cube file, and the key information is a description information of a cube file to a logical model, including but not limited to Dimension dimension information of a physical model, Hierarchy level information, Level level information, and Measure metric. information.
在步骤S202中,按照所述文本格式生成目标XML文件,并记录所述关键信息为录入窗口上的可编辑项。In step S202, a target XML file is generated according to the text format, and the key information is recorded as an editable item on the entry window.
在本申请实施例中,所述目标XML文件和可编辑项共同构成了该cube文件的文件索引。其中,所生成的目标XML文件中的关键信息为空缺状态,待填充,从而得到cube文件的模板文件,使得在创建cube文件时无需按照Schema-workbenth工具的创建步骤来生成cube文件,以实现cube文件的批量创建。然后记录所述关键信息作为编辑所述cube文件时的可编辑项,这些可编辑项定义了根据创建指令输出的录入窗口中应当包括哪些关键信息的编辑栏,使得创建者可以直观地编辑关键信息,以实现cube文件的批量编辑。In the embodiment of the present application, the target XML file and the editable item together constitute a file index of the cube file. The key information in the generated target XML file is a vacant state, and is to be filled, thereby obtaining a template file of the cube file, so that the cube file is created without generating the cube file according to the creation step of the Schema-workbenth tool to implement the cube. Batch creation of files. The key information is then recorded as an editable item when editing the cube file, and the editable items define an edit bar which should include key information in the entry window output according to the creation instruction, so that the creator can intuitively edit the key information. To achieve batch editing of cube files.
步骤S203至步骤S206,其中,步骤S203至步骤S206与图1实施例中所述的步骤S101至步骤S104相同,具体请参见上述实施例的叙述,此处不再赘述。Steps S203 to S206, wherein the steps S203 to S206 are the same as the steps S101 to S104 described in the embodiment of the present invention. For details, refer to the description of the foregoing embodiment, and details are not described herein again.
在这里,本申请实施例通过解析已有的cube文件,并生成目标XML文件和可编辑项,所述可编辑项用于定义录入窗口上的编辑栏,从而实现了在录入窗口上完成对关键信息的编辑操作,相比于现有技术按照Schema-workbenth工具的创建流程创建cube文件的操作,更加直观且便捷,提升了创建者的体验感。Here, the embodiment of the present application generates an object XML file and an editable item by parsing an existing cube file, and the editable item is used to define an edit bar on the entry window, thereby realizing completion of the key on the entry window. The editing operation of the information is more intuitive and convenient than the prior art to create a cube file according to the creation process of the Schema-workbenth tool, which improves the experience of the creator.
进一步地,基于图1提供的cube文件的创建方法的第一实现流程的基础上,提出本申请实施例提供的cube文件的创建方法的第三实现流程。Further, based on the first implementation flow of the method for creating a cube file provided in FIG. 1 , a third implementation flow of the method for creating a cube file provided by the embodiment of the present application is proposed.
如图3所示,是本申请实施例提供的cube文件的创建方法的第三实现流程图,所述步骤S104将所述关键信息及其对应的字段值载入目标XML文件中,生成cube文件包括:As shown in FIG. 3, it is a third implementation flowchart of a method for creating a cube file provided by an embodiment of the present application. The step S104 loads the key information and its corresponding field value into a target XML file to generate a cube file. include:
在步骤S1041中,获取所述关键信息对应的字段值所在的事实表,根据事实表的名称获取用于校验的数据库。In step S1041, the fact table in which the field value corresponding to the key information is located is obtained, and the database for verification is obtained according to the name of the fact table.
在这里,将字段值载入目标XML文件后,执行保存操作即可得到可让报表识别的cube文件。本申请实施例还可以获取存储这些字段值的事实表,并根据事实表的名称追溯其存储路径,得到保存所述事实表的数据库,确定校验的范围。其中,所述事实表(Fact Table),即数据表,是指存储来自业务的数据的表。Here, after loading the field value into the target XML file, you can save the operation to get the cube file that can be recognized by the report. The embodiment of the present application may also obtain a fact table storing the field values, and trace the storage path according to the name of the fact table, obtain a database that stores the fact table, and determine a range of the verification. The fact table (Fact Table), that is, the data table, refers to a table that stores data from the business.
在步骤S1042中,基于所述数据库生成校验指令。In step S1042, a verification instruction is generated based on the database.
在这里,所述校验指令为SQL语句,用于在所述数据库中校验目标XML文件的准确性。本申请实施例在获取到数据库之后,基于所述数据库生成SQL语句,以执行对所述目标XML文件的校验操作。Here, the verification instruction is an SQL statement for verifying the accuracy of the target XML file in the database. After obtaining the database, the embodiment of the present application generates an SQL statement based on the database to perform a verification operation on the target XML file.
在步骤S1043中,根据所述校验指令校验所述目标XML文件中的内容与所述数据库中记录的表信息是否一致。In step S1043, it is verified whether the content in the target XML file is consistent with the table information recorded in the database according to the verification instruction.
在执行所述校验指令时,遍历目标XML文件中载入的关键信息,针对每一个关键信息,与所述数据库中记录的表信息进行比对,判断所述关键信息的字段值与表信息是否一致,以校验所述目标XML文件的准确性。When the verification instruction is executed, the key information loaded in the target XML file is traversed, and each key information is compared with the table information recorded in the database, and the field value and the table information of the key information are determined. Consistent to verify the accuracy of the target XML file.
在步骤S1044中,若一致时,基于所述目标XML文件生成cube文件。In step S1044, if they match, a cube file is generated based on the target XML file.
若所述目标XML文件中的关键信息与所述数据库中记录的表信息均一致时,表明所述目标XML文件中的关键信息是正确的,则执行保存操作,生成cube文件。If the key information in the target XML file is consistent with the table information recorded in the database, indicating that the key information in the target XML file is correct, the save operation is performed to generate a cube file.
可选地,所述创建方法还包括:Optionally, the creating method further includes:
在步骤S1045中,若所述目标XML文件中的内容与数据库中记录的表信息不一致时,输出提示信息。In step S1045, if the content in the target XML file does not match the table information recorded in the database, the prompt information is output.
比对的结果中,所述目标XML文件中存在一个或多个关键信息与数据库中记录的表信息不一致时,表明该关键信息对应的字段值不正确,没有可映射的事实表,则输出提示信息。在这里,所述提示信息包括但不限于弹出警示窗 口,通过所述警示窗口展示所有校验失败的关键信息,并暂停当前的cube文件创建进程。In the result of the comparison, if one or more key information in the target XML file is inconsistent with the table information recorded in the database, it indicates that the field value corresponding to the key information is incorrect, and there is no maptable fact table, and the prompt is output. information. Here, the prompt information includes, but is not limited to, a pop-up alert window, and all the key information of the verification failure is displayed through the alert window, and the current cube file creation process is suspended.
本申请实施例通过增加对关键信息的字段值进行校验,保证了通过所述录入窗口获取的关键信息的准确性,保证了所生成的cube文件的有效性,有利于杜绝由于在所述录入窗口上的误输入导致的无效cube文件。In the embodiment of the present application, by verifying the field value of the key information, the accuracy of the key information acquired through the input window is ensured, and the validity of the generated cube file is ensured, which is favorable for eliminating the entry in the entry. Invalid cube file caused by incorrect input on the window.
应理解,在上述实施例中,各步骤的序号的大小并不意味着执行顺序的先后,各步骤的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that, in the foregoing embodiments, the size of the serial number of each step does not mean the order of execution order, and the order of execution of each step should be determined by its function and internal logic, and should not constitute any implementation process of the embodiment of the present application. limited.
实施例2Example 2
图4示出了本申请实施例提供的cube文件的创建装置的组成结构图,为了便于说明,仅示出了与本申请实施例相关的部分。FIG. 4 is a structural diagram of a device for creating a cube file according to an embodiment of the present application. For the convenience of description, only parts related to the embodiment of the present application are shown.
在本申请实施例中,所述cube文件的创建装置用于实现上述图1、图2、图3实施例中所述的cube文件的创建方法,可以是内置于终端的软件单元、硬件单元、软硬件结合的单元,所述终端包括但不限于计算机、服务器等。In the embodiment of the present application, the device for creating a cube file is used to implement the method for creating a cube file described in the foregoing embodiments of FIG. 1, FIG. 2, and FIG. 3, and may be a software unit and a hardware unit built in the terminal. A unit combining hardware and software, the terminal including but not limited to a computer, a server, and the like.
参阅图4,所述cube文件的创建装置包括:Referring to FIG. 4, the device for creating a cube file includes:
编辑模块41,用于获取创建指令时,根据所述创建指令获取待创建的cube文件的文件索引,根据所述文件索引输出包含所述cube文件的关键信息编辑栏的录入窗口;The editing module 41 is configured to acquire a file index of the cube file to be created according to the creation instruction, and output an input window of the key information editing column that includes the cube file according to the file index;
获取模块42,用于通过所述录入窗口获取创建者输入的所述关键信息对应的字段值;The obtaining module 42 is configured to obtain, by using the input window, a field value corresponding to the key information input by the creator;
存储模块43,用于基于关键信息的保存指令关联并存储所述关键信息及其对应的字段值;The storage module 43 is configured to associate and store the key information and its corresponding field value based on the save instruction of the key information;
生成模块44,用于将所述关键信息及其对应的字段值载入目标XML文件中,生成cube文件。The generating module 44 is configured to load the key information and its corresponding field value into the target XML file to generate a cube file.
其中,所述录入窗口中包括Excel文件;Wherein, the entry window includes an Excel file;
在所述Excel文件中,每一种关键信息为一个可编辑项,包括至少一个编辑栏。In the Excel file, each key information is an editable item, including at least one edit bar.
可选地,所述创建装置还包括:Optionally, the creating device further includes:
解析模块45,用于解析Schema-workbenth工具已创建的cube文件,得到文本格式和关键信息;The parsing module 45 is configured to parse the cube file created by the Schema-workbenth tool to obtain a text format and key information;
索引生成模块46,用于按照所述文本格式生成目标XML文件,并记录所述关键信息为录入窗口上的可编辑项。The index generating module 46 is configured to generate a target XML file according to the text format, and record the key information as an editable item on the input window.
可选地,所述生成模块44还包括:Optionally, the generating module 44 further includes:
数据库获取单元441,用于获取所述关键信息对应的字段值所在的事实表,根据事实表的名称获取用于校验的数据库;The database obtaining unit 441 is configured to obtain a fact table in which the field value corresponding to the key information is located, and obtain a database for verification according to the name of the fact table;
校验单元442,用于基于所述数据库生成校验指令,根据所述校验指令校验所述目标XML文件中的内容与所述数据库中记录的表信息是否一致;The verification unit 442 is configured to generate a verification instruction based on the database, and verify, according to the verification instruction, whether the content in the target XML file is consistent with the table information recorded in the database;
生成单元443,用于若所述目标XML文件中的内容与所述数据库中记录的表信息一致时,基于所述目标XML文件生成cube文件;a generating unit 443, configured to generate a cube file based on the target XML file if the content in the target XML file is consistent with the table information recorded in the database;
提示单元444,用于若所述目标XML文件中的内容与数据库中记录的表信息不一致时,输出提示信息。The prompting unit 444 is configured to output prompt information if the content in the target XML file does not match the table information recorded in the database.
需要说明的是,本申请实施例中的各模块/单元可以用于实现上述方法实施例中的全部技术方案,其具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。It should be noted that each module/unit in the embodiment of the present application may be used to implement all the technical solutions in the foregoing method embodiments, and the specific working process may refer to the corresponding process in the foregoing method embodiments, and details are not described herein again. .
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the parts that are not detailed or described in a certain embodiment can be referred to the related descriptions of other embodiments.
实施例3Example 3
本实施例提供一个或多个存储有计算机可读指令的非易失性可读存储介质。该一个或多个存储有计算机可读指令的非易失性可读存储介质,计算机可 读指令被一个或多个处理器执行时,使得一个或多个处理器执行实施例1中cube文件的创建方法,为避免重复,这里不再赘述。或者,该计算机可读指令被处理器执行时实现实施例2中cube文件的创建装置中各模块/单元的功能,为避免重复,这里不再赘述。This embodiment provides one or more non-volatile readable storage media having computer readable instructions stored thereon. The one or more non-transitory readable storage mediums storing computer readable instructions, when executed by one or more processors, causing one or more processors to execute the cube files of embodiment 1. Create a method, to avoid duplication, no longer repeat here. Alternatively, when the computer readable instructions are executed by the processor, the functions of the modules/units in the device for creating the cube file in the embodiment 2 are implemented. To avoid repetition, details are not described herein again.
可以理解地,一个或多个存储有计算机可读指令的非易失性可读存储介质可以包括:能够携带所述计算机可读指令的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号和电信信号等。It will be understood that one or more non-volatile readable storage media storing computer readable instructions may comprise: any entity or device capable of carrying the computer readable instructions, a recording medium, a USB flash drive, a mobile hard drive, a magnetic Discs, optical discs, computer memories, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier signals, and telecommunications signals.
实施例4Example 4
图5是本申请实施例提供的一种终端的示意图,所述终端包括但不限于服务器、移动终端。如图5所示,该实施例的终端5包括:处理器50、存储器51以及存储在所述存储器51中并可在所述处理器50上运行的计算机可读指令52。所述处理器50执行所述计算机可读指令52时实现上述cube文件的创建方法实施例中的步骤,例如图1所示的步骤S101至S104、图2实施例中所述的步骤S201至S206、图3实施例中所述的步骤S1041至S1045;或者,所述处理器50执行所述计算机可读指令52时实现上述cube文件的创建装置实施例中各模块/单元的功能,例如图4所示模块41至46的功能。FIG. 5 is a schematic diagram of a terminal according to an embodiment of the present disclosure, where the terminal includes but is not limited to a server and a mobile terminal. As shown in FIG. 5, the terminal 5 of this embodiment includes a processor 50, a memory 51, and computer readable instructions 52 stored in the memory 51 and executable on the processor 50. The processor 50 executes the computer readable instructions 52 to implement the steps in the foregoing method for creating a cube file, such as steps S101 to S104 shown in FIG. 1 and steps S201 to S206 in the embodiment of FIG. Steps S1041 to S1045 described in the embodiment of FIG. 3; or, when the processor 50 executes the computer readable instructions 52, the functions of the modules/units in the apparatus for creating a cube file are implemented, for example, FIG. The functions of the modules 41 to 46 shown.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still implement the foregoing embodiments. The technical solutions described in the examples are modified or equivalently replaced with some of the technical features; and the modifications or substitutions do not deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in Within the scope of protection of this application.

Claims (20)

  1. 一种cube文件的创建方法,其特征在于,所述创建方法包括:A method for creating a cube file, the method for creating the method includes:
    获取创建指令时,根据所述创建指令获取待创建的cube文件的文件索引,根据所述文件索引输出包含所述cube文件的关键信息编辑栏的录入窗口;Obtaining a file index of the cube file to be created according to the creation instruction, and outputting an input window of the key information editing column including the cube file according to the file index;
    通过所述录入窗口获取创建者输入的所述关键信息对应的字段值;Obtaining, by the entry window, a field value corresponding to the key information input by the creator;
    基于关键信息的保存指令关联并存储所述关键信息及其对应的字段值;The key information-based save instruction associates and stores the key information and its corresponding field value;
    将所述关键信息及其对应的字段值载入目标XML文件中,生成cube文件。The key information and its corresponding field values are loaded into the target XML file to generate a cube file.
  2. 如权利要求1所述的cube文件的创建方法,其特征在于,在获取创建指令时,根据所述创建指令获取待创建的cube文件的文件索引之前,所述创建方法还包括:The method for creating a cube file according to claim 1, wherein the method for creating a file of the cube file to be created is obtained according to the creation instruction, and the method for creating the method further includes:
    解析Schema-workbenth工具已创建的cube文件,得到文本格式和关键信息;Parse the cube file created by the Schema-workbenth tool to get the text format and key information;
    按照所述文本格式生成目标XML文件,并记录所述关键信息为录入窗口上的可编辑项。A target XML file is generated according to the text format, and the key information is recorded as an editable item on the entry window.
  3. 如权利要求1所述的cube文件的创建方法,其特征在于,所述将所述关键信息及其对应的字段值载入目标XML文件中,生成cube文件包括:The method for creating a cube file according to claim 1, wherein the loading the key information and its corresponding field value into a target XML file, and generating a cube file comprises:
    获取所述关键信息对应的字段值所在的事实表,根据事实表的名称获取用于校验的数据库;Obtaining a fact table in which the field value corresponding to the key information is located, and obtaining a database for verification according to the name of the fact table;
    基于所述数据库生成校验指令;Generating a verification instruction based on the database;
    根据所述校验指令校验所述目标XML文件中的内容与所述数据库中记录的表信息是否一致;Verifying, according to the verification instruction, whether the content in the target XML file is consistent with the table information recorded in the database;
    若一致时,基于所述目标XML文件生成cube文件。If they are consistent, a cube file is generated based on the target XML file.
  4. 如权利要求3所述的cube文件的创建方法,其特征在于,所述创建方法还包括:The method for creating a cube file according to claim 3, wherein the creating method further comprises:
    若所述目标XML文件中的内容与数据库中记录的表信息不一致时,输出提示信息。If the content in the target XML file does not match the table information recorded in the database, the prompt information is output.
  5. 如权利要求1至4任一项所述的cube文件的创建方法,其特征在于,所述录入窗口中包括Excel文件;The method for creating a cube file according to any one of claims 1 to 4, wherein the entry window includes an Excel file;
    在所述Excel文件中,每一种关键信息为一个可编辑项,包括至少一个编辑栏。In the Excel file, each key information is an editable item, including at least one edit bar.
  6. 一种cube文件的创建装置,其特征在于,所述装置包括:A device for creating a cube file, characterized in that the device comprises:
    编辑模块,用于获取创建指令时,根据所述创建指令获取待创建的cube文件的文件索引,根据所述文件索引输出包含所述cube文件的关键信息编辑栏的录入窗口;An editing module, configured to acquire a file index of a cube file to be created according to the creation instruction, and output an input window of a key information editing column that includes the cube file according to the file index;
    获取模块,用于通过所述录入窗口获取创建者输入的所述关键信息对应的字段值;An obtaining module, configured to obtain, by using the input window, a field value corresponding to the key information input by the creator;
    存储模块,用于基于关键信息的保存指令关联并存储所述关键信息及其对应的字段值;a storage module, configured to associate and store the key information and its corresponding field value based on a save instruction of the key information;
    生成模块,用于将所述关键信息及其对应的字段值载入目标XML文件中,生成cube文件。And a generating module, configured to load the key information and its corresponding field value into the target XML file to generate a cube file.
  7. 如权利要求6所述的cube文件的创建装置,其特征在于,所述创建装置还包括:The device for creating a cube file according to claim 6, wherein the creating device further comprises:
    解析模块,用于解析Schema-workbenth工具已创建的cube文件,得到文本格式和关键信息;A parsing module for parsing the cube file created by the Schema-workbenth tool to obtain a text format and key information;
    索引生成模块,用于按照所述文本格式生成目标XML文件,并记录所述关键信息为录入窗口上的可编辑项。And an index generating module, configured to generate a target XML file according to the text format, and record the key information as an editable item on the input window.
  8. 如权利要求6所述的cube文件的创建装置,其特征在于,所述生成模块还包括:The device for creating a cube file according to claim 6, wherein the generating module further comprises:
    数据库获取单元,用于获取所述关键信息对应的字段值所在的事实表,根据事实表的名称获取用于校验的数据库;a database obtaining unit, configured to obtain a fact table in which the field value corresponding to the key information is located, and obtain a database for verification according to the name of the fact table;
    校验单元,用于基于所述数据库生成校验指令,根据所述校验指令校验所述目标XML文件中的内容与所述数据库中记录的表信息是否一致;a verification unit, configured to generate a verification instruction based on the database, and verify, according to the verification instruction, whether the content in the target XML file is consistent with the table information recorded in the database;
    生成单元,用于若所述目标XML文件中的内容与所述数据库中记录的表信息一致时,基于所述目标XML文件生成cube文件;a generating unit, configured to generate a cube file based on the target XML file if the content in the target XML file is consistent with the table information recorded in the database;
  9. 如权利要求8所述的cube文件的创建装置,其特征在于,所述生成模块还包括:The device for creating a cube file according to claim 8, wherein the generating module further comprises:
    提示单元,用于若所述目标XML文件中的内容与数据库中记录的表信息不一致时,输出提示信息。The prompting unit is configured to output prompt information if the content in the target XML file is inconsistent with the table information recorded in the database.
  10. 如权利要求6至9任一项所述的cube文件的创建装置,其特征在于,所述录入窗口中包括Excel文件;The apparatus for creating a cube file according to any one of claims 6 to 9, wherein the entry window includes an Excel file;
    在所述Excel文件中,每一种关键信息为一个可编辑项,包括至少一个编辑栏。In the Excel file, each key information is an editable item, including at least one edit bar.
  11. 一个或多个存储有计算机可读指令的非易失性可读存储介质,其特征在于,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行如下步骤:One or more non-transitory readable storage mediums storing computer readable instructions, wherein when the computer readable instructions are executed by one or more processors, cause the one or more processors to execute The following steps:
    获取创建指令时,根据所述创建指令获取待创建的cube文件的文件索引,根据所述文件索引输出包含所述cube文件的关键信息编辑栏的录入窗口;Obtaining a file index of the cube file to be created according to the creation instruction, and outputting an input window of the key information editing column including the cube file according to the file index;
    通过所述录入窗口获取创建者输入的所述关键信息对应的字段值;Obtaining, by the entry window, a field value corresponding to the key information input by the creator;
    基于关键信息的保存指令关联并存储所述关键信息及其对应的字段值;The key information-based save instruction associates and stores the key information and its corresponding field value;
    将所述关键信息及其对应的字段值载入目标XML文件中,生成cube文件。The key information and its corresponding field values are loaded into the target XML file to generate a cube file.
  12. 如权利要求11所述的非易失性可读存储介质,其特征在于,在获取创建指令时,根据所述创建指令获取待创建的cube文件的文件索引之前,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器还执行如下步骤:The non-volatile readable storage medium according to claim 11, wherein, when the creation instruction is acquired, the computer readable instruction is obtained by acquiring a file index of the cube file to be created according to the creation instruction When the plurality of processors are executed, the one or more processors are further configured to perform the following steps:
    解析Schema-workbenth工具已创建的cube文件,得到文本格式和关键信息;Parse the cube file created by the Schema-workbenth tool to get the text format and key information;
    按照所述文本格式生成目标XML文件,并记录所述关键信息为录入窗口上的可编辑项。A target XML file is generated according to the text format, and the key information is recorded as an editable item on the entry window.
  13. 如权利要求11所述的非易失性可读存储介质,其特征在于,所述将所述关键信息及其对应的字段值载入目标XML文件中,生成cube文件包括:The non-volatile readable storage medium according to claim 11, wherein said loading said key information and its corresponding field value into a target XML file, and generating a cube file comprises:
    获取所述关键信息对应的字段值所在的事实表,根据事实表的名称获取用于校验的数据库;Obtaining a fact table in which the field value corresponding to the key information is located, and obtaining a database for verification according to the name of the fact table;
    基于所述数据库生成校验指令;Generating a verification instruction based on the database;
    根据所述校验指令校验所述目标XML文件中的内容与所述数据库中记录的表信息是否一致;Verifying, according to the verification instruction, whether the content in the target XML file is consistent with the table information recorded in the database;
    若一致时,基于所述目标XML文件生成cube文件。If they are consistent, a cube file is generated based on the target XML file.
  14. 如权利要求13所述的非易失性可读存储介质,其特征在于,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器还执行如下步骤:The non-volatile readable storage medium of claim 13 wherein said computer readable instructions are executed by one or more processors such that said one or more processors further perform the steps of:
    若所述目标XML文件中的内容与数据库中记录的表信息不一致时,输出提示信息。If the content in the target XML file does not match the table information recorded in the database, the prompt information is output.
  15. 如权利要求11至14任一项所述的非易失性可读存储介质,其特征在于,所述录入窗口中包括Excel文件;The non-volatile readable storage medium according to any one of claims 11 to 14, wherein the entry window includes an Excel file;
    在所述Excel文件中,每一种关键信息为一个可编辑项,包括至少一个编辑栏。In the Excel file, each key information is an editable item, including at least one edit bar.
  16. 一种终端,所述终端包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机可读指令,其特征在于,所述处理器执行所述计算机可读指令时实现如下步骤:A terminal, the terminal comprising a memory, a processor, and computer readable instructions stored on the memory and executable on the processor, wherein the processor executes the computer readable instructions to implement the following steps:
    获取创建指令时,根据所述创建指令获取待创建的cube文件的文件索引,根据所述文件索引输出包含所述cube文件的关键信息编辑栏的录入窗口;Obtaining a file index of the cube file to be created according to the creation instruction, and outputting an input window of the key information editing column including the cube file according to the file index;
    通过所述录入窗口获取创建者输入的所述关键信息对应的字段值;Obtaining, by the entry window, a field value corresponding to the key information input by the creator;
    基于关键信息的保存指令关联并存储所述关键信息及其对应的字段值;The key information-based save instruction associates and stores the key information and its corresponding field value;
    将所述关键信息及其对应的字段值载入目标XML文件中,生成cube文件。The key information and its corresponding field values are loaded into the target XML file to generate a cube file.
  17. 如权利要求16所述的终端,其特征在于,在获取创建指令时,根据所 述创建指令获取待创建的cube文件的文件索引之前,所述处理器执行所述计算机可读指令时还实现如下步骤:The terminal according to claim 16, wherein, when the file creation index of the cube file to be created is acquired according to the creation instruction, the processor executes the computer readable instruction step:
    解析Schema-workbenth工具已创建的cube文件,得到文本格式和关键信息;Parse the cube file created by the Schema-workbenth tool to get the text format and key information;
    按照所述文本格式生成目标XML文件,并记录所述关键信息为录入窗口上的可编辑项。A target XML file is generated according to the text format, and the key information is recorded as an editable item on the entry window.
  18. 如权利要求16所述的终端,其特征在于,所述将所述关键信息及其对应的字段值载入目标XML文件中,生成cube文件包括:The terminal according to claim 16, wherein said loading said key information and its corresponding field value into a target XML file, and generating a cube file comprises:
    获取所述关键信息对应的字段值所在的事实表,根据事实表的名称获取用于校验的数据库;Obtaining a fact table in which the field value corresponding to the key information is located, and obtaining a database for verification according to the name of the fact table;
    基于所述数据库生成校验指令;Generating a verification instruction based on the database;
    根据所述校验指令校验所述目标XML文件中的内容与所述数据库中记录的表信息是否一致;Verifying, according to the verification instruction, whether the content in the target XML file is consistent with the table information recorded in the database;
    若一致时,基于所述目标XML文件生成cube文件。If they are consistent, a cube file is generated based on the target XML file.
  19. 如权利要求18所述的终端,其特征在于,所述处理器执行所述计算机可读指令时还实现如下步骤:The terminal according to claim 18, wherein said processor further implements the following steps when said computer readable instructions are executed:
    若所述目标XML文件中的内容与数据库中记录的表信息不一致时,输出提示信息。If the content in the target XML file does not match the table information recorded in the database, the prompt information is output.
  20. 如权利要求16至19任一项所述的终端,其特征在于,所述录入窗口中包括Excel文件;The terminal according to any one of claims 16 to 19, wherein the entry window includes an Excel file;
    在所述Excel文件中,每一种关键信息为一个可编辑项,包括至少一个编辑栏。In the Excel file, each key information is an editable item, including at least one edit bar.
PCT/CN2018/081041 2017-12-08 2018-03-29 Cube file creation method, device, storage medium and terminal WO2019109556A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711291900.6A CN108255479B (en) 2017-12-08 2017-12-08 Creation method, device, storage medium and the terminal of cube file
CN201711291900.6 2017-12-08

Publications (1)

Publication Number Publication Date
WO2019109556A1 true WO2019109556A1 (en) 2019-06-13

Family

ID=62722380

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/081041 WO2019109556A1 (en) 2017-12-08 2018-03-29 Cube file creation method, device, storage medium and terminal

Country Status (2)

Country Link
CN (1) CN108255479B (en)
WO (1) WO2019109556A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109739940A (en) * 2018-12-29 2019-05-10 东软集团股份有限公司 On-line analytical processing method, apparatus, storage medium and electronic equipment
CN111143328A (en) * 2019-12-26 2020-05-12 山东翰林科技有限公司 Agile business intelligent data construction method, system, equipment and storage medium
CN113312133B (en) * 2021-06-17 2022-06-24 浙江齐安信息科技有限公司 Operation method, system and storage medium
CN113656851B (en) * 2021-10-20 2022-03-15 广州中望龙腾软件股份有限公司 Method for generating gradient functional material based on Wang cubes method, terminal and storage medium
CN114546971B (en) * 2022-01-26 2022-11-08 北京元年科技股份有限公司 Data file format conversion method, device, equipment and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1564160A (en) * 2004-04-22 2005-01-12 重庆市弘越科技有限公司 Method of seting up and inquirying multiple-demensional data cube
CN102508913A (en) * 2011-11-17 2012-06-20 张真 Cloud computing system with data cube storage index structure
US20170177636A1 (en) * 2015-12-18 2017-06-22 Cisco Technology, Inc. Fast circular database

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107357923A (en) * 2017-07-21 2017-11-17 山东浪潮商用系统有限公司 The cubical method of the tax is generated based on FreeMarker

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1564160A (en) * 2004-04-22 2005-01-12 重庆市弘越科技有限公司 Method of seting up and inquirying multiple-demensional data cube
CN102508913A (en) * 2011-11-17 2012-06-20 张真 Cloud computing system with data cube storage index structure
US20170177636A1 (en) * 2015-12-18 2017-06-22 Cisco Technology, Inc. Fast circular database

Also Published As

Publication number Publication date
CN108255479B (en) 2019-10-08
CN108255479A (en) 2018-07-06

Similar Documents

Publication Publication Date Title
WO2019109556A1 (en) Cube file creation method, device, storage medium and terminal
EP3433732B1 (en) Converting visual diagrams into code
US20210049163A1 (en) Data preparation context navigation
US20210174006A1 (en) System and method for facilitating complex document drafting and management
Ikeda et al. Panda: A System for Provenance and Data.
US20160055233A1 (en) Pre-join tags for entity-relationship modeling of databases
CN106649457B (en) Data processing system based on object relation mapping technology
US20140181154A1 (en) Generating information models in an in-memory database system
CN111061475B (en) Software code generating method, device, computer equipment and storage medium
CN106104472A (en) Specify logic checking rule and logic checking rule is applied to data
CN112148509A (en) Data processing method, device, server and computer readable storage medium
US10969929B2 (en) Dependency graph-controlled object and compute pipeline migration
US20130311830A1 (en) Generating test data
CN106951231B (en) Computer software development method and device
US20130144920A1 (en) Creating a configuration file template
CN108388623B (en) ER relationship generation method and device, computer equipment and storage medium
US20180137161A1 (en) Data analysis schema and method of use
US11947567B2 (en) System and method for computing and managing datasets using hierarchical analytics
CN112163017B (en) Knowledge mining system and method
CN111061733A (en) Data processing method and device, electronic equipment and computer readable storage medium
Thao A configuration management system for software product lines
CN108804401B (en) Report template merging method and device
US11693652B2 (en) Automated authoring of software solutions from a data model
US11461217B2 (en) Transferring data from a source complex variable to a target complex variable
CN113254455A (en) Dynamic configuration method and device of database, computer equipment and storage medium

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 17/09/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18886961

Country of ref document: EP

Kind code of ref document: A1