This application claims priority of International patent application PCT/FR01/02073, filed Jun. 28, 2001, which in turn claims priority to French patent application number 00/08631, filed Jul. 3, 2000.
The present invention relates to a method of processing structured data using an object-based computer language.
It has a general application in the electronic modelling of data, the display of data, and the construction of client-server computer applications.
Methods of processing data are already known which permit the management of structured or hierarchical data, whose lowest level is for example a document (text, image, sound etc.)
For example, a method is known which permits a link, via an application server, between pages originating or passing through the Internet, still known as web pages, and a database. In this type of method, the usable fields or variables on the web pages must refer to fields described in the diagram of the database being used.
Such a method has the disadvantage of limiting the structuring of the data to a set predetermined diagram. Moreover, no apprenticeship capacity is possible with this method The result is that updating of the diagram of the data requires joint modification of the database and the page models, which encumbers, slows down and complicates updating.
A method is also known which uses an object-based language and permits the exchange of data between the web pages (or forms) and a database. In this type of method, the database is generally of the relational type, which excludes any possibility of apprenticeship. Moreover, the correspondence between the page data and the objects is made by using fields defined by the class of object. Thus, a datum which does not correspond to a field of the class of object cannot be managed in a page model.
The advantage of the method according to the invention is to permit the generation of extremely rapid applications and a totally flexible structure of object-based data.
For example, when the method according to the invention is applied to the storage of data in a database, the method according to the invention comprises the following stages:
In practice, the data to be processed are received in the form of a dictionary object in order to be arranged in series consecutively in a selected storage space. In this case, the method according to the invention comprises the following stages:
According to another preferred realisation of the method according to the invention, the dictionary object is capable of storing in addition at least one calculating method under a predetermined name, and of finding as a value under this name the result of the associated calculating method.
For example, the data to be processed originate from a form or page in which the data are structured and linked to one another with value-type data having a name and/or container having a name and capable of containing a value or a container having a name.
Further features and advantages of the invention will appear from the detailed description given below of the drawings, which show:
The present invention describes a generic mechanism of data encapsulation adapted to any data structure. The encapsulation mechanism according to the invention uses a base object referred to hereinafter as a dictionary object.
A dictionary object is understood here to mean an object which makes it possible to process (store and/or find) a value-type datum having a name or a container having a name, (the container being capable of itself containing at least one value having a name or at least one other container having a name).
The base function of a dictionary object is consequently to store in a memory space a container or a value under a predetermined name and also to find in a memory space the container or the corresponding value having a predetermined name.
The structure of a dictionary object is simple. The class of dictionary objects contains a table of names of the containers and values. The class of dictionary objects also comprises a table of containers and values which are labelled, i.e. arranged according to an index corresponding to that of the names of the containers or values.
For example, the techniques known as scrambling, such as those known as “hashtable” in JAVA language, or those described in the work “The art of computer programming”, Vol 1–3 boxed set HBK, by Donald E Knuth, 1999, make it possible to realise dictionary objects.
In the prior art, most of the data encapsulation methods suppose that the objects have a predefined structure and that one has precise knowledge of the data structure. The encapsulation process is generally capable of processing data whose structure corresponds to that of the object. For example, a datum having a structure consisting of name, forename, and date of birth is conveniently processed if the object “person” has as variables name, forename and date of birth. On the other hand, the datum “address” is not processed if the structure of the object “person” does not understand this type of variable.
The method according to the invention makes it possible precisely to encapsulate data whose structure is not known a priori.
In the example mentioned above, the dictionary object DIC1 according to the invention stores the value “Dupont” in the variable having the name “name”, the value “Paul” in the variable having the name “forename”, and stores a dictionary object DIC2 under the name “address”.
According to the invention, the dictionary object DIC2 is therefore capable of storing the value “3, allée des Violettes” in the variable having the name “street”; stores the value “Paris” under the name “town”; and stores the value “75012” under the name “postcode”.
With reference to
Advantageously, the method according to the invention makes it possible furthermore to add to the data further variables whose values are not present in the objects or containers.
Thus in the above-mentioned example, the object or container “person” can store the value “date of birth” and be encapsulated in a container “person” which is capable of further displaying the age according to a suitable method of calculation.
Advantageously the invention makes it possible to process these variables whose values have been obtained by methods of calculation. These values are advantageously arranged according to the invention in the manner of a dictionary object whereby it is possible to associate the name of a value and the method of calculation used in order to supply the value.
More particularly, after the name of a value has been received, it is checked whether this value name is associated with a method of calculation in the dictionary object. If there is an associated method, it is arranged to calculate the value according to the associated method of calculation and thus to obtain a result. If there is no associated method, it is arranged to search in the dictionary object for data forming a result and to release the corresponding result.
The method according to the invention has various applications. One of these is to input into a database new data whose structure is not known a priori.
For example, the data are captured in user interface pages known as forms or capture pages.
The present invention proposes a formalism whereby it is possible to name each field or variable of the form so as to generate self-structured data which can be updated in a selected storage space (for example, database).
The formalism consists for example of naming each field of the form in the following manner
The objects and sub-objects are here containers having a name.
It should be noted that the oblique / is an arbitrary separator which may be replaced by any other arbitrary character.
Container end and/or value end markers may also be provided.
Certain variables (container and/or value) may be empty.
By means of this formalism, when the data and field names are sent to an application server, it is possible to generate objects (containers) corresponding to the desired data structure.
For example, a form comprising the following fields and values:
With such a form it is possible to generate the following object:
Dictionary-type dictionary object Dic 1 stores the value “Dupont” under the field name “name”, the value “Jean” under the field name “forename”, and a dictionary-type dictionary object, Dic 2 under the field name “car”.
The dictionary-type dictionary object DIC2 therefore stores the value “Ford” under the field name “make” and also the value “Escort” under the field name “model.”
According to stage 100, a dictionary object DIC1, a field name (stage 102) and the corresponding attributed value (stage 104) are provided or received.
At the end of stages 100, 102 and 104, one can move on to storing the value (stage 106).
For each field name, the structure of the data contained in the said field under this name are analysed (stage 108). In practice, it is checked whether the field name contains the oblique “/”.
If the field name does not contain the arbitrary separating character (here an oblique), the value is stored under the name “field name” in the dictionary object (stage 110). Indeed, at this stage, the datum is of the simple variable type, i.e. the type of datum containing only a value under a name.
On the other hand, if the field name contains the arbitrary separator, this means that the datum is of the “container” type, capable of containing another object or sub-object. Then the name of this field is extracted (stage 112) and it is checked whether a sub-object exists in the dictionary object under this name (stage 114).
If so, the sub-object of the dictionary is obtained (stage 116) and the field name is modified (stage 124) by removing the part preceding the separator “/”, as well as the separator itself (stage 118).
On the other hand, if there is no sub-object in the dictionary object, it is arranged to create a sub-object (stage 120) and this is stored in the dictionary object.
When the sub-object is thus created (stage 122), it is arranged to modify the field name (stage 124) by) by removing the part preceding the separator “/”, as well as the separator itself (according to the above-mentioned stage 118).
After the process has been carried out, one has a sub-object (stage 126), a modified field name (stage 124) and a corresponding value (stage 128), so that it is possible to store the value (stage 130) by reiteration of the process according to stages 108 to 130.
If the above-mentioned example is used according to the flow chart of
This dictionary object also comprises a container “CAR” storing the value “FORD” under the field name “MAKE”.
According to stages 108 to 110, the value “JEAN” is stored in the field name “FORENAME”.
According to stages 108, 112, 114, 116, 118, 124, 126, 128, 130 and then 108 to 110, the value “ESCORT” is stored in the field name “CAR/MODEL”.
Finally, according to stages 108, 112, 114, 120, 122, 118, 124, 126, 128, 130 and then 108 to 110, the value “PARIS” is stored in the field name “ADDRESS/TOWN”.
With reference to
Starting from what is known as a “software” dictionary object, i.e. one resulting from an encapsulation such as described above (stage 200), and from a database object, known as “static”, i.e. non-encapsulated (stage 202), the procedure “update software object” is ready to start (stage 204).
The method is contrived to analyse the content (here every name) of the dictionary object to be processed (stages 206 and 208).
If there is a name, one moves on to the following processing stage (stage 212), if not one ends the process (stage 210).
If the name corresponds to a simple variable, the value of the variable is updated in the database (stage 214), according to storage methods which are not the subject of the present invention.
On the other hand, if the data is of the “container” type, it is checked whether there is a static sub-object in the database having this name (stage 216).
If so, a static sub-object corresponding to this name is searched in the database (stage 218), but in the absence of a static sub-object in the database under this name, it is arranged to create a static sub-object with this name in the database (stage 220).
At the end of stages 218 or 220, one has a static sub-object, and one obtains the software sub-object of the corresponding dictionary object (stage 224), the sub-object being encapsulated according to the encapsulating process according to the invention.
At the end of stage 224, one thus has a software sub-object (stage 226) which is homologous with the software object defined at stage 200, and a static sub-object (stage 228), originating from the database, which is homologous with the static object defined at stage 202.
With these static and software objects, it is possible to update the software (here dictionary) object data (stage 230) in the static object (here the database).
The present invention is a method of generating an application capable of being implanted by using a formalism of hierarchical data representation and using an object-based computer language of the Java or C++ type or the like.
The main advantage of the present invention is the capacity to modify dynamically the description diagram of the data, in particular to manage easily new types of objects or new values.
Moreover, in the case of a client-server application, in which the clients interact with the data (creation, modification, deletion), it is possible with the invention to reference objects of the database in pages on the web forming the user interface. It is thus possible to reference values or containers of values which do not exist in capture forms. Once these formulae have been sent to the application server according to the invention, these new containers and values are created in the database.
An advantageous, but non-limiting application of the present invention is in the medical field, in particular in the setting up of a healthcare network for managing patient clinical records.
Number | Date | Country | Kind |
---|---|---|---|
00 08631 | Jul 2000 | FR | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/FR01/02073 | 6/28/2001 | WO | 00 | 7/16/2002 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO02/03246 | 1/10/2002 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
4156903 | Barton et al. | May 1979 | A |
5093779 | Sakurai | Mar 1992 | A |
5257365 | Powers et al. | Oct 1993 | A |
5313598 | Yamakawa | May 1994 | A |
5506983 | Atkinson et al. | Apr 1996 | A |
5530957 | Koenig | Jun 1996 | A |
5634123 | Bennion | May 1997 | A |
5659727 | Velissaropoulos et al. | Aug 1997 | A |
5687365 | Velissaropoulos et al. | Nov 1997 | A |
5752243 | Reiter et al. | May 1998 | A |
5778389 | Pruett et al. | Jul 1998 | A |
5831558 | Harvell | Nov 1998 | A |
5867713 | Shrader et al. | Feb 1999 | A |
5956728 | Federighi et al. | Sep 1999 | A |
5970494 | Velissaropoulos et al. | Oct 1999 | A |
5983267 | Shklar et al. | Nov 1999 | A |
5995975 | Malcolm | Nov 1999 | A |
6047283 | Braun | Apr 2000 | A |
6226649 | Bodamer et al. | May 2001 | B1 |
6230157 | Malcolm et al. | May 2001 | B1 |
6253239 | Shklar et al. | Jun 2001 | B1 |
6356913 | Chu et al. | Mar 2002 | B1 |
6486897 | Arrouye et al. | Nov 2002 | B1 |
6490719 | Thomas | Dec 2002 | B1 |
6499036 | Gurevich | Dec 2002 | B1 |
6539396 | Bowman-Amuah | Mar 2003 | B1 |
6628305 | Hong et al. | Sep 2003 | B1 |
6651072 | Carino et al. | Nov 2003 | B1 |
20010056426 | Obendorf | Dec 2001 | A1 |
20060020586 | Prompt et al. | Jan 2006 | A1 |
Number | Date | Country |
---|---|---|
0 419 889 | Apr 1991 | EP |
Number | Date | Country | |
---|---|---|---|
20020194152 A1 | Dec 2002 | US |