[go: up one dir, main page]

DE102006008740A1 - Data consistency securing method, involves carrying out modeling of dependencies between data, and producing data structure containing validation counter and/or transaction time stamp and dependence instruction adjacent to basic values - Google Patents

Data consistency securing method, involves carrying out modeling of dependencies between data, and producing data structure containing validation counter and/or transaction time stamp and dependence instruction adjacent to basic values Download PDF

Info

Publication number
DE102006008740A1
DE102006008740A1 DE102006008740A DE102006008740A DE102006008740A1 DE 102006008740 A1 DE102006008740 A1 DE 102006008740A1 DE 102006008740 A DE102006008740 A DE 102006008740A DE 102006008740 A DE102006008740 A DE 102006008740A DE 102006008740 A1 DE102006008740 A1 DE 102006008740A1
Authority
DE
Germany
Prior art keywords
data
derived
dependencies
time stamp
date
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
DE102006008740A
Other languages
German (de)
Inventor
Birthe Böhm
Norbert Gewald
Gerold Herold
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Siemens Corp
Original Assignee
Siemens Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Siemens Corp filed Critical Siemens Corp
Priority to DE102006008740A priority Critical patent/DE102006008740A1/en
Priority to PCT/EP2006/069902 priority patent/WO2007098817A1/en
Publication of DE102006008740A1 publication Critical patent/DE102006008740A1/en
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2365Ensuring data consistency and integrity

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The method involves carrying out modeling of dependencies between data (A). A data structure is produced, where the data structure contains a validation counter (G) and/or a transaction time stamp (T) and a dependence instruction (R) adjacent to respective virtual data e.g. basic values. The validation is determined either by values at a time point of change of basic data (B1, B2) by entry in dependent data structures or by comparison of the time stamp in the individual data. The stamp is assigned for a portion at consistent data variations, by which the consistency of the data is verified.

Description

Die Erfindung betrifft ein Verfahren zur Sicherung der Datenkonsistenz von voneinander abhängigen Daten, bei dem eine explizite Modellierung der Abhängigkeiten zwischen Daten erfolgt, um Inkonsistenzen bei abhängigen Daten nach Änderungen an deren Basisdaten zu erkennen oder sogleich die Konsistenz wiederherzustellen.The The invention relates to a method for securing data consistency of interdependent data, which explicitly models dependencies between data, to inconsistencies in dependent Data after changes to recognize their basic data or to immediately restore consistency.

Das Problem der abhängigen Daten wird momentan gelöst, indem verlangt wird, dass dem Gesamtsystem alle Daten und deren Abhängigkeiten bekannt sind und direkten Zugriff auf alle Daten hat. Im Falle der Änderung der Basisdaten werden dann alle abhängigen Daten durch dieses globale System aktualisiert. Die Abhängigkeitsbeschreibungen und Änderungsvorschriften werden also global verwaltet.The Problem of dependent Data is currently being solved, by requiring that the entire system has all the data and its dependencies are known and have direct access to all data. In the case of change The base data will then be all dependent data by this global System updated. The dependency descriptions and amendments So they are managed globally.

In Datenbanksystemen werden beispielsweise so genannte Trigger definiert, die diese Aktualisierung im Falle der Änderung von Basisdaten vornehmen. Für jeden Typ oder jede Instanz eines Basisdatums wird damit zentral die notwendige Aktualisierungsfunktionalität definiert. Das setzt jedoch die Kenntnis aller Daten und ihrer Abhängigkeiten voraus.In Database systems are defined, for example, so-called triggers, who make this update in case of modification of basic data. For each Type or each instance of a base date becomes central the necessary update functionality Are defined. This, however, sets the knowledge of all data and their dependencies ahead.

Falls sich nun ein Datum ändert, müssen alle davon abgeleiteten Daten ebenfalls geändert werden, um die Datenkonsistenz innerhalb dieses Datensatzes zu erhalten.If Now a date changes, have to all data derived from it will also be changed to data consistency within this record.

Eine zusätzliche Problematik ergibt sich, wenn mehrere Systeme auf einen gemeinsamen Datenbestand zugreifen, diesen jedoch systemspezifisch erweitern können. In diesem Fall werden proprietäre Daten, d.h. Daten die nur ein System interpretieren kann, mit Daten vermengt, die allen Systemen bekannt sind. Es ist dabei ebenfalls möglich, dass Abhängigkeiten zwischen den proprietären und den gemeinsamen Daten bestehen, die ebenfalls bei Änderungen an den Basisdaten zu Inkonsistenzen führen können.A additional Problem arises, if several systems on a common Access data but extend it system-specifically can. In this case, be proprietary Data, i. Data that only one system can interpret, with data blended, which are known to all systems. It is also here possible, that dependencies between the proprietary and the common data, which also applies to changes can lead to inconsistencies in the basic data.

