# US 2006/0053128 A1 · Computer program product and associated methods for searching a database of objects, connecting objects in such a database, and exporting data from at least one arbitrary database

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

- Number: US 2006/0053128 A1
- Document ID: US20060053128A1
- Status: Published application
- Kind: A1
- Application number: 10/526,393
- Filed: 2003-09-01
- Published: 2006-03-09
- Earliest claimed: 2002-09-03
- Assignees: Sixsteps AB
- Inventors: Staffan Gestrelius; Gil Roitto
- Web page: https://patentgrep.com/patent/US20060053128A1

## CPC

- G06F 16/835: Query processing
- Y10S 707/99933: Query processing, i.e. searching
- Y10S 707/99944: Object-oriented database structure
- Y10S 707/99945: Object-oriented database structure processing
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y10S: TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS

## Abstract

A computer program product has program code adapted to provide, upon execution, a database of objects and a database engine for managing the objects. Each object comprises metadata for describing the object and for defining a hierarchical structure of branches which constitutes the object and which includes relations to other objects. An individual branch has a metadata type, which is selected from a predetermined and limited set of n different metadata types and which represents one respective hierarchical level in the hierarchical structure, and a metadata value. An individual branch may also have an arbitrary number of other branches, of any hierarchical level strictly subordinate to the hierarchical level of the individual branch, connected to the individual branch as children thereof. The arbitrary number may include zero branches.

## Claims

### Claim 1

A computer program product having program code adapted to provide, upon execution, a database of objects and a database engine for managing said objects, characterized in that
each object comprises metadata for describing the object and for defining a hierarchical structure of branches which constitutes said object and which includes relations to other objects,
wherein an individual branch has:
a metadata type, which is selected from a predetermined and limited set of n different metadata types and which represents one respective hierarchical level in said hierarchical structure;
a metadata value; and
an arbitrary number of other branches, of any hierarchical level strictly subordinate to the hierarchical level of said individual branch, connected to said individual branch as children thereof, said arbitrary number including zero branches.

### Claim 2 (depends on 1)

A computer program product as in claim 1, wherein each object is stored in said database in the form of an n-field data structure for each particular branch that does not have any children, and wherein each field of the n-field data structure represents a respective branch that preceds said particular branch as its ancestor.

### Claim 3 (depends on 1, 2)

A computer program product as in claim 1 or 2, wherein said database comprises a branch table having columns that correspond to the n different metadata types and wherein said n-field data structure is stored as a row in said branch table.

### Claim 4

A computer program product as in any preceding claim, said database engine having a query function for searching said database, wherein said query function is adapted to:
accept a search query which is specified in a declarative language in accordance with said hierarchical structure of objects in said database and which thus defines a branch hierarchy to search for; and
search said database so as to find objects, if any, which contain a branch hierarchy that matches the one specififed in said declarative language.

### Claim 5 (depends on 4)

A computer program product as in claim 4, wherein said declarative language is xml.

### Claim 6

A computer program product as in any preceding claim, wherein n=6 and said set of metadata types consists of {Object, Relation, Key, Attribute, Type, and Value}, metadata type Object representing the root level of said hierarchical structure.

### Claim 7 (depends on 3, 4)

A computer program product as in claim 3 and 4, wherein said query function for searching said database comprises the steps of:
a) receiving a search query;
b) transforming the search query into a search hierarchy of row searches and joins by:
b1) generating a top join for joining all results at metatype Object;
b2) traversing the branches of the search query top-down by
b′1) if a particular branch has no children, creating a row search with the metadata values of all branches from the root down to the particular branch as conditions on metadata values in the row search;
b′2) if a particular branch has more than one child, creating a join for joining row searches and joins at the metatype of the particular branch;
b′3) adding a row search created in step b′1) or a join created in step b′2), respectively, as a child of a preceding join;
c) performing all the row searches from step b) so as to result in a set of rows in the branch table;
d) performing the joins in the search hierarchy successively starting from the bottom of the search hierarchy and ending with the top of the search hierarchy; and
e) producing a result of the search query by retrieving all unique objects from the outcome of step d).

