×

Method of compiling schema mapping

  • US 6,874,141 B1
  • Filed: 06/29/2000
  • Issued: 03/29/2005
  • Est. Priority Date: 06/29/2000
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method of generating code representing a mapping between a source schema, and a target schema, the source schema comprising a source tree having a source node and the target schema comprising a target tree having a target node, the method comprising:

  • initializing node dependencies memory comprising;

    allocating memory for a compiler node;

    associating the compiler node with the target node;

    allocating memory for compiler variable classes; and

    associating compiler variable classes with functoids;

    determining source node dependencies for the target node by tracing from the target node through the mapping to the source schema, wherein the mapping comprises defined data transformations from the source schema to the target schema, and wherein determining source node dependencies comprises;

    creating a target dependencies list for the target node;

    creating a source dependencies list for the target node;

    tracing back to the source tree through all possible paths recursively, adding source tree nodes to corresponding source dependencies lists;

    setting a flag for the compiler nodes associated with the target node and an associated parent compiler node if there is a path from the target tree node to the source tree;

    adding the target tree node to the target dependency list of an associated parent record node if the target node is a field node;

    consolidating the target dependency list for target record nodes;

    consolidating the source dependency list for target record nodes;

    selecting a source loop path node for the target node according to the consolidated source dependency lists; and

    storing the source loop path node in the compiler node associated with the target node;

    matching hierarchy by generating a hierarchy match list for the target node; and

    generating code according to the hierarchy match list.

View all claims
  • 3 Assignments
Timeline View
Assignment View
    ×
    ×