Die der Erfindung zu Grunde liegende Aufgabe besteht nun darin, ein Verfahren zur Sicherung der Datenkonsistenz von voneinander abhängigen Daten anzugeben, bei dem die oben genannten Nachteile vermieden werden.The The object underlying the invention is now, a Method for securing the data consistency of interdependent data specify, in which the above-mentioned disadvantages are avoided.

Diese Aufgabe wird erfindungsgemäß durch die Merkmale des Patentanspruchs 1 erfindungsgemäß gelöst.These Task is achieved by the features of claim 1 solved according to the invention.

Die weiteren Ansprüche betreffen vorteilhafte Ausgestaltungen des erfindungsgemäßen Verfahrens.The further claims relate to advantageous embodiments of the method according to the invention.

Die Erfindung besteht im Wesentlichen darin, dass, im Gegensatz zum herkömmlichen Verfahren zur Sicherung der Datenkonsistenz Abhängigkeiten und optionale Ableitungsvorschriften dezentral in den Daten hinterlegt werden, wodurch kein übergeordnetes Erfassungs- und Verwaltungssystem notwendig ist und die Verarbeitung von Datenbeständen ermöglicht wird, die nicht allen beteiligten Systemen bekannt sind. Letzteres bedeutet, die abgeleiteten Daten können von einzelnen Systemen beliebig zum Datenbestand hinzugefügt werden, ohne dass die anderen beteiligten Systeme oder ein Gesamtsystem diese Daten interpretieren muss. Dies wird dadurch ermöglicht, dass die Daten quasi selbst für ihre Aktualisierung verantwortlich sind. Die Einbeziehung eines Transaktionszeitstempels erlaubt außerdem eine genaue Kontrolle über die zu berechnenden Daten und vermeidet redundante Auswertungen. Mit Hilfe der oben beschriebenen Verfahren ist jederzeit ersichtlich, ob Datenwerte gültig oder ungültig sind. Durch die optionale Beschreibung der Ableitungsvorschriften können die Datenwerte neu berechnet werden.The The invention consists essentially in that, in contrast to usual Method for securing data consistency Dependencies and optional derivation rules decentralized stored in the data, which no parent Collection and management system is necessary and processing of data allows which are not known to all systems involved. The latter means the derived data can can be added to the dataset as required by individual systems without the other systems involved or a complete system must interpret this data. This is made possible by that the data is almost for yourself their update are responsible. The inclusion of a Transaction time stamp also allows precise control over the to be calculated and avoids redundant evaluations. With Help of the above-described methods is evident at all times whether data values are valid or invalid are. Due to the optional description of the derivation regulations, the Data values are recalculated.

Im Folgenden wird die Erfindung anhand von bevorzugten Ausführungsbeispielen näher erläutert. Dabei zeigtin the The invention is based on preferred embodiments explained in more detail. there shows

1 eine Darstellung zur Erläuterung eines ersten Ausführungsbeispiels, bei dem Abhängigkeiten von den Basisdaten ausgehend abgelegt werden, 1 a representation for explaining a first embodiment in which dependencies are stored starting from the basic data,

2 eine Darstellung zur Erläuterung eines zweiten Ausführungsbeispiels, bei dem Abhängigkeiten von den abgeleiteten Daten ausgehend abgelegt werden und 2 a representation for explaining a second embodiment in which dependencies are stored based on the derived data and

3 eine Darstellung zur Erläuterung eines dritten Ausführungsbeispiels, bei dem Abhängigkeiten sowohl ausgehend von Basisdaten als auch ausgehend von den abgeleiteten Daten abgelegt werden. 3 a representation for explaining a third embodiment in which dependencies are stored both based on basic data and on the basis of the derived data.