### Claim 8

A computer program product as in any preceding claim, wherein said metadata includes metadata attributes to respective branches of an object.

### Claim 9 (depends on 4, 8)

A computer program product as in claim 4 and 8, wherein said query function is adapted to accept search queries with constraint conditions on said metadata attributes.

### Claim 10 (depends on 9)

A computer program product as in claim 9, wherein said metadata attributes include timestamps on individual branches of an object.

### Claim 11 (depends on 9)

A computer program product as in claim 9, wherein said metadata attributes include access rights to individual branches of an object.

### Claim 12 (depends on 9)

A computer program product as in claim 9, wherein said metadata attributes include unit definitions for individual branches of an object.

### Claim 13 (depends on 4)

A computer program product as in claim 4, wherein a branch of a predetermined first metadata type in an individual object defines a relation from said individual object to another object and wherein said query function is adapted to search said database to find said another object by matching the metadata thereof with the metadata included in said branch of a predetermined first metadata type value in said individual object.

### Claim 14 (depends on 13)

A computer program product as in claim 13, wherein a branch of a predetermined second metadata type, other than said first metadata type, in an individual object allows another object to define a reverse relation to said individual object, in the form of a branch of said predetermined first metadata type in said another object, and wherein said query function is adapted to find said another object by matching the metadata included in said branch of a predetermined second metadata type in said individual object with the metadata included in said branch of a predetermined first metadata type in said another object.

### Claim 15 (depends on 6, 13, 14)

A computer program product as in claim 6, 13 and 14, where said first metadata type is Relation and said second metadata type is Key.

### Claim 16 (depends on 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)

A method of searching a database of objects as provided by the computer program product according to any of claims 1-15, characterized by the steps of
specifying, through a man-machine interface of a computer (930), a search query in a declarative language in accordance with said hierarchical structure of objects in said database;
submitting said search query to said database engine through said computer;
receiving a result of said search query at said computer; and
presenting said result through said man-machine interface.

### Claim 17

A method of exporting data from at least one arbitrary database, characterized by
identifying a first plurality of relations between different pieces of data in said at least one database;
defining a second plurality of objects, each of said objects comprising metadata which represents individual ones of said first plurality of relations and said different pieces of data, said metadata being of n different metadata types, n being a predetermined integer;
for each object, forming an n-level hierarchical information structure, where each metadata type is represented at a respective unique level; and
storing the information structures thus formed for said second plurality of objects.

### Claim 18 (depends on 17)

A method as in claim 17, where said information structures are stored in at least one flat file on a long-time data storage medium, including but limited to a magnetic disk, an optical disk, a magnetooptical disk or an electronic semiconductor memory.

### Claim 19 (depends on 17, 18)

A method as in claim 17 or 18, where said information structures are expressed in a text format of a declarative language.

### Claim 20 (depends on 19)

A method as in claim 19, wherein said declarative language is xml.

### Claim 21 (depends on 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)

A method of connecting objects in a database of objects as provided by the computer program product according to any of claims 1-15, characterized by the steps, for an assumed individual object, of
for all branches in the assumed object that are of a first predetermined metadata type, said first predetermined metadata type allowing a relation to be defined from the assumed object to another object:
forming a query based on the metadata of the branch,
searching the database with the query, and
collecting, as a result of the searching step, all objects, if any, that the assumed object has a relation to; and
for all branches in the assumed object that are of a second predetermined metadata type, other than said first predetermined metadata type, said second predetermined metadata type allowing a reverse relation to be defined from another object to the assumed object:
forming a query based on the metadata of the branch,
searching the database with the query, and
collecting, as a result of the searching step, all objects, if any, that have a relation to the assumed object.
