# US 2006/0136435 A1 · System and method for context-sensitive decomposition of XML documents based on schemas with reusable element/attribute declarations

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2006/0136435 A1
- Document ID: US20060136435A1
- Status: Published application
- Kind: A1
- Application number: 11/021,195
- Filed: 2004-12-22
- Published: 2006-06-22
- Earliest claimed: 2004-12-22
- Assignees: International Business Machines Corporation
- Inventors: Dung Nguyen; Mayank Pradhan
- Web page: https://patentgrep.com/patent/US20060136435A1

## CPC

- G06F 16/86: {Mapping to a database}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system and computer-based method is provided for context-sensitive decomposition of a markup based document into a relational database, based on schemas with reusable item declarations. User creates a mapping document from a schema of a markup based document with at least one reusable item declaration defining an item being mapped to different tables/columns pairs, depending on the item's ancestry. Mapping document is then annotated with the item ancestry mapping annotation having a location path of the item. Each item is decomposed into a corresponding table column. Preferably, the mapping document is an annotated XML Schema.

## Claims

### Claim 1

A computer-based method for context-sensitive decomposition of a markup based document into a relational database, based on schemas with reusable item declarations, comprising:
(a) creating a mapping document from a schema of a markup based document with at least one reusable item declaration defining an item being mapped to different tables/columns pairs, depending on the item's ancestry;
(b) annotating the mapping document with the item ancestry mapping annotation having a location path of the item; and
(c) decomposing each said item into a corresponding database table column.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the reusable item declarations being chosen from the group comprising global items declarations, named model groups declarations, named attribute groups declarations and named complex types declarations.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the mapping document is an annotated XML Schema represented by a directed graph, wherein each said item ancestry mapping annotation is represented by a graph node having the item ancestry path mapping data and an ancestry path is a location path from a root of the directed graph to the node itself.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the location path specifies an absolute path, from a root of the directed graph to the item, being specified as: location path:=‘/’ (locationstep ‘/’)* lastlocationstep; locationstep:=(namespace prefix ‘:’)? item name; lastlocationstep:=locationstep|‘@’ item name, and wherein the namespace prefixes, used in the location path, have been associated with a namespace in the mapping document.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the markup based document being an Extensible Markup Language (XML) document and the mapping document being an annotated XML Schema.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the method being incorporated in a DB2 product.

### Claim 7

A computer-based system for context-sensitive decomposition of a markup based document into a relational database, based on schemas with reusable item declarations, comprising means for:
(a) creating a mapping document from a schema of a markup based document with at least one reusable item declaration defining an item being mapped to different tables/columns pairs, depending on the item's ancestry;
(b) annotating the mapping document with the item ancestry mapping annotation having a location path of the item; and
(c) decomposing each said item into a corresponding database table column.

### Claim 8 (depends on 7)

The system according to claim 7, wherein the reusable item declarations being chosen from the group comprising global items declarations, named model groups declarations, named attribute groups declarations and named complex types declarations.

### Claim 9 (depends on 7)

The system according to claim 7, wherein the mapping document is an annotated XML Schema represented by a directed graph, wherein each said item ancestry mapping annotation is represented by a graph node having the item ancestry path mapping data and an ancestry path is a location path from a root of the directed graph to the node itself.

### Claim 10 (depends on 9)

The system according to claim 9, wherein the location path specifies an absolute path, from a root of the directed graph to the item, being specified as:
location path:=‘/’ (locationstep‘/’)* lastlocationstep; locationstep:=(namespace prefix ‘:’)? item name; lastlocationstep:=locationstep|‘@’ item name, and wherein the namespace prefixes, used in the location path, have been associated with a namespace in the mapping document.

### Claim 11 (depends on 7)

The system according to claim 7, wherein the markup based document being an Extensible Markup Language (XML) document and the mapping document being an annotated XML Schema.

### Claim 12 (depends on 7)

The system according to claim 7, wherein the method being incorporated in a DB2 product.

### Claim 13

A computer usable medium tangibly embodying a program of instructions executable by the computer to perform a computer-based method for context-sensitive decomposition of a markup based document into a relational database, based on schemas with reusable item declarations, comprising:
(a) creating a mapping document from a schema of a markup based document with at least one reusable item declaration defining an item being mapped to different tables/columns pairs, depending on the item's ancestry;
(b) annotating the mapping document with the item ancestry mapping annotation having a location path of the item; and
(c) decomposing each said item into a corresponding database table column.

### Claim 14 (depends on 13)

The method according to claim 13, wherein the reusable item declarations being chosen from the group comprising global items declarations, named model groups declarations, named attribute groups declarations and named complex types declarations.

### Claim 15 (depends on 13)

The method according to claim 13, wherein the mapping document is an annotated XML Schema represented by a directed graph, wherein each said item ancestry mapping annotation is represented by a graph node having the item ancestry path mapping data and an ancestry path is a location path from a root of the directed graph to the node itself.

### Claim 16 (depends on 15)

The method according to claim 15, wherein the location path specifies an absolute path, from a root of the directed graph to the item, being specified as:
location path:=‘/’ (locationstep ‘/’)* lastlocationstep; locationstep:=(namespace prefix ‘:’)? item name; lastlocationstep:=locationstep|‘@’ item name, and wherein the namespace prefixes, used in the location path, have been associated with a namespace in the mapping document.

### Claim 17 (depends on 13)

The method according to claim 13, wherein the markup based document being an Extensible Markup Language (XML) document and the mapping document being an annotated XML Schema.

### Claim 18 (depends on 13)

The method according to claim 13, wherein the method being incorporated in a DB2 product.