Die Voraussetzung, um Inkonsistenzen bei abhängigen Daten nach Änderungen an deren Basisdaten zu erkennen oder sogleich die Konsistenz wiederherzustellen, ist eine explizite Modellierung der Abhängigkeiten zwischen Daten. Im Gegensatz zur bisherigen Lösung ist dabei kein übergeordnetes Gesamtsystem notwendig, das diese Abhängigkeiten verwaltet, sondern diese Abhängigkeiten werden direkt in den betroffenen Daten abgelegt. Die Gültigkeit von Werten wird entweder zum Zeitpunkt der Änderung von Basisdaten über einen Vermerk in den abhängigen Datenstrukturen oder über einen Vergleich von Transaktionszeitstempeln in den einzelnen Daten ermittelt. Im Gegensatz zu einem normalen Zeitstempel wird ein Transaktionszeitstempel jeweils für eine Menge an konsistenten Datenänderungen vergeben, d.h. alle Daten mit einem identischen Transaktionszeitstempel sind garantiert konsistent zueinander und zu unterliegenden Daten, also Daten, von denen die betrachteten Daten abhängig sind, mit einem älteren Transaktionszeitstempel. Besteht eine Abhängigkeit zwischen zwei Daten und das Datum der unterliegenden Daten ist jünger als das abgeleitete Datum, dann muss die Konsistenz des abgeleiteten Datums überprüft werden.The prerequisite for inconsistencies in dependent data after changes to their basic data recognizing or immediately restoring consistency is an explicit modeling of the dependencies between data. In contrast to the previous solution, no superordinate overall system is necessary to manage these dependencies, but these dependencies are stored directly in the affected data. The validity of values is determined either at the time of changing base data via a note in the dependent data structures or by comparing transaction time stamps in the individual data. In contrast to a normal time stamp, a transaction time stamp is assigned in each case for a set of consistent data changes, ie, all data with an identical transaction time stamp is guaranteed to be consistent with each other and underlying data, that is, data on which the considered data is dependent, with an older transaction time stamp. If there is a dependency between two dates and the date of the underlying data is younger than the derived date, then the consistency of the derived date must be checked.

Falls nicht nur die Konsistenz von Daten überprüft werden soll, kann darüber hinaus optional auch die Ableitungsvorschrift hinterlegt werden, die beschreibt, wie die abgeleiteten Daten aus den Basisdaten berechnet werden. Damit ist eine automatische Berechnung der abgeleiteten Daten möglich.If Not only can the consistency of data be checked, beyond that optionally also the derivation rule is deposited, which describes how the derived data is calculated from the base data. This allows an automatic calculation of the derived data.

Die Erfindung basiert auf einer Datenstruktur, die neben den eigentlichen Daten folgende Komponenten aufweist:

  • 1. eine Gültigkeitsmarkierung und/oder einen Transaktionszeitstempel
  • 2. Abhängigkeitsbeschreibungen
  • 3. optional Ableitungsvorschriften
The invention is based on a data structure which, in addition to the actual data, has the following components:
  • 1. a validity mark and / or a transaction time stamp
  • 2. dependency descriptions
  • 3. optional derivation rules

Falls Berechnungsvorschriften nur ausgehend von den Basisdaten zu den abgeleiteten Daten formuliert werden, können nur Basisdaten geändert werden. Dies muss durch Kennzeichnung oder Zugriffsmechanismen sichergestellt werden. Die direkte Modifikation von abgeleiteten Daten ist dann erlaubt, wenn die Berechnungsvorschriften bidirektional abgelegt werden, d.h. auch bekannt ist, wie sich ein Basisdatum aus dem abgeleiteten Datum ergibt. Daraus ergeben sich dann weitere Bedingungen an die Verfahren, die im Folgenden nicht gesondert berücksichtigt werden.If Calculation rules only starting from the basic data to the derived data, only basic data can be changed. This must be ensured by labeling or access mechanisms become. The direct modification of derived data is then allowed if the calculation rules are stored bidirectionally are, i. Also known is how a base date derived from the Date results. This then results in additional conditions to the Procedures that will not be considered separately below.

Je nach den Anforderungen im System kann dabei eines der folgenden drei Verfahren angewandt werden. Dabei wird ein Beispiel verwendet, welches aus einer Gewichtsangabe und einer Größenangabe den Body-Mass-Index (BMI) berechnet, aus dem dann eine Einstufung in eine Gewichtsklassifikation erfolgt. Der BMI berechnet sich aus dem Gewicht in Kilogramm geteilt durch die Größe in Metern zum Quadrat. Die Gewichtsklassifikation bezieht sich auf den BMI und ermittelt über eine Tabelle die Einstufung in Untergewicht, Normalgewicht, Übergewicht, usw.ever according to the requirements in the system can be one of the following three methods are applied. An example is used which from a weight indication and a size specification the body mass index (BMI), from which then a classification into a weight classification he follows. The BMI is calculated from the weight divided into kilograms by the size in meters to square. The weight classification refers to the BMI and determines over a table classification in underweight, normal weight, overweight, etc.

