|Publication number||US7539701 B2|
|Application number||US 11/601,951|
|Publication date||May 26, 2009|
|Filing date||Nov 20, 2006|
|Priority date||Nov 20, 2006|
|Also published as||US20080120333, WO2008063738A1|
|Publication number||11601951, 601951, US 7539701 B2, US 7539701B2, US-B2-7539701, US7539701 B2, US7539701B2|
|Original Assignee||Microsoft Corporation|
|Export Citation||BiBTeX, EndNote, RefMan|
|Patent Citations (24), Non-Patent Citations (4), Referenced by (5), Classifications (8), Legal Events (4)|
|External Links: USPTO, USPTO Assignment, Espacenet|
In many software product areas, there are several competing software programs that are available to perform certain tasks. For example, there are several accounting software programs available to consumers.
Typically, each software program stores the data it generates in a different format than its competitors. For example, information stored in a single field in a single table in one computer application may be stored in multiple fields across multiple tables in a competing application.
The differences between the ways competing software applications store data creates a barrier to switching from one software application to a competing software application since changing software applications requires migrating existing data from the format of the old application to the format of the new application. Such data migration must be handled carefully to ensure that data integrity is maintained and that fields in one application are properly mapped to fields in the other application.
The discussion above is merely provided for general background information and is not intended to be used as an aid in determining the scope of the claimed subject matter.
A field map is applied to elements in a data representation of data from a source database to identify schema elements in a schema. Hierarchical relationships between schema elements that are described in the schema are used to construct a hierarchical data representation from the data representation. Based on the hierarchical relationship between two elements in the hierarchical data representation, it is determined that a first database object must be instantiated before a second database object. After ensuring that the first database object has been created and stored, the second database object is created and stored.
This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter. The claimed subject matter is not limited to implementations that solve any or all disadvantages noted in the background.
Embodiments herein migrate data from a source database to a destination database using data maps to map fields from the source database to intermediate fields in a well-formed data representation. A schema that describes the hierarchical relationship of database objects in the destination database and a field map are then used to convert the well-formed data representation into a hierarchical data representation. The hierarchical data representation is then imported into the destination database by creating database objects based on the hierarchical data representation.
In step 200 of
Output file/objects 108 can take any number of forms including XML documents, comma separate values (CSV) or a format associated with a particular program such as ExcelŽ Brand Spreadsheet Software from Microsoft. Alternatively, output file/objects 108 can take the form of objects that have properties that are set to reflect data from database 100. By reference other objects, objects 108 may reflect a hierarchical relationship between elements in database 100.
Alternatively or additionally, extraction layer 114 may include an export tool 118 that forms part of application 102. Typically, export tool 118 is activated by a user 120 through a user interface produced by application 102.
Output file/objects 108 are provided to a first mapping layer 124 that includes data maps 126 and an extraction framework 128. At step 202, data maps 126 are used to validate the data in output files/objects 108 and to map source field names from source database 100 that are stored in output files/objects 108 to intermediate field names in a well-formed data representation 130. Under one embodiment, data maps 126 are XML documents that consist of a plurality of tags. Each tag has a name and delimits a description of the location where data to be associated with the tag name can be found in output files/objects 108. The tag name is the intermediate field name that is used in well-formed data representation 130. In further embodiments, each tag includes a type attribute such as string, integer, date, etc., that indicates the type for the data to be associated with the intermediate field name. For example, the following tag structure may be found in data maps 126:
<CustomerFirstName type=string> element=5
In this tag structure, the text up to the first space in the fifth element of each record in output files/objects 108 is assigned to an intermediate field named CustomerFirstName, which has a type of “string” in the well-formed data representation.
Extraction framework 128 validates the data indicated between the tags to ensure that it is of the same type set in the type attribute. For instance, if the type attribute is Date, extraction framework 128 ensures that the data parsed from output file 108 represents a date.
Under one embodiment, well-formed data representations 130 are XML structures that match the XML structures of data maps 126, but that have the data content of output files/objects 108 in place of the data location descriptions of data maps 126. For example, the example data map entry above would become:
<CustomerFirstName type=string> Jack
in the well-formed data representation 130, where “Jack” is taken from output file/objects 108. In data maps 126, a hierarchy is shown by nesting tags within each other, with outer tags being considered higher in the hierarchy than inner tags. As a result, XML structures found in well-formed data representation 130 also have a hierarchy.
In other embodiments, well-formed data representations 130 are objects that are instantiated by extraction framework 128 based on a hierarchy reflected in data maps 126. In particular, a set of objects (not shown) that have the same hierarchy as the hierarchy of data maps 126 can be provided. Certain tags in data maps 126 are associated with objects in the set of objects. For each tag that is associated with an object, an instance of the object is opened and the properties of the object are set based on the corresponding values in output file/objects 108.
Data maps 126 allow extraction framework 128 to divide data found in a single field in output files/objects 108 into multiple different fields in well-formed data representations 130. This can be done by providing instructions in data maps 126 to parse only portions of elements found in output files/objects 108. Thus one portion of an element may be associated with one tag name in data map 126 while another portion of the element may be associated with another tag in data map 126.
Data map 126 may also be used to aggregate data found in multiple fields in output files/objects 108 into a single intermediate field in well-formed data representation 130. For example, the data map may include:
element=6 / element=7 / element=8
Where element 6 may be a street address, element 7 may be a city, and element 8 may be a state in database 100. Thus, the elements of an address for well-formed data representations 130 are dispersed across several fields in database 100.
Well-formed data representations 130 are provided to a second mapping layer 132 that consists of a data transformation component 134, a schema 136 and field maps 138. At step 204, data transformation component 134 uses schema 136 and field maps 138 to transform well-formed data representation 130 into hierarchical representation 140.
Schema 136 describes the hierarchical relationship of objects in destination database 104 of application 106. In particular, schema 136 reflects references that one object makes to another object in database 104 as well as properties of objects. For example, an Address object in database 104 may reference a Country object. This would be reflected in schema 136 by indicating that “Country” is a child of “Address”. For example, a schema 136 written in a schema markup language that reflects this relationship might be:
where elements Address1, Address2, and Country are child elements of Address. In this example, each of these elements is a property of the Address object in the database and the Country element is also an object in the database. Thus, both properties and referenced objects appear as child elements in the schema.
Field maps 138 provide a mapping between the intermediate field names found in well-formed representation 130 and the schema field names in schema 136. Field maps 138 can divide data found in a single field in well-formed data representation 130 into multiple fields of schema 136. Thus, one portion of a field in well-formed data representation 130 may be associated with one field in schema 136 while another portion of the field may be associated with another field in schema 136. Field maps 138 can also aggregate data by combining data found in two separate fields of well-formed data representation 130 into one element of schema 136.
Thus, there are two mappings that occur under embodiments described herein. The first mapping uses data map 126 to map from source field names found in database 100 to intermediate field names in well-formed data representation 130. The second mapping uses field maps 138 to map from the intermediate field names in well-formed data representation 130 to schema field names in schema 136. By using two levels of mappings, these embodiments allow the structure of destination database 104 to be changed without having to alter extraction framework 128 to change the formation of well-formed data representation 130. Similarly, the structure of source database 100 can change without having to change data transformation component 134.
Hierarchical representation 140 may take the form of objects with associated metadata or may be in some other form such as an XML document. In either format, hierarchical representation 140 provides the 2 data from source database 100 in a hierarchical manner that reflects the hierarchy of objects in destination database 104. By creating a hierarchical representation 140, it is possible to write a more generalized import engine 146 that can rely on the hierarchy in hierarchical representation 140 to make determinations about what objects to create and save first in destination database 104 as discussed further below.
At step 302, data transformation component 134 selects one of well-formed data representations 130. At step 304, an intermediate field in the selected representation 130 is selected. At step 306, field maps 138 are used to map the intermediate field name to a schema field name in schema 136.
At step 308, data transformation component 134 determines if the selected field is a child field in schema 136. If it is not a child field, it is either a parent field or an independent field. As such, at step 309, data transformation component 134 forms an XML structure or an object for the field. If a structure is formed, it will include the child fields, if any, that are listed in the schema for this field. If an object is instantiated, it will contain properties that reflect the child fields, if any, found in the schema.
If the selected field is a child field in schema 136 at step 308, data transformation component 134 identifies the parent field of the selected field from schema 136 and determines if a structure or object has previously been formed in the hierarchical representation to represent the parent field at step 310. If a structure/object has not been formed for the parent field, a structure/object is formed for the parent field at step 311.
At step 312, after steps 309, 310, or 311, the value stored in well-formed data representation 130 for the selected field is stored in the structure/object for the selected field or the parent of the selected field at step 312. For objects, this involves setting a property in the object. For XML documents, this involves setting the value between tags that contain the schema field name set by schema 136 for the element.
At step 314, data transformation component 134 determines if there are more fields in the selected well-formed data representation. If there are more fields, the next field is selected by returning to step 304 and steps 306-312 are performed for the new field. When there are no more fields, the structure/objects that have been formed for the well-formed data representation are saved at step 315. For objects, this saving step can form metadata that describes the properties stored in the objects.
At step 316, data transformation component 134 determines if there are more well-formed data representations in well-formed data representations 130. If there are more well-formed data representations, the next well-formed data representation is selected by returning to step 302, and steps 304-315 are performed for the new well-formed data representation.
In step 206 of
At step 404, import engine 146 searches the database for an existing object that has the same type and name property as the selected object element. The type for the selected object element is the schema field name, and the name property is the value associated with the schema field name in the hierarchical data representation. If such an object is not stored in database 104 at step 406, a new object is created at step 408. If the object is found in database 104 at step 406, the object is retrieved at step 410.
After an instance of the object has been created or the stored object has been retrieved, a child field for the selected object element is selected from hierarchical representation 140 at step 412. If the child field represents an object, the object is retrieved at step 413. The property that corresponds to the child element is then retrieved from the database object created for the parent object at step 414 based on the schema field name of the parent field in hierarchical representation 140. Under one embodiment, the property is retrieved using reflection methods, such as those exposed by the .Net framework. The value of the retrieved property is then set to the value in hierarchical representation 140 at step 416. Under some embodiments, the value is set using a reflection method.
For child fields that represent objects, setting step 416 involves setting a reference to the object associated with the child field. Because the hierarchical data representation is provided as input, selecting the lowest object element in the hierarchical data representation at step 402 ensures that the child object will be created before a reference to the child object is set in another object at step 416.
At step 418, import engine 146 determines if there are more child fields for this object element in hierarchical representation 140. If there are more child fields, the next child field is selected by returning to step 412, and steps 414 and 416 are performed for the next child field. When all of the values for the child fields in the hierarchical representation for the selected object element have been set in the object, the object is stored in database 104 at step 420.
At step 422, import engine 146 determines if there are more object elements in the hierarchical representation. If there are more object elements, the next lowest object element is selected by returning to step 402. Steps 404-420 are then performed for the new object element. When all of the object elements have been processed at step 422, import engine 146 determines if there are more hierarchical representations to process at step 424. If there are more hierarchical representations, the next hierarchical representation is selected by returning to step 400 and steps 402-422 are repeated for the next hierarchical representation. When all of the hierarchical representations have been processed, the method of
Embodiments are operational with numerous other general purpose or special purpose computing system environments or configurations. Examples of well-known computing systems, environments, and/or configurations that may be suitable for use with various embodiments include, but are not limited to, personal computers, server computers, hand-held or laptop devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, telephony systems, distributed computing environments that include any of the above systems or devices, and the like.
Embodiments may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. Some embodiments are designed to be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules are located in both local and remote computer storage media including memory storage devices.
With reference to
Computer 510 typically includes a variety of computer-readable media. Computer-readable media can be any available media that can be accessed by computer 510 and includes both volatile and nonvolatile media, removable and non-removable media. By way of example, and not limitation, computer-readable media may comprise computer storage media and communication media. Computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, program modules or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by computer 510. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, RF, infrared and other wireless media. Combinations of any of the above should also be included within the scope of computer-readable media.
The system memory 530 includes computer storage media in the form of volatile and/or nonvolatile memory such as read only memory (ROM) 531 and random access memory (RAM) 532. A basic input/output system 533 (BIOS), containing the basic routines that help to transfer information between elements within computer 510, such as during start-up, is typically stored in ROM 531. RAM 532 typically contains data and/or program modules that are immediately accessible to and/or presently being operated on by processing unit 520. By way of example, and not limitation,
The computer 510 may also include other removable/non-removable volatile/nonvolatile computer storage media. By way of example only,
The drives and their associated computer storage media discussed above and illustrated in
A user may enter commands and information into the computer 510 through input devices such as a keyboard 562, a microphone 563, and a pointing device 561, such as a mouse, trackball or touch pad. These and other input devices are often connected to the processing unit 520 through a user input interface 560 that is coupled to the system bus, but may be connected by other interface and bus structures, such as a parallel port, game port or a universal serial bus (USB). A monitor 591 or other type of display device is also connected to the system bus 521 via an interface, such as a video interface 590.
The computer 510 is operated in a networked environment using logical connections to one or more remote computers, such as a remote computer 580. The remote computer 580 may be a personal computer, a hand-held device, a server, a router, a network PC, a peer device or other common network node, and typically includes many or all of the elements described above relative to the computer 510. The logical connections depicted in
When used in a LAN networking environment, the computer 510 is connected to the LAN 571 through a network interface or adapter 570. When used in a WAN networking environment, the computer 510 typically includes a modem 572 or other means for establishing communications over the WAN 573, such as the Internet. The modem 572, which may be internal or external, may be connected to the system bus 521 via the user input interface 560, or other appropriate mechanism. In a networked environment, program modules depicted relative to the computer 510, or portions thereof, may be stored in the remote memory storage device. By way of example, and not limitation,
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that, the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
|Cited Patent||Filing date||Publication date||Applicant||Title|
|US5875435||May 18, 1998||Feb 23, 1999||Brown; Gordon T.||Automated accounting system|
|US6363362 *||Apr 7, 1999||Mar 26, 2002||Checkfree Services Corporation||Technique for integrating electronic accounting systems with an electronic payment system|
|US6529909||Aug 31, 1999||Mar 4, 2003||Accenture Llp||Method for translating an object attribute converter in an information services patterns environment|
|US6665677 *||Oct 2, 2000||Dec 16, 2003||Infoglide Corporation||System and method for transforming a relational database to a hierarchical database|
|US6826568||Dec 20, 2001||Nov 30, 2004||Microsoft Corporation||Methods and system for model matching|
|US6853997 *||Jun 28, 2001||Feb 8, 2005||Infoglide Corporation||System and method for sharing, mapping, transforming data between relational and hierarchical databases|
|US7031956||Oct 9, 2001||Apr 18, 2006||Verizon Laboratories Inc.||System and method for synchronizing and/or updating an existing relational database with supplemental XML data|
|US7130863||Jun 17, 2004||Oct 31, 2006||Tablecode Software Corporation||Method for enhancing object-oriented programming through extending metadata associated with class-body class-head by adding additional metadata to the database|
|US7418456 *||Jan 16, 2004||Aug 26, 2008||International Business Machines Corporation||Method for defining a metadata schema to facilitate passing data between an extensible markup language document and a hierarchical database|
|US20020156814 *||Apr 17, 2001||Oct 24, 2002||Ho Bruce K.||Method and apparatus for visual business computing|
|US20030018658 *||Jul 17, 2001||Jan 23, 2003||Suermondt Henri Jacques||Method of efficient migration from one categorization hierarchy to another hierarchy|
|US20030216990||Jun 16, 2003||Nov 20, 2003||Onecore Financial Network, Inc.||Systems and methods for performing integrated financial transactions|
|US20040054626||Sep 17, 2002||Mar 18, 2004||Adn Technologies||Device for processing local accounts data with different formats, equipment and a method for treating associated data|
|US20040153462 *||Feb 5, 2003||Aug 5, 2004||Bardwell Steven J.||Systems, methods, and computer program product for use in association with electronic documents|
|US20040181753||Mar 10, 2003||Sep 16, 2004||Michaelides Phyllis J.||Generic software adapter|
|US20050022154||May 14, 2004||Jan 27, 2005||International Business Machines Corporation||Interoperability of accounting packages and commerce servers|
|US20050065942 *||Jun 17, 2004||Mar 24, 2005||Salleh Diab||Enhancing object-oriented programming through tables|
|US20050102370 *||Oct 23, 2003||May 12, 2005||Yun Lin||Truth on client persistent caching|
|US20050240467||Jul 19, 2004||Oct 27, 2005||Illumen, Inc.||Systems and methods for selective sharing of business performance information|
|US20060190814 *||Jan 23, 2006||Aug 24, 2006||Microsoft Corporation||Importing and exporting markup language data in a spreadsheet application document|
|US20080134019 *||Apr 8, 2005||Jun 5, 2008||Nobuaki Wake||Processing Data And Documents That Use A Markup Language|
|WO2001020504A1||Sep 15, 2000||Mar 22, 2001||Express Promotions Australia Pty Ltd||An account system|
|WO2001057613A2||Jan 31, 2001||Aug 9, 2001||Ventro Corporation||Hub & spoke architecture and methods for electronic commerce|
|WO2006032063A2||Dec 24, 2004||Mar 23, 2006||Froes, Paulo||An accounting process|
|1||Bhushan et al., "Federated Accounting Management System Architecture for Multimedia Service Usage Management," IFIP/IEEE MMNS02, Oct. 2002, https://kdeg.cs.tcd.ie:444/form/results/papers/pdf/mmns02.pdf.|
|2||Elder et al., "Use and Reuse of Databases," 3rd Conference on Re-engineering of Information Systems, 1994, http://184.108.40.206/Publications/pubfiles/1994-0002-EdFr.pdf.|
|3||International Search Report issued in International Application No. PCT/US2007/079579 filed Sep. 26, 2007.|
|4||Written Opinion issued in International Application No. PCT/US2007/079579 filed Sep. 26, 2007.|
|Citing Patent||Filing date||Publication date||Applicant||Title|
|US7974993||Dec 4, 2006||Jul 5, 2011||Microsoft Corporation||Application loader for support of version management|
|US8255790||Sep 8, 2006||Aug 28, 2012||Microsoft Corporation||XML based form modification with import/export capability|
|US9639562 *||Mar 15, 2013||May 2, 2017||Oracle International Corporation||Automatically determining an optimal database subsection|
|US20080133590 *||Dec 4, 2006||Jun 5, 2008||Microsoft Corporation||Application loader for support of version management|
|US20140280373 *||Mar 15, 2013||Sep 18, 2014||John Raitto||Automatically determining an optimal database subsection|
|U.S. Classification||1/1, 707/999.103, 707/999.1, 707/999.2|
|Cooperative Classification||G06F17/303, Y10S707/99944|
|Dec 29, 2006||AS||Assignment|
Owner name: MICROSOFT CORPORATION, WASHINGTON
Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:SETHI, MANISH;REEL/FRAME:018692/0993
Effective date: 20061117
|Oct 4, 2012||FPAY||Fee payment|
Year of fee payment: 4
|Dec 9, 2014||AS||Assignment|
Owner name: MICROSOFT TECHNOLOGY LICENSING, LLC, WASHINGTON
Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:MICROSOFT CORPORATION;REEL/FRAME:034542/0001
Effective date: 20141014
|Nov 10, 2016||FPAY||Fee payment|
Year of fee payment: 8