# US 2012/0254739 A1 · Phased Importing of Objects

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

- Number: US 2012/0254739 A1
- Document ID: US20120254739A1
- Status: Published application
- Kind: A1
- Application number: 13/075,410
- Filed: 2011-03-30
- Published: 2012-10-04
- Earliest claimed: 2011-03-30
- Assignees: Sap SE
- Inventors: Kai Dehmann; Peter Surma; Herbert Hackmann
- Web page: https://patentgrep.com/patent/US20120254739A1

## CPC

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

## Abstract

In general, the subject matter described in this specification can be embodied in methods, systems, and program products for importing objects. A computer system processes structured electronic documents that define objects to be imported into a database in multiple phases. In a first phase, the computer system analyzes the structured electronic documents to determine whether the objects to be imported are related to one or more other objects that have yet to be stored in the database. If so, the computer system generates contextual information that defines the relationships between the objects. In a second phase, the computer system establishes relationships in the database between related objects using the contextual information.

## Claims

### Claim 1

A computer-implemented method for importing objects, the method comprising:
identifying, using a computer system, a plurality of structured electronic documents, each of which defines an object to be imported into a database;
processing, using the computer system, the plurality of structured electronic documents in a first phase that comprises, for each of the structured electronic documents:
analyzing the structured electronic document to obtain an identifier associated with the object to be imported, the identifier being incompatible for use as an index in the database;
generating a converted identifier from the identifier associated with the object to be imported, the converted identifier being compatible for use as an index in the database;
analyzing the structured electronic document to determine whether the object to be imported is related to one or more other objects defined by the plurality of structured electronic documents that have yet to be stored in the database, and if so, generating contextual information that defines a relationship between the object to be imported and the one or more other objects, the contextual information including the converted identifier and a relational identifier for each of the one or more other objects; and
storing the object defined by the structured electronic document in the database; and
processing, using the computer system, the contextual information in a second phase that comprises at least establishing relationships in the database between related objects using the contextual information.

### Claim 2 (depends on 1)

The method of claim 1, wherein the first phase processing and the second phase processing execute in parallel.

### Claim 3 (depends on 1)

The method of claim 1, wherein the first phase processing and the second phase processing execute serially, with the first phase processing preceding the second phase processing.

### Claim 4 (depends on 1)

The method of claim 1, further comprising, during the first phase processing, determining that the object to be imported is related to an object that is stored in the database, and establishing a relationship in the database between the object to be imported and the object that is stored in the database.

### Claim 5 (depends on 1)

The method of claim 1, wherein generating the converted identifier comprises hashing the identifier associated with the object to be imported.

### Claim 6 (depends on 1)

The method of claim 1, further comprising simulating at least a portion of the first phase processing and the second phase processing without storing the objects in the database.

### Claim 7 (depends on 6)

The method of claim 6, wherein a subset of the plurality of structured electronic documents is used during the simulation, the subset being fewer than all of the plurality of structured electronic documents.

### Claim 8

A computer-readable storage device storing instructions that, when executed by one or more processing devices, perform operations comprising:
identifying, using a computer system, a plurality of structured electronic documents, each of which defines an object to be imported into a database;
processing, using the computer system, the plurality of structured electronic documents in a first phase that comprises, for each of the structured electronic documents:
analyzing the structured electronic document to obtain an identifier associated with the object to be imported, the identifier being incompatible for use as an index in the database;
generating a converted identifier from the identifier associated with the object to be imported, the converted identifier being compatible for use as an index in the database;
analyzing the structured electronic document to determine whether the object to be imported is related to one or more other objects defined by the plurality of structured electronic documents that have yet to be stored in the database, and if so, generating contextual information that defines a relationship between the object to be imported and the one or more other objects, the contextual information including the converted identifier and a relational identifier for each of the one or more other objects; and
storing the object defined by the structured electronic document in the database; and
processing, using the computer system, the contextual information in a second phase that comprises at least establishing relationships in the database between related objects using the contextual information.

### Claim 9 (depends on 8)

The computer-readable storage device of claim 8, wherein the first phase processing and the second phase processing execute in parallel.

### Claim 10 (depends on 8)

The computer-readable storage device of claim 8, wherein the first phase processing and the second phase processing execute serially, with the first phase processing preceding the second phase processing.

### Claim 11 (depends on 8)

The computer-readable storage device of claim 8, wherein the operations further comprise, during the first phase processing, determining that the object to be imported is related to an object that is stored in the database, and establishing a relationship in the database between the object to be imported and the object that is stored in the database.

### Claim 12 (depends on 8)

The computer-readable storage device of claim 8, wherein generating the converted identifier comprises hashing the identifier associated with the object to be imported.

### Claim 13 (depends on 8)

The computer-readable storage device of claim 8, wherein the operations further comprise simulating at least a portion of the first phase processing and the second phase processing without storing the objects in the database.

### Claim 14 (depends on 13)

The computer-readable storage device of claim 13, wherein a subset of the plurality of structured electronic documents is used during the simulation, the subset being fewer than all of the plurality of structured electronic documents.

### Claim 15

A system comprising:
one or more programmable processors; and
a computer-readable storage device storing instructions that, when executed by the one or more programmable processors, perform operations comprising:
identifying, using a computer system, a plurality of structured electronic documents, each of which defines an object to be imported into a database;
processing, using the computer system, the plurality of structured electronic documents in a first phase that comprises, for each of the structured electronic documents:
analyzing the structured electronic document to obtain an identifier associated with the object to be imported, the identifier being incompatible for use as an index in the database;
generating a converted identifier from the identifier associated with the object to be imported, the converted identifier being compatible for use as an index in the database;
analyzing the structured electronic document to determine whether the object to be imported is related to one or more other objects defined by the plurality of structured electronic documents that have yet to be stored in the database, and if so, generating contextual information that defines a relationship between the object to be imported and the one or more other objects, the contextual information including the converted identifier and a relational identifier for each of the one or more other objects; and
storing the object defined by the structured electronic document in the database; and
processing, using the computer system, the contextual information in a second phase that comprises at least establishing relationships in the database between related objects using the contextual information.

### Claim 16 (depends on 15)

The system of claim 15, wherein the first phase processing and the second phase processing execute in parallel.

### Claim 17 (depends on 15)

The system of claim 15, wherein the first phase processing and the second phase processing execute serially, with the first phase processing preceding the second phase processing.

### Claim 18 (depends on 15)

The system of claim 15, wherein the operations further comprise, during the first phase processing, determining that the object to be imported is related to an object that is stored in the database, and establishing a relationship in the database between the object to be imported and the object that is stored in the database.

### Claim 19 (depends on 15)

The system of claim 15, wherein generating the converted identifier comprises hashing the identifier associated with the object to be imported.

### Claim 20 (depends on 15)

The system of claim 15, wherein the operations further comprise simulating at least a portion of the first phase processing and the second phase processing without storing the objects in the database.

### Claim 21 (depends on 20)

The system of claim 20, wherein a subset of the plurality of structured electronic documents is used during the simulation, the subset being fewer than all of the plurality of structured electronic documents.