Zu den im Folgenden dargestellten Ausführungsbeispielen sind jeweils zum besseren Verständnis Umsetzungsbeispiele in XML angegeben. Diese Beispiele sind bewusst sehr einfach gehalten bzw. es gibt weitaus komplexere Anwendungsfälle, bspw. hinsichtlich der Art der Referenzierung, der Ablage der Zeitstempel oder der Darstellung der Berechnungsvorschriften.To the embodiments shown below are respectively for a better understanding of implementation examples specified in XML. These examples are deliberately kept very simple or There are far more complex applications, for example in terms of Type of referencing, storage of timestamp or presentation the calculation rules.

Ausführungsbeispiel 1Embodiment 1

Die Abhängigkeiten werden hier ausgehend von den Basisdaten abgelegt.The dependencies are stored here starting from the basic data.

In diesem Fall werden bei Änderungen an den Basisdaten über die Abhängigkeiten alle abgeleiteten Daten identifiziert – es müssen rekursiv auch von abgeleiteten Daten des Basisdatums abhängige Daten identifiziert werden. Zur Feststellung der Inkonsistenz werden bei einer Änderung eines Basisdatums alle abhängigen Daten darüber informiert, dass sie auf ungültigen Werten basieren. Dies kann z.B. durch das Setzen eines einfachen booleschen „Schalters" erfolgen, der Bestandteil der Daten ist. Wird auf abgeleitete Daten zugegriffen, so ist damit ihre Gültigkeit feststellbar. Damit ist sichergestellt, dass für jeden Wert im System seine Gültigkeit bekannt ist.In this case will be changed on the basic data via the dependencies all derived data identified - it must also be recursively derived Data dependent on the base date Data to be identified. To determine the inconsistency in case of a change a base date all dependent Data about it informed that they are invalid Values are based. This can e.g. by putting a simple one Boolean "switch", the component the data is. If derived data is accessed, so is it their validity ascertainable. This ensures that each value in the system is valid is known.

Dieses Verfahren kann verwendet werden, wenn lediglich die Gültigkeit von Werten ermittelt werden muss. Eine Aktualisierung der abgeleiteten Daten kann dann systemabhängig erfolgen.This Procedure can be used if only the validity must be determined by values. An update of the derived Data can then be system dependent respectively.

In 1 wird dieses Verfahren schrittweise gezeigt. Schritt 1 stellt die Ausgangssituation dar, bei der die Abhängigkeiten ausgehend von den Basisdaten B1 und B2 zu den abgeleiteten Daten A formuliert werden. Bei einer Änderung eines Basiswertes W2 müssen die abhängigen Werte WA entsprechend bspw. mit Hilfe eines Gültigkeitsschalter G als ungültig gekennzeichnet werden, wie in Schritt 2a und 2b zu sehen ist.In 1 this procedure is shown step by step. Step 1 represents the initial situation in which the dependencies are formulated from the basic data B1 and B2 to the derived data A. When a base value W2 changes, the dependent values WA must be marked as invalid, for example, with the aid of a validation switch G, as can be seen in steps 2a and 2b.

Einfaches Umsetzungsbeispiel hierzu in XMLSimple implementation example in XML

Es gibt zwei Applikationen, die auf einem gemeinsamen Datensatz arbeiten. Die Applikationen sollen bei dem gemeinsamen Zugriff feststellen können, ob die Daten aktuell sind. Die erste Applikation erstellt folgenden Datensatz:

Figure 00060001
There are two applications that work on a common record. The applications should be able to determine if the data is up-to-date during shared access. The first application creates the following data record:
Figure 00060001

Die zweite Applikation ändert nun das Basisattribut Gewicht und wendet das in 1 beschriebene Vorgehen an. Dadurch ändern sich die Daten wie folgt:

Figure 00060002
Figure 00070001
The second application now changes the base attribute Weight and applies the procedure described in 1. This will change the data as follows:
Figure 00060002
Figure 00070001

Die erste Applikation prüft nach dem Vorgehen vor jedem lesen, ob die Daten noch gültig sind. Bei dem Versuch das Attribut Gewichtsklassifikation zu lesen stellt die erste Applikation fest, dass dieser Wert nicht mehr gültig ist und muss eine Neuberechung anstoßen.The first application checks After the procedure before each read whether the data is still valid. When trying to read the weight classification attribute the first application determines that this value is no longer valid and must trigger a recalculation.

Ausführungsbeispiel 2Embodiment 2

