DE102004044164A1 - Method and device for coding XML documents - Google Patents
Method and device for coding XML documents Download PDFInfo
- Publication number
- DE102004044164A1 DE102004044164A1 DE200410044164 DE102004044164A DE102004044164A1 DE 102004044164 A1 DE102004044164 A1 DE 102004044164A1 DE 200410044164 DE200410044164 DE 200410044164 DE 102004044164 A DE102004044164 A DE 102004044164A DE 102004044164 A1 DE102004044164 A1 DE 102004044164A1
- Authority
- DE
- Germany
- Prior art keywords
- person
- name
- attribute
- last name
- elements
- 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.)
- Withdrawn
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/235—Processing of additional data, e.g. scrambling of additional data or processing content descriptors
- H04N21/2353—Processing of additional data, e.g. scrambling of additional data or processing content descriptors specifically adapted to content descriptors, e.g. coding, compressing or processing of metadata
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/235—Processing of additional data, e.g. scrambling of additional data or processing content descriptors
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/435—Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Library & Information Science (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Die Erfindung betrifft ein Verfahren zum Kodieren und Dekodieren eines strukturierten Dokumentes, insbesondere eines XML-basierten Dokumentes. Die Struktur weist folgende Eigenschaften auf: Es existieren mit Werten (JOERG, HEUER, ANDREA, VOGT, ANDREAS, HUTTER) belegte Elemente (PERSON, FIRST NAME, LAST NAME), Elemente (PERSON) können mit Werten (3, 024, 035, 046) belegte Attribute (ID) aufweisen, Pfade verlaufen zu Elementen (PERSON, FIRST NAME, LAST NAME) und gegebenenfalls zur Attributen (ID) von einem Element gegebenenfalls über weitere Elemente zu dem jeweiligen Element (PERSON, FIRST NAME, LAST NAME) oder zu dem jeweiligen Attribut (ID) über jeweils miteinander verbundene Elemente. Erfindungsgemäß wird ein zu aktualisierendes Element (LAST NAME) oder Attribut durch eine Angabe von mindestens einem Pfad zu einer Zielgröße in Kombination mit dem Wert der Zielgröße identifiziert. Weiterhin betrifft die Erfindung Vorrichtungen zur Durchführung des Verfahrens.The invention relates to a method for coding and decoding a structured document, in particular an XML-based document. The structure has the following properties: There are elements (PERSON, FIRST NAME, LAST NAME) occupied by values (JOERG, HEUER, ANDREA, VOGT, ANDREAS, HUTTER), elements (PERSON) with values (3, 024, 035, 046) have assigned attributes (ID), paths to elements (PERSON, FIRST NAME, LAST NAME) and optionally to the attributes (ID) of an element, optionally via further elements to the respective element (PERSON, FIRST NAME, LAST NAME) or to the respective attribute (ID) via interconnected elements. According to the invention, an LAST NAME or attribute is identified by specifying at least one path to a target size in combination with the value of the target size. Furthermore, the invention relates to devices for carrying out the method.
Description
Die Erfindung betrifft ein Verfahren zum Kodieren und zum Dekodieren eines strukturierten Dokumentes, insbesondere eines XML-basierten Dokumentes. Weiterhin betrifft die Erfindung eine Kodier- und eine Dekodiereinrichtung zur Durchführung des Verfahrens.The The invention relates to a method for coding and decoding a structured document, especially an XML-based one Document. Furthermore, the invention relates to a coding and a Decoding device for implementation of the procedure.
XML (Extensible Markup Language) ist eine Sprache, mit der eine strukturierte Beschreibung von Inhalten eines Dokuments ermöglicht wird. Hierbei können Namensräume verwendet werden, die mittels XML-Schema-Sprachdefinitionen definiert sind. Eine genauere Beschreibung des XML-Schemas sowie der darin verwendeten Strukturen, Elemente und Inhaltsmodelle finden sich in den Referenzen [7], [8] und [9]. Das strukturierte Dokument entspricht einem Datenbaum, dessen Knoten bzw. Verzweigungen aus Elementen bestehen, welche mit Werten belegt sind. Diese Werte können von simplem Typ sein, d.h. beispielsweise Zahlen oder Schriftzüge enthalten, oder von komplexem Typ, d.h. beispielsweise weitere Elemente und/oder Attribute enthalten. Dementsprechend können Elemente weitere Elemente und/oder Attribute aufweisen, welche ebenfalls mit Werten belegbar sind. Jedes Element ist gemäß der Datenbaumstruktur mit einem oder mehreren weiteren Elementen verbunden. Zu jedem Element und Attribut verlaufen Pfade, welche bei einem Wurzelelement oder einem anderen Element beginnen und gegebenenfalls über mehrere weitere, jeweils miteinander verbundene Elemente verlaufen. Als Vaterelement eines Elementes oder Attributes wird ein anderes Element bezeichnet, welches als letztes Element in dem Pfad von dem Wurzelelement zu diesem Element oder Attribut enthalten ist.XML (Extensible Markup Language) is a language with which a structured Description of the contents of a document is enabled. Namespaces can be used here which are defined using XML Schema language definitions. A detailed description of the XML schema and the used therein Structures, elements and content models can be found in the references [7], [8] and [9]. The structured document corresponds to a data tree, whose nodes or branches consist of elements which are assigned with values. These values can be of a simple type i.e. For example, contain numbers or lettering, or complex Type, i. For example, contain other elements and / or attributes. Accordingly, you can Elements have further elements and / or attributes, which also can be assigned with values. Each element is in accordance with the data tree structure with connected to one or more other elements. To every element and attribute paths which are at a root element or start from another element and if necessary over several further, each interconnected elements run. When The parent element of an element or attribute becomes another element denoted as the last element in the path from the root element is included to this element or attribute.
Aus dem Stand der Technik sind Verfahren zur Kodierung von XML-basierten Dokumenten bekannt, bei denen das Dokument in eine kodierte Binärdarstellung umgewandelt wird. Beispiels weise werden in dem Dokument [3], das im Rahmen der Entwicklung eines MPEG-7-Kodierstandards entstanden ist, Verfahren zur Kodierung und Dekodierung von XML-basierten Dokumenten beschrieben. Hierbei werden Fragmente des XML-basierten Dokuments in so genannte „Fragment Update Units" aufgeteilt bzw. kodiert. Die Position von neu einzufügenden oder abzuändernden Elementen innerhalb des Datenbaumes wird über einen so genannten „Context Path" in Kombination mit „Position Codes" festgelegt. Der „Context Path" beschreibt die Elemente innerhalb des Datenbaumes, die über den neu einzufügenden oder abzuändernden Elementen stehen, d.h. er entspricht dem Pfad zu dem jeweiligen Element. Mit den „Position Codes" werden eventuelle Mehrdeutigkeiten aufgelöst, wenn ein Element an einer Position gemäß der Schemadefinition des XML-Dokuments mehrfach auftreten kann.Out The prior art are methods for encoding XML-based Documents are known in which the document in a coded binary representation is converted. For example, in the document [3], the as part of the development of an MPEG-7 coding standard is, method for encoding and decoding XML-based documents described. This will be fragments of the XML-based document in so-called "fragment Update Units "split or coded. The position of new to be inserted or modified Elements within the data tree are accessed via a so-called "context Path "in combination with "position Codes ". The "context Path "describes the elements within the data tree that are about to be reinserted or to be modified Elements, i. it corresponds to the path to the respective one Element. With the "position Codes "become possible ambiguities resolved if an item is at a position according to the schema definition of the XML document can occur multiple times.
Aufgabe der Erfindung ist es, ein effizientes Verfahren zur Kodierung und auch zur Dekodierung von strukturierten, insbesondere XML-basierten, Dokumenten vorzustellen. Weiterhin sollen eine zur Durchführung des Verfahrens geeignete Kodier- und Dekodiereinrichtung aufgezeigt werden.task The invention is an efficient method of coding and also for the decoding of structured, in particular XML-based, To present documents. Furthermore, a to carry out the Method suitable coding and decoding device be shown.
Diese Aufgabe wird durch ein Verfahren mit dem Merkmalen des Anspruchs 1, sowie durch ein Verfahren und Vorrichtungen mit Merkmalen von nebengeordneten Ansprüchen gelöst. Vorteilhafte Ausgestaltungen und Weiterbildungen sind Gegenstand von Unteransprüchen.These The object is achieved by a method having the features of the claim 1, and by a method and apparatus having features of sibling claims solved. Advantageous embodiments and further developments are the subject of Dependent claims.
Das erfindungsgemäße Verfahren betrifft die Kodierung eines strukturierten Dokumentes, wobei die Struktur – zumindest unter anderem – folgende Eigenschaften aufweist:
- • Es existieren mit Werten belegte Elemente.
- • Elemente können mit Werten belegte Attribute aufweisen.
- • Pfade verlaufen zu Elementen und gegebenenfalls auch zu Attributen von einem Element gegebenenfalls über weitere Elemente zu dem jeweiligen Element oder zu dem jeweili gen Attribut über jeweils miteinander verbundene Elemente.
- • Elements with values exist.
- • Elements can have values assigned to values.
- • Paths extend to elements and possibly also to attributes of an element optionally via further elements to the respective element or to the respective attribute via respectively interconnected elements.
Erfindungsgemäß wird ein zu aktualisierendes Element oder Attribut durch eine Angabe von mindestens einem Pfad zu einer Zielgröße in Kombination mit dem Wert der Zielgröße identifiziert.According to the invention is a to be updated element or attribute by an indication of at least a path to a target size in combination identified with the value of the target size.
Beim Kodieren eines Dokumentes wird das Dokument oder Teile des Dokumentes überarbeitet, wobei es von einer Darstellungsform in eine andere umgewandelt wird, so dass es von einem Enkoder zu einem Dekoder übertragen werden kann. Beim Dekodieren finden die entsprechenden Umkehrschritte zur Kodierung statt. Die Kodierung des strukturierten Dokumentes kann neben den erfindungsgemäßen Schritten weitere Schritte umfassen.At the To encode a document, the document or parts of the document will be revised, with it is transformed from one form of presentation to another, so that it can be transferred from an encoder to a decoder. At the Decoding finds the corresponding reversal steps for coding instead of. The coding of the structured document can be next to the steps according to the invention include further steps.
Bei der Zielgröße, deren Wert zur Identifizierung des zu aktualisierenden Elementes oder Attributes verwendet wird, kann es sich um ein einzelnes Element, ein einzelnes Attribut, oder um eine Kombination aus Elementen und/oder Attributen handeln. Die Aktualisierung eines Elementes oder Attributes kann aus der Veränderung des Wertes des Elementes oder Attributes bestehen, oder aus dem Hinzufügen des Elementes oder Attributes, gegebenenfalls in Kombination mit einem bestimmten Wert für das hinzuzufügende Element oder Attribut, oder aus einem Löschen des Elementes oder Attributes. Die Erfindung kann auch in Bezug auf eine Mehrzahl an zu aktualisierenden Elementen und/oder Attributen durchgeführt werden. Neben den Größen, welche gemäß der Erfindung das zu aktualisierende Element oder Attribut identifizieren, können weitere Größen zur Identifizierung des zu aktualisierenden Elementes oder Attributes zum Einsatz kommen, es ist jedoch auch möglich, dass die Größen, welche gemäß der Erfindung das zu aktualisierende Element oder Attribut identifizieren, zur eindeutigen Identifizierung des zu aktualisierenden Elementes oder Attributes genügen und somit ohne weiter Identifizierungsgrößen eingesetzt werden.The target size, whose value is used to identify the element or attribute to be updated, can be a single element, a single attribute, or a combination of elements and / or attributes. The updating of an element or attribute may consist of changing the value of the element or attribute, or of adding the element or attribute, optionally in combination with a particular value for the element or attribute to be added, or deleting the element or attribute. The invention may also be related to a plurality of updating elements and / or attributes. In addition to the sizes which according to the invention identify the element or attribute to be updated, other sizes can be used to identify the element or attribute to be updated, but it is also possible that the sizes which according to the invention, the element to be updated or Identify attribute to meet the unique identification of the element or attribute to be updated and thus used without further identification variables.
In Weiterbildung der Erfindung handelt es sich bei der Zielgröße um ein von dem zu aktualisierenden Element oder Attribut unterschiedliches Element oder Attribut. Besonders vorteilhaft ist es in diesem Fall, wenn das zu aktualisierende Element oder Attribut durch eine Angabe eines Pfades von der Zielgröße oder dem Vaterelement der Zielgröße zu dem zu aktualisierenden Element oder Attribut identifiziert wird. Dieser Pfad wird zusätzlich zum Pfad zu der Zielgröße und dem Wert der Zielgröße zur Identifikation des zu aktualisierenden Elementes oder Attributes eingesetzt.In Development of the invention is in the target size to a different from the item or attribute to be updated Element or attribute. It is particularly advantageous in this case if the item or attribute to be updated by an indication a path of the target size or the father element of the target size to updating element or attribute is identified. This Path becomes additional to the path to the target size and the Value of the target size for identification of the element or attribute to be updated.
In Ausgestaltung der Erfindung handelt es sich bei der Zielgröße um eine Kombination aus Elementen und/oder Attributen. Die Pfadangabe zu einer derartigen Zielgröße ist entsprechend der Zusammensetzung der Zielgröße ausgestaltet, z.B. durch Aneinanderreihung einzelner Pfade zu den einzelnen Bestandteilen der Zielgröße.In Embodiment of the invention is in the target size to a Combination of elements and / or attributes. The path to such a target size is corresponding the composition of the target, e.g. by juxtaposing individual paths to the individual components the target size.
Vorteilhaft ist es, wenn eine Nachricht umfassend den Wert des zu aktualisierenden Elementes oder Attributes, sowie umfassend die Angabe von dem mindestens einen Pfad zu der Zielgröße in Kombination mit dem Wert der Zielgröße zur Identifizierung des zu aktualisierenden Elementes oder Attributes von einer Kodiereinrichtung zu einer Dekodiereinrichtung übertragen wird.Advantageous it is when a message comprising the value of the to be updated Element or attribute, as well as the specification of the at least a path to the target size in combination with the value of the target size for identification of the element or attribute to be updated by a coding device transferred to a decoder becomes.
In Weiterbildung der Erfindung erfolgt für die Angabe von Pfaden und/oder Werten eine KodierungIn Development of the invention takes place for the indication of paths and / or Values a coding
- • gemäß dem MPEG-7 Standard, und/oder• according to the MPEG-7 Standard, and / or
- • gemäß einem Verfahren, bei dem Pfade durch den jeweiligen Pfaden zugeordnete Kodes fester Länge kodiert werden, und/oder• according to one Method in which paths are assigned by the respective paths Codes of fixed length be encoded, and / or
- • gemäß einem Verfahren bei dem mehrere Pfade durch einen zugeordneten Kode fester Länge kodiert werden.• according to one Method in which multiple paths through an associated code fixed Length coded become.
Eine Kodierung über MPEG-7 ermöglicht eine effiziente Darstellung der Pfade und Werte. Werden Pfade jeweils durch einen dem Pfad zugeordneten Kode fester Länge kodiert, so kann vor Einsatz des erfindungsgemäßen Verfahrens eine Abstimmung zwischen Kodier- und Dokodiereinrichtung darüber erfolgen, welcher Kode welchem Pfad entspricht.A Coding over MPEG-7 allows one efficient representation of paths and values. Be paths each encoded by a code associated with the path of fixed length, so before using the inventive method a coordination between coding and Dokodiereinrichtung over done, which code corresponds to which path.
Gemäß dem erfindungsgemäßen Verfahren zum Dekodieren eines strukturierten Dokumentes wird ein zu aktualisierendes Element oder Attribut durch eine Angabe von mindestens einem Pfad zu einer Zielgröße in Kombination mit dem Wert der Zielgröße identifiziert. In Weiterbildung des erfindungsgemäßen Dekodierverfahrens ist es möglich, dass die enkoderseitigen Verfahrensschritte der Ausgestaltungen und Weiterbildungen in entsprechender Umkehr auch dekoderseitig durchgeführt werden.According to the inventive method for Decoding a structured document becomes a to be updated Element or attribute by specifying at least one path to a target size in combination identified with the value of the target size. In a further development of the decoding method according to the invention it is possible that the encoder-side method steps of the embodiments and developments in the corresponding reversal also decoder side carried out become.
Die erfindungsgemäße Kodiereinrichtung eignet sich zum Durchführen des erfindungsgemäßen Verfahrens. Dies kann auch auf die Ausgestaltungen und Weiterbildungen zutreffen. Die erfindungsgemäße Kodiereinrichtung kann z.B. umfassen: Mittel zum Erstellen bzw. Zur-Verfügung-Stellen von Identifikationsinformationen für ein zu aktualisierendes Element oder Attribut, umfassend eine Angabe von mindestens einem Pfad zu einer Zielgröße in Kombination mit dem Wert der Zielgröße, und/oder Mittel zum Erstellen und Versenden einer Nachricht mit einer Angabe von mindestens einem Pfad zu einer Zielgröße in Kombination mit dem Wert der Zielgröße zur Identifikation eines zu aktualisierenden Elementes oder Attributes.The Coding device according to the invention is suitable to perform the method according to the invention. This may also apply to the embodiments and developments. The coding device according to the invention can e.g. include: means for providing or making available Identification information for an element or attribute to be updated, comprising an indication from at least one path to a target size in combination with the value the target size, and / or means to create and send a message with an indication of at least one path to a target size in combination with the value the target size for identification an element or attribute to be updated.
Die erfindungsgemäße Dekodiereinrichtung eignet sich zum Durchführen des erfindungsgemäßen Verfahrens. Dies kann auch auf die Ausgestaltungen und Weiterbildungen zutreffen. Die erfindungsgemäße Dekodiereinrichtung kann z.B. umfassen: Mittel zum Empfangen und Verarbeiten einer Nachricht mit einer Angabe von mindestens einem Pfad zu einer Zielgröße in Kombination mit dem Wert der Zielgröße zur Identifikation eines zu aktualisierenden Elementes oder Attributes, und/oder Mittel zum Identifizieren eines zu aktualisierenden Elementes oder Attributes unter Verwendung von einer Angabe von mindestens einem Pfad zu einer Zielgröße in Kombination mit dem Wert der Zielgröße, und/oder Mittel zum Hinzufügen und/oder Löschen und/oder Verändern eines Elementes oder Attributes unter Verwendung von einer Angabe von mindestens einem Pfad zu einer Zielgröße in Kombination mit dem Wert der Zielgröße.The Inventive decoder is suitable to perform the method according to the invention. This may also apply to the embodiments and developments. The decoding device according to the invention can e.g. comprise: means for receiving and processing a message with an indication of at least one path to a target size in combination with the value of the target size for identification an element or attribute to be updated, and / or means for Identify an item or attribute to update using an indication of at least one path to one Target size in combination with the value of the target size, and / or means to add and / or delete and / or changing an element or attribute using an indication from at least one path to a target size in combination with the value the target size.
Im folgenden wird die Erfindung anhand eines Ausführungsbeispiels näher erläutert. Dabei zeigen:in the Following, the invention will be explained in more detail with reference to an embodiment. there demonstrate:
Um
ein bestimmtes Element oder Attribut des Dokumentes zu identifizieren,
kann die Angabe des jeweiligen Namens oder der Namen der Vaterelemente
herangezogen werden. Bei den Vaterelementen handelt es sich um die über einem
Element oder Attribut stehenden Elemente, welche auf dem Pfad zwischen
dem Element oder Attribut und dem Wurzelelement GROUP liegen. Beispielsweise
lautet der Pfad zu dem Element FIRST NAME mit dem Wert JOERG unter
dem ersten Element PERSON unter der Verwendung der aus [2] bekannten
XPATH-Notation: GROUP/PERSON/FIRST NAME, und der Pfad zu dem Attribut
ID mit dem Wert 035 des zweiten Elementes PERSON: GROUP/PERSON/ID.
Dort, wo die Strukturdefinition des XML-basierten Dokumentes mehrere
gleichartige Elemente zu einem Vaterelement zulässt, wie beispielsweise die
drei Elemente PERSON unter dem Vaterelement GROUP der
Im
folgenden wird der Fall betrachtet, dass der gesamte Datenbaum der
Jedes
Fragment FUU besteht aus den Bestandteilen FX (Fragment Context)
und FPL (Fragment Payload). Der Bestandteil FPL enthält einen Wert
für ein
Element oder Attribut. Ist das Element von komplexem Typ, so kann
der Wert des jeweiligen Elementes weitere Elemente oder Attribute
enthalten. Der Bestandteil FX besteht aus den Bestandteilen FC (Fragment
Command), CP (Context Path) und PC (Position Code). Der Bestandteil
FC teilt dem Empfänger
mit, ob ein Element oder Attribut hinzugefügt oder entfernt werden soll,
oder ob der Wert eines Elementes oder Attributes geändert werden
soll. Der Bestandteil CP gibt den Pfad zu dem Element oder Attribut
an, welches von dieser Änderung
betroffen ist. Der neue, d.h. geänderte,
Wert dieses Elements oder Attributs ist in dem Bestandteil FPL enthalten. Wie
oben bereits erläutert,
ist es möglich,
dass der Pfad nicht zur eindeutigen Angabe eines Elementes oder
Attributes ausreicht, wenn Mehrdeutigkeiten in Form von gleichen
Elementen in mehreren Positionen des Datenbaumes vorhanden sind.
Daher enthält
der Bestandteil PC einen so genannten Positions-Kode, d.h. die Angabe,
welches Element einer Reihe gleichartiger Elemente bei der Pfadangabe des
Bestandteils CP gemeint ist. Für
das zweite Element PERSON der
Ein Problem tritt bei dem beschriebenen Stand der Technik z.B. dann auf, wenn der Datenbaum beim Empfänger aus mehreren einzelnen Datenbäumen mehrerer Sender zusammengesetzt wird. In diesem Fall kann ein einzelner Sender die Positions-Kodes nur schwer ermitteln, weil sich die Position der Elemente beim Empfänger aus der Gesamtsicht aller Teildatenbäume ergibt und diese Gesamtsicht dem einzelnen Sender unter Umständen nicht bekannt ist.One Problem occurs in the described prior art e.g. then on if the data tree at the receiver consists of several individual data trees several transmitters is composed. In this case, a single Sender's position codes are difficult to determine because of the position of the elements at the receiver from the overall view of all partial data trees and this overall view the individual transmitter may not is known.
Der Bestandteil LCP enthält die Angabe eines Pfades zu einer Zielgröße, d.h. zu einem Element oder einem Attribut. Es ist auch möglich, dass es sich bei der Zielgröße um eine kombinierte Größe handelt, d.h. eine Kombination aus mehreren Elementen oder mehreren Attributen oder aus Element(en) und Attribut(en). Der Bestandteil LPL enthält den Wert dieser Zielgröße.Of the Component LCP contains the indication of a path to a target size, i. to an element or an attribute. It is also possible, that the target size is one combined size, i.e. a combination of multiple elements or multiple attributes or element (s) and attribute (s). The component LPL contains the value this target size.
Der
Bestandteil FC wird wie zu
Im
folgenden werden zur Illustration der Verwendung der Bestandteile
LCP, LPL und CP vier konkrete Beispiele anhand des Datenbaumes der
- (1) Der Bestandteil LCP enthält den Pfad GROUP/PERSON/LAST NAME. Der Empfänger wird hierdurch angewiesen, alle Elemente, welche durch diesen Pfad charakterisiert sind, zu betrachten. Hierfür existieren drei Möglichkeiten: Das Element LAST NAME unter dem ersten Element PERSON, unter dem zweiten Element PERSON, und unter dem dritten Element PERSON. Der Bestandteil LPL enthält den Wert HEUER. Hierdurch ist dem Dekoder bekannt, dass das Element LAST NAME unter dem ersten Element PERSON zu betrachten ist, somit wird das erste Element PERSON der drei Elemente PERSON lokalisiert bzw. identifiziert. Das Feld CP enthält die relative Pfadangabe ./LAST NAME, dieser relative Pfad beginnt bei dem Vaterelement der Zielgröße LAST NAME unter dem ersten Element PERSON, d.h. bei dem ersten Element PERSON bzw. bei dem aktuellen Kontext, durch „." angezeigt, und endet bei dem zu ändernden Element, d.h. bei dem Element LAST NAME unter dem ersten Element PERSON. Somit ist dem Dekoder bekannt, dass das Element LAST NAME unter dem ersten Element PERSON von einer Änderung betroffen ist. Der neue Wert NEW LAST NAME OF HEUER für das Element LAST NAME unter dem ersten Element PERSON ist in dem Bestandteil FPL enthalten.
- (2) Der Bestandteil LCP enthält den Pfad GROUP/PERSON/ID. Der Dekoder wird hierdurch angewiesen, alle Attribute, welche durch diesen Pfad charakterisiert sind, zu betrachten. Hierfür existieren drei Möglichkeiten: das Attribut ID des ersten Elementes PERSON, des zweiten Elementes PERSON, und des dritten Elementes PERSON. Der Bestandteil LPL enthält den Wert 024. Hierdurch ist dem Dekoder bekannt, dass das Attribut ID des ersten Elementes PERSON zu betrachten ist, somit wird das erste Element PERSON der drei Elemente PERSON lokalisiert bzw. identifiziert. Das Feld CP enthält eine relative Pfadangabe: ./LAST NAME. Dieser beginnt bei dem Vaterelement der Zielgröße des Bestandteils LCP, d.h. bei dem ersten Element PERSON bzw. bei dem aktuellen Kontext, durch „." angezeigt, und endet bei dem Element, welches geändert werden soll, d.h. bei dem Element LAST NAME unter dem ersten Element PERSON. Somit ist dem Dekoder bekannt, dass das Element LAST NAME unter dem ersten Element PERSON von einer Änderung betroffen ist. Der neue Wert NEW LAST NAME OF HEUER für das Element LAST NAME unter dem ersten Element PERSON ist in dem Bestandteil FPL enthalten.
- (3) Der Bestandteil LCP enthält den Pfad GROUP/PERSON/FIRST NAME. Der Dekoder wird hierdurch angewiesen, alle Elemente, welche durch diesen Pfad charakterisiert sind, zu betrachten. Hierfür existieren drei Möglichkeiten: das Element FIRST NAME unter dem ersten Element PERSON, unter dem zweiten Element PERSON, und unter dem dritten Element PERSON. Der Bestandteil LPL enthält den Wert JOERG. Hierdurch ist dem Dekoder bekannt, dass das Element FIRST NAME des ersten Elementes PERSON zu betrachten ist, somit wird das erste Element PERSON der drei Elemente PERSON lokalisiert bzw. identifiziert. Das Feld CP enthält die im ersten Beispiel beschriebene relative Pfadangabe ./LAST NAME, da das Vaterelement der beiden Elemente FIRST NAME und LAST NAME das gleiche ist. Somit ist dem Dekoder bekannt, dass das Element LAST NAME unter dem ersten Element PERSON von einer Änderung betroffen ist. Der neue Wert NEW LAST NAME OF HEUER für das Element LAST NAME unter dem ersten Element PERSON ist in dem Bestandteil FPL enthalten.
- (4) Die Bestandteile LCP enthalten den Pfad GROUP/PERSON/FIRST
NAME und den Pfad GROUP/PERSON/ID. Diese mehrfache Angabe kann wie
zu
5 beschrieben realisiert werden. Der Dekoder wird hierdurch angewiesen, alle Element-Attribut-Kombinationen, welche durch diese Pfadkombination charakterisiert sind, zu betrachten. Hierfür existieren drei Möglichkeiten: das Elemente FIRST NAME un ter dem ersten Element PERSON und das Attribut ID des ersten Elementes PERSON, das Elemente FIRST NAME unter dem zweiten Element PERSON und das Attribut ID des zweiten Elementes PERSON, und das Elemente FIRST NAME unter dem dritten Element PERSON und das Attribut ID des dritten Elementes PERSON. Der Bestandteil LPL bzw. die Bestandteile LPL enthalten die Werte JOERG und 024. Hierdurch ist dem Dekoder bekannt, dass das Element FIRST NAME und das Attribut ID des ersten Elementes PERSON zu betrachten sind, somit wird das erste Element PERSON der drei Elemente PERSON lokalisiert bzw. identifiziert. Die Zielgröße besteht in diesem Beispiel aus einer Kombination aus einem Element und einem Attribut. Die relative Pfadangabe des Feldes CP kann sich auf einen der beiden Bestandteile der Zielgröße beziehen, d.h. entweder auf das Element FIRST NAME unter dem ersten Element PERSON, oder auf das Attribut ID des ersten Elementes PERSON. Vorteilhaft ist es, wenn sich die Pfadangabe auf das im Bestandteil LCP zuletzt genannte der beiden Teile der Zielgröße bezieht. Im vorliegenden Beispiel weisen das Attribut ID des ersten Elementes PERSON und das Element FIST NAME unter dem ersten Element PERSON das gleiche Vaterelement, d.h. das erste Element PERSON, auf, so dass die relative Pfadangabe in beiden Fällen gleich lautet: ./LAST NAME. Somit ist dem Dekoder bekannt, dass das Element LAST NAME unter dem ersten Element PERSON von einer Änderung betroffen ist. Der neue Wert NEW LAST NAME OF HEUER für das Element LAST NAME unter dem ersten Element PERSON ist in dem Bestandteil FPL enthalten.
- (1) The LCP component contains the path GROUP / PERSON / LAST NAME. The receiver is thereby instructed to consider all elements characterized by this path. There are three possibilities for this: The element LAST NAME under the first element PERSON, under the second element PERSON, and under the third element PERSON. The LPL component contains the value HEUER. As a result, the decoder is aware that the element LAST NAME is to be considered under the first element PERSON, thus the first element PERSON of the three elements PERSON is located or identified. The field CP contains the relative path specification ./LAST NAME, this relative path starts at the parent element of the target variable LAST NAME under the first element PERSON, ie at the first element PERSON or at the current context, indicated by ".", And ends for the element to be changed, ie for the element LAST NAME under the first element PERSON, the decoder is aware that the element LAST NAME under the first element PERSON is affected by a change The new value NEW LAST NAME OF HEUER for the Element LAST NAME under the first element PERSON is included in the component FPL.
- (2) The component LCP contains the path GROUP / PERSON / ID. The decoder is thereby instructed to consider all attributes characterized by this path. There are three possibilities for this: the attribute ID of the first element PERSON, the second element PERSON, and the third element PERSON. The component LPL contains the value 024. This tells the decoder that the attribute ID of the first element PERSON is to be considered, thus the first element PERSON of the three elements PERSON is located or identified. The field CP contains a relative path: ./LAST NAME. This starts with the parent element of the target variable of the component LCP, ie with the first element PERSON or with the current context, indicated by ".", And ends with the element which is to be changed, ie with the element LAST NAME under the first Element PERSON Thus the decoder knows that the element LAST NAME under the first element PERSON is affected by a change The new value NEW LAST NAME OF HEUER for the element LAST NAME under the first element PERSON is contained in the element FPL.
- (3) The component LCP contains the path GROUP / PERSON / FIRST NAME. The decoder is thereby instructed to consider all elements characterized by this path. There are three possibilities for this: the element FIRST NAME under the first element PERSON, under the second element PERSON, and under the third element PERSON. The LPL component contains the value JOERG. As a result, the decoder is aware that the element FIRST NAME of the first element PERSON is to be considered, thus the first element PERSON of the three elements PERSON is located or identified. The CP field contains the relative path specification ./LAST NAME described in the first example, since the parent element of the two elements FIRST NAME and LAST NAME is the same. Thus, the decoder is aware that the element LAST NAME under the first element PERSON is affected by a change. The new value NEW LAST NAME OF HEUER for the element LAST NAME under the first element PERSON is contained in the component FPL.
- (4) The components LCP contain the path GROUP / PERSON / FIRST NAME and the path GROUP / PERSON / ID. This multiple indication can be like
5 be realized described. The decoder is hereby instructed to consider all element-attribute combinations characterized by this path combination. There are three possibilities for this: the element FIRST NAME below the first element PERSON and the attribute ID of the first element PERSON, the element FIRST NAME under the second element PERSON and the attribute ID of the second element PERSON, and the element FIRST NAME under the third Element PERSON and the attribute ID of the third element PERSON. The component LPL or the components LPL contain the values JOERG and 024. As a result, the decoder is aware that the element FIRST NAME and the attribute ID of the first element PERSON are to be considered, thus the first element PERSON of the three elements PERSON is located respectively identified. The target size in this example consists of a combination of an element and an attribute. The relative path specification of the field CP can refer to one of the two components of the target variable, ie either to the element FIRST NAME under the first element PERSON, or to the attribute ID of the first element PERSON. It is advantageous if the path statement refers to the last of the two parts of the target variable in the component LCP. in the In this example, the attribute ID of the first element PERSON and the element FIST NAME under the first element PERSON have the same parent element, ie the first element PERSON, so that the relative path statement in both cases is the same: ./LAST NAME. Thus, the decoder is aware that the element LAST NAME under the first element PERSON is affected by a change. The new value NEW LAST NAME OF HEUER for the element LAST NAME under the first element PERSON is contained in the component FPL.
Weiterhin
werden zwei Beispiele betrachtet, bei welchen das Element GROUP
aktualisiert werden soll. Hierbei wird davon ausgegangen, dass neben
dem in
- (5) Der Bestandteil LCP enthält den Pfad GROUP/PERSON.
Der Dekoder wird hierdurch angewiesen, alle Elemente, welche durch
diesen Pfad charakterisiert sind, zu betrachten. Dieser Pfad bzw.
diese Zielgröße des Bestandteils
LCP wird für
die Lokalisierung bzw. Identifizierung des zu aktualisierenden Elementes
GROUP eingesetzt. Bei den Werten des Elementes PERSON der
1 handelt es sich um Werte des komplexen Typs, welche jeweils aus den Elementen FIRST NAME und LAST NAME, sowie aus dem Attribut ID bestehen. Der Bestandteil LPL enthält für das Element FIRST NAME den Wert JOERG, für das Element LAST NAME den Wert HEUER, und für das Attribut ID den Wert 024. Hierdurch ist dem Dekoder bekannt, dass die Elemente FIRST NAME und LAST NAME, sowie das Attribut ID des ersten Elementes PERSON der1 zu betrachten sind, somit wird das Element GROUP der1 lokalisiert bzw. identifiziert. Das Feld CP enthält die relative Pfadangabe „.", welche auf den aktuellen Kontext und somit auf das Vaterelement der Zielgröße des Feldes LCP, d.h. zu dem Element GROUP verweist, welches geändert werden soll. Der neue Wert für das Element GROUP der1 ist in dem Bestandteil FPL enthalten. Soll das Element GROUP gelöscht werden, enthält der Bestandteil FPL keine Daten. - (6) Der Bestandteil LCP enthält
den Pfad GROUP/PERSON/FIRST NAME. Der Dekoder wird hierdurch angewiesen,
alle Elemente, welche durch diesen Pfad charakterisiert sind, zu
betrachten. Der Bestandteil LPL enthält den Wert JOERG. Hierdurch
ist dem Dekoder bekannt, dass das Element FIRST NAME des ersten
Elementes PERSON der
1 zu betrachten sind, somit wird das Element GROUP der1 lokalisiert bzw. identifiziert. Das Feld CP enthält als relative Pfadangabe „..", d.h. den Pfad zum Vaterknoten des Elementes PERSON in Rückwärtsrichtung. Dieser beginnt bei dem Elemente, das dem Vaterelement des Elementes der Zielgröße des Bestandteils LCP entspricht, d.h. bei dem ersten Element PERSON, und endet bei dem zu aktualisierenden Ele ment, d.h. bei dem Element GROUP. Somit ist dem Dekoder bekannt, dass das Element GROUP der1 von einer Änderung betroffen ist. Der neue Wert für das Element GROUÜ ist in dem Bestandteil FPL enthalten.
- (5) The component LCP contains the path GROUP / PERSON. The decoder is thereby instructed to consider all elements characterized by this path. This path or target variable of the component LCP is used for the localization or identification of the element GROUP to be updated. At values of element PERSON of
1 These are values of the complex type, which consist of the elements FIRST NAME and LAST NAME as well as the attribute ID. The element LPL contains the value JOERG for the element FIRST NAME, the value HEUER for the element LAST NAME and the value 024 for the attribute ID. This tells the decoder that the elements FIRST NAME and LAST NAME, as well as the attribute ID of the first element PERSON the1 are to be considered, thus the element GROUP of1 localized or identified. The field CP contains the relative path specification ".", Which refers to the current context and thus to the parent element of the target variable of the field LCP, ie to the element GROUP, which is to be changed The new value for the element GROUP of1 is included in the component FPL. If the element GROUP is to be deleted, the component FPL contains no data. - (6) The component LCP contains the path GROUP / PERSON / FIRST NAME. The decoder is thereby instructed to consider all elements characterized by this path. The LPL component contains the value JOERG. As a result, the decoder is aware that the element FIRST NAME of the first element PERSON the
1 are to be considered, thus the element GROUP of1 localized or identified. The field CP contains as relative path "..", ie the path to the parent node of the element PERSON in the backward direction, starting at the element corresponding to the element of the element of the target variable of the element LCP, ie at the first element PERSON, and ending in the element to be updated, ie in the element GROUP, the decoder is thus aware that the element GROUP of the1 affected by a change. The new value for the element GROUÜ is contained in the component FPL.
Durch den relativen Pfad von dem Vaterelement der Zielgröße der Bestandteile LCP und LPL wird genau ein Element oder Attribut des Datenbaums als zu änderndes Element oder Attribut identifiziert. Ist das Element oder Attribut nicht in dem dem Dekoder bekannten Datenbaum enthalten, so fügt es der Dekoder an der durch den relativen Pfad bezeichneten Stelle ein.By the relative path of the father element of the target size of the components LCP and LPL become exactly one element or attribute of the data tree as to be changed Element or attribute identified. Is that element or attribute does not contain the data tree known to the decoder, so does it Decoder at the location indicated by the relative path.
Ein Vorteil des beschriebenen Kodierverfahrens ist, dass eine verteilte Kodierung eins XML-basierten Dokumentes erfolgen kann, d.h. es ist nicht nötig, dass die Kodiereinrichtung das gesamte XML-basierte Dokument kennt.One Advantage of the encoding method described is that a distributed Encoding of an XML-based document, i. it is not necessary, that the coding device knows the entire XML-based document.
Literaturverzeichnis:Bibliography:
- [1] http://dx1.hrz.unidortmund.de:8001/doc1/hrz/sglref/sgloracle.html[1] http://dx1.hrz.unidortmund.de:8001/doc1/hrz/sglref/sgloracle.html
- [2] http://www.w3.org/TR/xpath[2] http://www.w3.org/TR/xpath
- [3] ISO/IEC 15938-1 Multimedia Content Description Interface – Part 1: Systems, Geneva 2002[3] ISO / IEC 15938-1 Multimedia Content Description Interface - Part 1: Systems, Geneva 2002
- [4] TV-Anytime Specification Series S-3 on Metadata, Part-B, Version 13[4] TV-Anytime Specification Series S-3 on Metadata, Part-B, Version 13
- [5] http://www.public.asu.edu/~peterjn/btree/[5] http://www.public.asu.edu/~peterjn/btree/
- [6] http://www.generation5.org/simple_search.shtml[6] http://www.generation5.org/simple_search.shtml
- [7] http://www.w3.org/TR/2001/REC-xmlschema-0-20010502/[7] http://www.w3.org/TR/2001/REC-xmlschema-0-20010502/
- [8] http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/[8] http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/
- [9] http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/[9] http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/
Claims (9)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
DE200410044164 DE102004044164A1 (en) | 2004-09-13 | 2004-09-13 | Method and device for coding XML documents |
PCT/EP2005/054261 WO2006029959A1 (en) | 2004-09-13 | 2005-08-30 | Method and device for coding xml documents |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
DE200410044164 DE102004044164A1 (en) | 2004-09-13 | 2004-09-13 | Method and device for coding XML documents |
Publications (1)
Publication Number | Publication Date |
---|---|
DE102004044164A1 true DE102004044164A1 (en) | 2006-03-30 |
Family
ID=35285281
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
DE200410044164 Withdrawn DE102004044164A1 (en) | 2004-09-13 | 2004-09-13 | Method and device for coding XML documents |
Country Status (2)
Country | Link |
---|---|
DE (1) | DE102004044164A1 (en) |
WO (1) | WO2006029959A1 (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2001026373A2 (en) * | 1999-10-04 | 2001-04-12 | Koninklijke Philips Electronics N.V. | Method and apparatus for streaming xml content |
US20040028049A1 (en) * | 2000-10-06 | 2004-02-12 | Wan Ernest Yiu Cheong | XML encoding scheme |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7934008B2 (en) * | 2000-10-20 | 2011-04-26 | Sony Corporation | Delivery of multimedia descriptions using access units |
US7689901B2 (en) * | 2001-03-01 | 2010-03-30 | Sony Corporation | Multiple updates to content descriptions using a single command |
US7231394B2 (en) * | 2001-07-17 | 2007-06-12 | Sony Corporation | Incremental bottom-up construction of data documents |
JP2004318188A (en) * | 2002-09-26 | 2004-11-11 | Victor Co Of Japan Ltd | Program for receiving structured data |
DE10309336B4 (en) * | 2003-03-04 | 2005-11-24 | Siemens Ag | Method for coding a structured document |
-
2004
- 2004-09-13 DE DE200410044164 patent/DE102004044164A1/en not_active Withdrawn
-
2005
- 2005-08-30 WO PCT/EP2005/054261 patent/WO2006029959A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2001026373A2 (en) * | 1999-10-04 | 2001-04-12 | Koninklijke Philips Electronics N.V. | Method and apparatus for streaming xml content |
US20040028049A1 (en) * | 2000-10-06 | 2004-02-12 | Wan Ernest Yiu Cheong | XML encoding scheme |
Also Published As
Publication number | Publication date |
---|---|
WO2006029959A1 (en) | 2006-03-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP1522028B9 (en) | Method and devices for encoding/decoding structured documents, especially xml documents | |
EP2197213B1 (en) | Method for improving the functionality of the binary representation of MPEG-7 and other XML-based content descriptions | |
WO2006005646A1 (en) | Method for encoding an xml document, decoding method, encoding and decoding method, coding device, and encoding and decoding device | |
EP1499998A2 (en) | Generic data stream description | |
DE60225785T2 (en) | PROCESS FOR CODING AND DECODING A PATH IN THE TREE STRUCTURE OF A STRUCTURED DOCUMENT | |
EP1407610B1 (en) | System for the improved encoding/decoding of structured, particularly xml-based, documents and methods and devices for the improved encoding/decoding of binary representations of such documents | |
EP1561281B1 (en) | Method for the creation of a bit stream from an indexing tree | |
DE102007045741A1 (en) | Method and device for coding and decoding multimedia data | |
DE10309336B4 (en) | Method for coding a structured document | |
EP1400124A2 (en) | Method for improving the functions of the binary representation of mpeg-7 and other xml-based content descriptions | |
DE102004044164A1 (en) | Method and device for coding XML documents | |
DE10339971A1 (en) | Method for coding an XML-based document | |
DE10231970B3 (en) | Coding method for data element positions in data structure e.g. for XML document coding, has position codes assigned to data element positions in given serial sequence | |
EP1567942A2 (en) | Method for encoding an xml-based document | |
DE10248758B4 (en) | Methods and devices for encoding / decoding XML documents | |
EP1787474A1 (en) | Method for encoding an xml-based document | |
DE10323186B4 (en) | Means for processing an MPEG-2 data stream and method for processing an MPEG-2 data stream | |
EP1687984A1 (en) | Method for producing and/or processing a data stream description | |
EP1204229A1 (en) | Method of displaying information which is stored on a computer | |
EP2087734A2 (en) | Method for transmitting scene data in a unidirectional broadcast system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
OP8 | Request for examination as to paragraph 44 patent law | ||
8139 | Disposal/non-payment of the annual fee |