Systems for extracting data from XML-based digital process automation and management platforms to databases
AssigneeBank of America Corporation
InventorAjay Chhawacharia
Life of this patent
Estimating the term…
Abstract
Automated end-to-end exporting of XML-based data and uploading in tabular format to target databases. Primary/foreign keys are intelligently created to associate/tie together the hierarchal relationships that exist in the nested XML data. As such, the data can be loaded into the databases while maintaining the requisite hierarchal relationships of the data elements. In addition, the exporting and upload process is independent of target database schema as the invention provides for generating and deploying scripts that define the database schema within the target database.
Claims18
A system for extracting data from Extensible Markup Language (XML)-based files to a target, the system comprising:
- a source computing platform including a first memory and at least one first processing device in communication with the first memory, wherein the first memory is configured to store one or more applications that generate XML-based files;
- a target computing platform including a second memory and at least one second processing device in communication with the second memory, wherein the second memory is configured to store data extracted from the XML-based files;
- and
- a data extraction and upload computing platform including a third memory and at least one third processing device in communication with the third memory, wherein the third memory stores instructions that are executable by the third processing device to perform end-to-end automated processing and configured to:
- receive one or more of the XML-based files from at least one of the applications stored in the first memory of the source computing platform,
- read XML data in the XML-based files,
- parse the XML data into tabular format including generating data keys that establish hierarchical relationships for data elements in the XML data, wherein generating the data keys comprises:
- creating, for each first hierarchical level data element, a first level JavaScript Object Notation (JSON) dictionary and adding the JSON dictionary to a JSON dictionary list,
- reading each first hierarchical level data element and adding to a corresponding first level JSON dictionary an identifier as a first primary key, and
- generating a first table name for each first hierarchical level data element based on a partial value of the first primary key and adding the first table name to the corresponding first level JSON dictionary,
- generate a plurality of first scripts for defining, within the second memory of the target computing platform, a database schema comprising a plurality of tables, each of the plurality of scripts corresponding to one of the JSON dictionaries in the JSON dictionary list,
- deploy and execute the first scripts at the target computing platform to create the database schema including the plurality of tables, and
- load the data elements into the plurality of tables while maintaining the hierarchical relationships established for the data elements.
A computer-implemented method for extracting data from Extensible Markup Language (XML)-based files to a target, the method is executed by one or more computer processors, configured to be executed in automated end-to-end manner and comprises:
- receiving one or more of the XML-based files from at least one application stored on first memory of a source computing platform;
- reading XML data in the XML-based files;
- parsing the XML data into tabular format including generating data keys that establish hierarchical relationships for data elements in the XML data, wherein generating the data keys includes:
- creating, for each first hierarchical level data element, a first level JavaScript Object Notation (JSON) dictionary and adding the JSON dictionary to a JSON dictionary list
- reading each first hierarchical level data element and adding to a corresponding first level JSON dictionary an identifier as a first primary key, and
- generating a first table name for each first hierarchical level data element based on a partial value of the first primary key and adding the first table name to the corresponding first level JSON dictionary;
- generating a plurality of first scripts for defining, within the second memory of the target computing platform, a database schema comprising a plurality of tables, each of the plurality of scripts corresponding to one of the JSON dictionaries in the JSON dictionary list;
- deploying and executing the first scripts at the target computing platform to create the database schema including the plurality of tables;
- and
- loading the data elements into the plurality of tables while maintaining the hierarchical relationships established for the data elements.
A computer program product comprising non-transitory computer-readable code that is configured to be executed in automated end-to-end manner and including:
- a first set of codes for causing a computer processing device to receive one or more of the XML-based files from at least one application stored on first memory of a source computing platform;
- a second set of codes for causing a computer processing device to read XML data in the XML-based files;
- a third set of codes for causing a computer processing device to parse the XML data into tabular format including generating data keys that establish hierarchical relationships for data elements in the XML data, wherein generating the data keys includes:
- creating, for each first hierarchical level data element, a first level JavaScript Object Notation (JSON) dictionary and adding the JSON dictionary to a JSON dictionary list
- reading each first hierarchical level data element and adding to a corresponding first level JSON dictionary an identifier as a first primary key, and
- generating a first table name for each first hierarchical level data element based on a partial value of the first primary key and adding the first table name to the corresponding first level JSON dictionary;
- a fourth set of codes for causing a computer processing device to generate a plurality of first scripts for defining, within the second memory of the target computing platform, a database schema comprising a plurality of tables, each of the plurality of scripts corresponding to one of the JSON dictionaries in the JSON dictionary list;
- a fifth set of codes for causing a computer processing device to deploy and execute the first scripts at the target computing platform to create the database schema including the plurality of tables;
- and
- a sixth set of codes for causing a computer processing device to load the data elements into the plurality of tables while maintaining the hierarchical relationships established for the data elements.
Dependencies are inferred from the claim text.