Die Abhängigkeiten R und evtl. eine Ableitungsvorschrift V werden in den abgeleiteten Daten abgelegt. Jedes Datum muss darüber hinaus ebenfalls einen Zeitstempel bzw. einen Transaktions-Zeitstempel T beinhalten, wie in Schritt 1 von 2 gezeigt ist. Falls nun Änderungen an den Basisdaten B1 oder B2 vorgenommen werden, wird diese Änderung, wie aus Schritt 2 ersichtlich, nicht an abgeleitete Daten propagiert. Bei diesem Verfahren benötigen die Basisdaten keine Kenntnis über abhängige Daten. Zusätzlich wird der Transaktionszeitstempel T des Basisdatums aktualisiert. Die Werte der abgeleiteten Daten sind zu diesem Zeitpunkt nicht konsistent zu ihren Basisdaten, da deren Änderung noch nicht übernommen wurde. Die Datenmenge befindet sich also vorübergehend in einem inkonsistenten Zustand. Unter der Voraussetzung, dass beim Lesen des Datenbestandes immer konsistente Daten erwartet werden, muss eine Anpassung also spätestens beim Zugriff auf die abgeleiteten Daten erfolgen. In diesem Fall werden anhand der Abhängigkeitsbeschreibungen a bzw. b des abgeleiteten Datums sämtliche Basisdaten bestimmt, was sich rekursiv über mehrere Ebenen erstrecken kann. Soll nur die Gültigkeit des aktuellen Wertes überprüft werden, so genügt eine Analyse der Transaktionszeitstempel T der Basisdaten. Sind deren Transaktionszeitstempel älter oder genauso alt wie der Transaktionszeitstempel des abgeleiteten Datums A, so ist dessen Wert gültig und kann gegebenenfalls direkt verwendet werden.The dependencies R and possibly a derivation rule V are stored in the derived data. In addition, each date must also include a time stamp or a transaction time stamp T, as in step 1 of FIG 2 is shown. If changes are now made to the basic data B1 or B2, this change, as can be seen from step 2, is not propagated to derived data. In this method, the base data need no knowledge of dependent data. In addition, the transaction time stamp T of the base date is updated. The values of the derived data are not consistent with their base data at this time because their change has not yet been adopted. The amount of data is temporarily in an inconsistent state. Assuming that consistent data is always expected when reading the data, an adjustment must be made at the latest when accessing the derived data. In this case, based on dependency descriptions a or b of the derived date, all base data is determined, which may extend recursively over several levels. If only the validity of the current value is to be checked, an analysis of the transaction time stamps T of the basic data is sufficient. If their transaction timestamps are older or the same age as the transaction timestamps of the derived date A, their value is valid and can be used directly if necessary.

Soll nicht nur die Gültigkeit überprüft werden, so muss nun anhand der Ableitungsvorschriften V der aktuelle Wert des abgeleiteten Datums bestimmt werden. Zusätzlich muss der aktuelle Transaktionszeitstempel gesetzt werden. Dieser Transaktionszeitstempel kann auch dem Transaktionszeitstempel der letzten Änderung an den Basisdaten entsprechen. Damit ist der aktuelle Wert des Datums bekannt und dokumentiert, zu welchem Stand der Basisdaten der berechnete Wert konsistent ist. Dies ist in 2 in Schritt 3 zu sehen.If not only the validity is to be checked, then the derivative value V must be used to determine the current value of the derived date. In addition, the current transaction timestamp must be set. This transaction timestamp may also correspond to the transaction timestamp of the most recent change to the base data. Thus, the current value of the date is known and documented to which level of the basic data the calculated value is consistent. This is in 2 to see in step 3.

Dieses Verfahren kann sinnvoll bei großen Datenmengen mit eher wenigen Zugriffen auf die abgeleiteten Daten angewandt werden. Die Tiefe der Abhängigkeiten zwischen den Daten bzw. ihre Vernetzung sollte eher gering sein, um eine effiziente Aktualisierung zu gewährleisten.This Procedure may be useful for large Data sets with rather few accesses to the derived data be applied. The depth of dependencies between the data or their networking should be rather low in order to be efficient To ensure updating.

Einfaches Umsetzungsbeispiel hierzu in XMLeasy Implementation example in XML

Es gibt wieder zwei Applikationen, die auf einem gemeinsamen Datenbestand arbeiten. Applikation 1 erzeugt folgenden Datensatz:

Figure 00090001
There are again two applications that work on a common database. Application 1 generates the following data record:
Figure 00090001

Applikation 2 ändert nun das Basisattribut Gewicht und setzt dabei den Transaktionszeitstempel entsprechend:

Figure 00090002
Figure 00100001
Application 2 now changes the base attribute Weight and sets the transaction time stamp accordingly:
Figure 00090002
Figure 00100001

Applikation 1 will nun den Wert des Attributs Gewichtsklassifikation lesen und muss dafür nun die Gültigkeit überprüfen. Dazu verfolgt es die Abhängigkeiten über das Attribut BMI bis zu den Basisattributen Größe und Gewicht. Bei dem Basisattribut Gewicht stellt Applikation 1 fest, dass der Zeitstempel neuer ist, als bei dem zu lesenden Attribut Gewichtsklassifikation und muss nun eine Neuberechnung anstoßen. Zuerst wird von unten nach oben nach der dort abgelegten Vorschrift das Attribut BMI neu berechnet, und dann nach dessen Vorschrift das Attribut Gewichtsklassifikation. Applikation 1 speichert die neu berechneten Daten dann wie folgt:

Figure 00100002
Figure 00110001
Application 1 now wants to read the value of the weight classification attribute and now has to check the validity. It tracks the dependencies via the attribute BMI up to the basic attributes size and weight. For the base attribute Weight Application 1 determines that the time stamp is newer than the weight attribute to be read and must now trigger a recalculation. First, the attribute BMI is recalculated from bottom to top according to the rule stored there, and then according to its rule the attribute weight classification. Application 1 then saves the newly calculated data as follows:
Figure 00100002
Figure 00110001

Ausführungsbeispiel 3Embodiment 3

Bei diesem Verfahren handelt es sich um eine Kombination der beiden vorherigen Verfahren. Die Abhängigkeiten werden hier ausgehend von den Basisdaten und den abgeleiteten Daten hinterlegt. Zusätzlich werden noch die Ableitungsvorschriften in den abgeleiteten Daten hinterlegt.This procedure is a combination of the two previous methods. The Ab Dependencies are stored here on the basis of the basic data and the derived data. In addition, the derivation rules are also stored in the derived data.

In 3 ist in Schritt 1 die doppelte Abhängigkeitsmodellierung ersichtlich. Bei Änderung der Basisdaten werden die Änderungen hierbei, wie im ersten Verfahren, an die abgeleiteten Daten propagiert und dort lediglich vermerkt, dass der momentane Wert zu den Basiswerten nicht konsistent ist, was in 3 in Schritt 2 ersichtlich ist. Beim Zugriff auf die abgeleiteten Daten wird dann deren Gültigkeit anhand dieses Vermerks geprüft und anschließend gemäß des zweiten Verfahrens vorgegangen. Falls der Wert gültig ist kann er sofort verwendet werden, anderenfalls werden die Basisdaten über die Abhängigkeitsbeschreibungen ermittelt und aus diesen Basisdaten der aktuelle Wert berechnet. Die Gültigkeitsvermerke werden dann wieder zurückgesetzt. Das Ergebnis dieses Vorganges ist in der 3 in Schritt 3 beispielhaft zu sehen.In 3 In step 1, double dependency modeling is apparent. When the basic data is changed, the changes are propagated to the derived data, as in the first method, where they are merely noted that the current value is not consistent with the base values, which is shown in FIG 3 in step 2 can be seen. When accessing the derived data, their validity is then checked on the basis of this memorandum and then proceeded according to the second method. If the value is valid, it can be used immediately, otherwise the base data is determined using the dependency descriptions and the current value is calculated from this base data. The validity notes are then reset. The result of this process is in the 3 to see in step 3 by way of example.

Dieses Verfahren ist sinnvoll bei großen Datenmengen mit zahlreichen Zugriffen auf die abgeleiteten Daten. Die Tiefe der Abhängigkeiten ist hierbei nicht relevant.This Procedure is useful for large Data sets with numerous accesses to the derived data. The depth of dependencies is not relevant here.

Eine Variante dieses Ausführungsbeispiels besteht darin, dass die Daten nicht als ungültig gekennzeichnet werden, sondern gleich neu berechnet werden, womit die Daten immer aktuell und konsistent sind.A Variant of this embodiment is that the data is not marked as invalid, but be recalculated, which keeps the data up-to-date and consistent.

Einfaches Umsetzungsbeispiel hierzu in XMLeasy Implementation example in XML

Wie bei den vorherigen Bespielen arbeiten zwei Applikationen auf einem gemeinsamen Datenbestand und dabei erzeugt Applikation 1 folgenden Datensatz:

Figure 00120001
Figure 00130001
As with the previous examples, two applications work on a common database, and application 1 generates the following data record:
Figure 00120001
Figure 00130001

Applikation 2 ändert den Wert des Attributes Gewicht und kennzeichnet zusätzlich den dadurch ungültig gewordenen Baum:

Figure 00130002
Application 2 changes the value of the Weight attribute and additionally identifies the tree that has become invalid:
Figure 00130002

Applikation 1 will nun den Wert des Attributes BMI lesen und prüft dafür vorher die Gültigkeit des Wertes mittels der Valid Eigenschaft des Attributes. Da das Attribut BMI ungültig ist muss es ausgehend von den Basiswerten unter Zuhilfenahme der Berechnungsvorschrift, gespeichert in der Eigenschaft Formula, neu berechnet werden. Applikation 1 schreibt das neue Datum zurück und aktualisiert den Datensatz folgendermaßen:

Figure 00140001
Application 1 now wants to read the value of the attribute BMI and first checks the validity of the value by means of the Valid property of the attribute. Since the BMI attribute is invalid, it must be recalculated starting from the base values using the calculation rule stored in the Formula property. Application 1 writes back the new date and updates the record as follows:
Figure 00140001

Claims (5)

Verfahren zur Sicherung der Datenkonsistenz von voneinander abhängigen Daten, bei dem eine Modellierung der Abhängigkeiten zwischen Daten dadurch erfolgt, dass eine Datenstruktur erzeugt wird, die neben den jeweiligen eigentlichen Daten (WA, W2), eine Gültigkeitsmarkierung (G) und/oder einen Transaktionszeitstempel (T) und mindestens eine Abhängigkeitsbeschreibung (R) enthält.Method for securing the data consistency of interdependent Data in which a modeling of dependencies between data thereby is done that a data structure is generated, in addition to the respective actual data (WA, W2), a validity mark (G) and / or a transaction time stamp (T) and at least one dependency description Contains (R). Verfahren nach Anspruch 1, bei dem die Gültigkeit von Werten entweder zum Zeitpunkt der Änderung von Basisdaten über einen Vermerk in den abhängigen Datenstrukturen oder über einen Vergleich von Transaktionszeitstempeln in den einzelnen Daten ermittelt wird, wobei ein Transaktionszeitstempel jeweils für eine Menge an konsistenten Datenänderungen vergeben wird, bei dem die Konsistenz der Daten überprüft wird, sofern eine Abhängigkeit zwischen mindestens zwei Daten besteht und ein Basisdatum jünger ist als ein davon abgeleitetes Datum.The method of claim 1, wherein the validity of values either at the time of changing base data over one Note in the dependent Data structures or over a comparison of transaction timestamps in the individual data is determined, wherein a transaction time stamp each for a quantity on consistent data changes is awarded, where the consistency of the data is checked, if a dependency between at least two dates and a base date is younger as a derived date. Verfahren nach Anspruch 1, bei dem in der Datenstruktur zusätzlich mindestens eine Ableitungsvorschrift enthalten ist.The method of claim 1, wherein in the data structure additionally at least one derivation rule is included. Verfahren nach Anspruch 3, bei dem mindestens eine Ableitungsvorschrift (V) beschreibt, wie die abgeleiteten Daten (A) aus den Basisdaten (B1, B2) berechnet werden und bei dem eine automatische Berechnung der abgeleiteten Daten mit Hilfe der Ableitungsvorschrift erfolgt.Method according to claim 3, at least a derivation rule (V) describes how the derived data (A) are calculated from the basic data (B1, B2) and in which an automatic calculation of the derived data with the help of Derivation rule takes place. Verfahren nach einem der vorhergehenden Ansprüche, bei dem durch Kennzeichnung oder Zugriffsmechanismen sichergestellt wird, dass nur Basisdaten änderbar sind, sofern nur Berechnungsvorschriften von den Basisdaten zu den abgeleiteten Daten formuliert sind und eine direkte Modifikation von abgeleiteten Daten nur dann erlaubt ist, wenn in den Berechnungsvorschriften festgelegt ist, wie sich ein Basisdatum aus dem abgeleitetem Datum ergibt.Method according to one of the preceding claims, in This is ensured by labeling or access mechanisms is that only basic data changeable are, provided only calculation instructions from the basic data to the derived ones Data are formulated and a direct modification of derived Data is only allowed if in the calculation rules It defines how a base date is derived from the derived date results.
DE102006008740A 2006-02-24 2006-02-24 Data consistency securing method, involves carrying out modeling of dependencies between data, and producing data structure containing validation counter and/or transaction time stamp and dependence instruction adjacent to basic values Ceased DE102006008740A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
DE102006008740A DE102006008740A1 (en) 2006-02-24 2006-02-24 Data consistency securing method, involves carrying out modeling of dependencies between data, and producing data structure containing validation counter and/or transaction time stamp and dependence instruction adjacent to basic values
PCT/EP2006/069902 WO2007098817A1 (en) 2006-02-24 2006-12-19 Method for securing the data consistency of interdependent data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
DE102006008740A DE102006008740A1 (en) 2006-02-24 2006-02-24 Data consistency securing method, involves carrying out modeling of dependencies between data, and producing data structure containing validation counter and/or transaction time stamp and dependence instruction adjacent to basic values

Publications (1)

Publication Number Publication Date
DE102006008740A1 true DE102006008740A1 (en) 2007-08-30

Family

ID=37835212

Family Applications (1)

Application Number Title Priority Date Filing Date
DE102006008740A Ceased DE102006008740A1 (en) 2006-02-24 2006-02-24 Data consistency securing method, involves carrying out modeling of dependencies between data, and producing data structure containing validation counter and/or transaction time stamp and dependence instruction adjacent to basic values

Country Status (2)

Country Link
DE (1) DE102006008740A1 (en)
WO (1) WO2007098817A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2862101B1 (en) * 2012-06-15 2018-10-17 Telefonaktiebolaget LM Ericsson (publ) Method and a consistency checker for finding data inconsistencies in a data repository

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020147855A1 (en) * 2001-04-06 2002-10-10 International Business Machines Corporation Method and system for cross platform, parallel processing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5692184A (en) * 1995-05-09 1997-11-25 Intergraph Corporation Object relationship management system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020147855A1 (en) * 2001-04-06 2002-10-10 International Business Machines Corporation Method and system for cross platform, parallel processing

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
MORSE, Denis; McGRATH, Roland; FRYSINGER, Mike: UNIX man pages : make (). GNU 1989. (recherchiert am 16.1.07) <URL:http://unixhelp.ed.ac.uk/CGI/man- cgi?make>
MORSE, Denis; McGRATH, Roland; FRYSINGER, Mike: UNIX man pages : make (). GNU 1989. (recherchiert am 16.1.07) <URL:http://unixhelp.ed.ac.uk/CGI/mancgi?make> *

Also Published As

Publication number Publication date
WO2007098817A1 (en) 2007-09-07

Similar Documents

Publication Publication Date Title
DE69937332T2 (en) Method and device for software development
DE10040987B4 (en) Method and apparatus for matching updates of redundant data in relational databases
DE10313048A1 (en) System and method for managing distributed concurrent versions
DE102010042288A1 (en) Apparatus and method for automatically creating a process diagram
DE102006008740A1 (en) Data consistency securing method, involves carrying out modeling of dependencies between data, and producing data structure containing validation counter and/or transaction time stamp and dependence instruction adjacent to basic values
EP3441919A1 (en) Method for exchanging data between engineering tools of an engineering system and engineering system for carrying out the method
DE10233971A1 (en) Software generating method for a software-controlled device uses a software model implemented as data in a computer to derive software program code automatically from the model
EP1235123A2 (en) Add-om mechanism for a control system based on a type data-field
EP1285315B1 (en) Information processing system and method for operation thereof
EP2037375B1 (en) Method for operating databases
EP1515244A2 (en) Mapping a class hierarchy to a relational database system
WO2005038669A1 (en) Method for cdr data processing
EP1674953B1 (en) System and method for reusing of design related data
DE10058391C2 (en) Object processing device
DE102004023634B4 (en) Method for checking the completeness and consistency of an information library
WO2004072850A2 (en) Method and device for modifying modular messages
DE102012202603B3 (en) Method for model-based software developing of programs with database access, involves converting old database entries into new database entries and/or converting old data schemas into new database schemas
EP1099172A1 (en) Method, arrangement and set of a plurality of arrangements for remedying at least one inconsistency in a group of databases which comprises a database and at least one copy database of the database
EP1343078A1 (en) Modelling system and generation of software generating systems
DE10109876B4 (en) Method and device for data management
DE10313589A1 (en) Modification method for modifying modular messages that are to be transferred over an electronic messaging system using a computer, whereby desired changes to a message structure are checked to see if they are permissible
WO2020094175A1 (en) Method and device for storing items of data and the relationships thereof
EP4361835A1 (en) Method for writing data sets into a relational database
DE102006037968B4 (en) Universal and extensible data management with observation and inter-process communication mechanisms
DE10304885A1 (en) Method and computer device for automatically processing a system component in a computer operating environment

Legal Events

Date Code Title Description
OP8 Request for examination as to paragraph 44 patent law
8131 Rejection