KR100931636B1 - How to Enter Schema Information into the Mui Decoder on Mobile Platforms - Google Patents

How to Enter Schema Information into the Mui Decoder on Mobile Platforms Download PDF

Info

Publication number
KR100931636B1
KR100931636B1 KR1020070130632A KR20070130632A KR100931636B1 KR 100931636 B1 KR100931636 B1 KR 100931636B1 KR 1020070130632 A KR1020070130632 A KR 1020070130632A KR 20070130632 A KR20070130632 A KR 20070130632A KR 100931636 B1 KR100931636 B1 KR 100931636B1
Authority
KR
South Korea
Prior art keywords
schema
file
syntax
decoder
information
Prior art date
Application number
KR1020070130632A
Other languages
Korean (ko)
Other versions
KR20090063329A (en
Inventor
낭종호
유정수
장중제
이상민
정영민
Original Assignee
주식회사 씬멀티미디어
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 주식회사 씬멀티미디어 filed Critical 주식회사 씬멀티미디어
Priority to KR1020070130632A priority Critical patent/KR100931636B1/en
Publication of KR20090063329A publication Critical patent/KR20090063329A/en
Application granted granted Critical
Publication of KR100931636B1 publication Critical patent/KR100931636B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • G06F40/154Tree transformation for tree-structured or markup documents, e.g. XSLT, XSL-FO or stylesheets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/149Adaptation of the text data for streaming purposes, e.g. Efficient XML Interchange [EXI] format

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Multimedia (AREA)
  • Document Processing Apparatus (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

모바일 플랫폼에서의 BiM 복호기에 스키마 정보를 입력하는 방법이 개시된다. 본 발명에 따른 모바일 플랫폼에서의 BiM 복호기에 스키마 정보를 입력하는 방법은 (a) 데스크탑 환경에서 XML 형식의 스키마 파일을 불러들이는 단계와, (b) XML 형식의 스키마 파일에서 정의된 상속 관계를 실현하고 이름을 정규화하여 BiM 복호기로 입력되기 직전 형식의 신택스 파일로 변환하는 단계와, (c) 변환된 신택스 파일을 모바일 단말로 전송하는 단계, 및 (d) 모바일 단말에서 상기 신택스 파일을 직접 해석하여 BiM 복호기를 초기화하는 단계를 포함하는 것을 특징으로 한다. 본 발명에 따르면 텍스트 형식의 XML문서로부터 BiM으로 부호화된 이진 스트림을 복호화하는데 있어서 필요한 스키마를 해석함에 있어 모바일 플랫폼의 XML 파싱 모듈에 의존하지 않고 스키마 정보를 복호기로 입력할 수 있다.Disclosed is a method of inputting schema information into a BiM decoder in a mobile platform. The method for inputting schema information into a BiM decoder in a mobile platform according to the present invention comprises the steps of (a) loading an XML format schema file in a desktop environment, and (b) inheriting the relationship defined in the XML format schema file. Realizing and normalizing the name to convert the syntax file into a syntax file in a format immediately before being input to the BiM decoder; (c) transmitting the converted syntax file to the mobile terminal, and (d) interpreting the syntax file directly at the mobile terminal. Initializing the BiM decoder. According to the present invention, schema information can be input to a decoder without relying on an XML parsing module of a mobile platform in interpreting a schema required for decoding a BiM encoded binary stream from an XML document in a text format.

Description

모바일 플랫폼에서의 BiM 복호기에 스키마 정보를 입력하는 방법{Schema information input for BiM decoder in mobile platform}Schema information input for BiM decoder in mobile platform

본 발명은 스키마 정보 입력 방법에 관한 것으로 특히 모바일 플랫폼에서의 BiM 복호기에 스키마 정보를 입력하는 방법에 관한 것이다.The present invention relates to a method of inputting schema information, and more particularly, to a method of inputting schema information to a BiM decoder in a mobile platform.

최근 멀티미디어 애플리케이션들에서 메타데이터를 표현하기 위하여 XML 문서의 사용이 증가하고 있다. 하지만, XML 형식은 고성능을 요구하거나 스트리밍이 가능한 또는 자원의 제약을 받는 환경을 목적으로 설계되지 않았다. 따라서, XML문서의 효율적인 전송이 필요하게 되었으며, 이에 따라 메타데이터를 위한 엠펙-7 파트1 이진 형식(MPEG-7 Part1 Binary Format for Metadata: BiM)을 통한 이진 부호화 방법이 정의되었다. BiM은 스키마 종속적인 특성을 가지고 있으며, 이진 부호화 된 XML 서브 트리를 포함하는 페이로드(Payload), 복호화된 페이로드에 대한 연산을 표시하는 커멘드(command), 복호화 된 페이로드에 대하여 커멘드에 표시된 연산을 수행할 위치를 나타내는 컨텍스트(context)로 구성된다.Recently, the use of XML documents for representing metadata in multimedia applications is increasing. However, the XML format is not designed for high performance, streaming, or resource-constrained environments. Therefore, efficient transmission of XML documents is required, and accordingly, a binary encoding method is defined through MPEG-7 Part1 Binary Format for Metadata (BIM). BiM has a schema-dependent nature, and includes a payload that contains a binary-encoded XML subtree, a command that indicates the operation on the decrypted payload, and an operation that appears in the command on the decrypted payload. Consists of a context that indicates where to execute.

도 1과 도 2에는 일반적인 BiM에서의 부호화 및 복호화 과정의 일예를 설명하기 위한 도면을 나타내었다.1 and 2 are diagrams for explaining an example of an encoding and decoding process in a general BiM.

도 1을 참조하면, 일반적인 BiM의 경우에 컨텍스트의 부호화 과정에서, 컨텍스트는 트리 브렌치 코드(Tree Branch Code : TBC)라 불리는 로컬 네비게이션 정보들의 시퀀스로 구성되어 있다. 부호기와 복호기는 스키마를 기반으로 TBC 테이블(100)을 계산하여 페이로드에 대한 연산이 수행될 노드에 대한 위치를 TBC의 시퀀스 형태를 통하여 각각 부호화 또는 복호화 한다.Referring to FIG. 1, in a context of encoding a context in a general BiM, the context is composed of a sequence of local navigation information called a tree branch code (TBC). The encoder and the decoder calculate the TBC table 100 based on the schema to encode or decode the position of the node on which the operation for the payload is to be performed through the sequence form of the TBC, respectively.

도 2를 참조하면, 일반적인 BiM의 경우에 페이로드의 부호화 과정에서, 스키마에 정의된 XML 콤플렉스 타입(complex type)의 각 엘리먼트(element)는 이진 스트림에 의한 유한 오토마타의 전이에 의해 선택되어지며, 선택된 엘리먼트는 자신의 타입에 따라 복호화 된다. 도 2에 나타내어진 예의 경우에는, 첫 번째 비트(202)가 1이므로, 콤플렉스 타입 T의 선택적 그룹(optional group)인 'choice'(204)가 선택되며, 두 번째 비트(206)가 '0' 이므로 'choice'의 자식 엘리먼트 중 엘리먼트 'A'(208)가 선택되는 것을 보여주고 있다. 이후 만일 'A'의 타입인 'a'가 심플 타입(simple type)이라면 타입 'a'에 대한 코덱이 엘리먼트 'A'의 복호화를 수행하며, 타입 'a'가 콤플렉스 타입이라면 타입 'a'에 대한 새로운 유한 오토마타의 전이가 시작된다. 따라서 도 2의 결과 인스턴스와 같은 XML 트리로 복호화 되게 된다. Referring to FIG. 2, in the case of a general BiM, in the payload encoding process, each element of the XML complex type defined in the schema is selected by a finite automata transition by a binary stream. The selected element is decoded according to its type. In the example shown in FIG. 2, since the first bit 202 is 1, 'choice' 204, which is an optional group of complex type T, is selected, and the second bit 206 is '0'. Therefore, the element 'A' 208 is selected among the child elements of 'choice'. After that, if 'a' is a simple type, the codec for type 'a' decodes element 'A', and if type 'a' is a complex type, type 'a' A new finite automata transition begins. Therefore, the same XML tree as the result instance of FIG. 2 is decrypted.

이와 같이, BiM은 스키마 기반으로 부호화 및 복호화 되는 구조이며, 따라서 복호기는 스키마 파일을 해석하여서 TBC 테이블 및 유한 오토마타 등을 생성하며 초기화 되어야 한다. As described above, BiM is a structure that is encoded and decoded based on a schema. Therefore, a decoder must be initialized by interpreting a schema file to generate a TBC table, a finite automata, and the like.

하지만, 스키마 역시 XML 문서 형식이기 때문에 BiM 복호기는 스키마를 통한 초기화를 위하여 XML 파싱 모듈에 의존성을 가진다. 따라서, XML 파싱 과정으로 인하여 시스템에 부하로 작용하거나 XML 파싱 모듈이 존재하지 않는 플랫폼에서는 복호화가 되지 않는다는 문제점이 발생한다. 따라서, 텍스트 형식의 XML 문서 처리에 대한 해결책으로서 BiM 복호기의 XML 파서에 대한 종속성을 해결할 것이 요구되고 있다.However, because the schema is also an XML document format, the BiM decoder has a dependency on the XML parsing module for initialization through the schema. Therefore, the XML parsing process causes a problem that it is a load on the system or decryption is not possible on the platform where the XML parsing module does not exist. Therefore, it is required to resolve the dependency on the XML parser of the BiM decoder as a solution for processing XML documents in text format.

본 발명은 상기한 문제점들을 해결하기 위하여 안출된 것으로, 본 발명이 해결하고자 하는 기술적 과제는 텍스트 형식의 XML문서로부터 BiM으로 부호화된 이진 스트림을 복호화하는데 있어서 필요한 스키마 파일을 해석하기 위하여, XML 파싱 모듈에 의존하지 않고 스키마 정보를 복호기로 입력할 수 있는 모바일 플랫폼에서의 BiM 복호기에 스키마 정보를 입력하는 방법을 제공하는 것이다.SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and the technical problem to be solved by the present invention is an XML parsing module, in order to interpret a schema file necessary for decoding a BiM encoded binary stream from an XML document in a text format. The present invention provides a method for inputting schema information into a BiM decoder in a mobile platform that can input schema information into a decoder without depending on the dependency.

상기 기술적 과제를 이루기 위한 본 발명에 따른 모바일 플랫폼에서의 BiM 복호기에 스키마 정보를 입력하는 방법은,Method for inputting the schema information to the BiM decoder in the mobile platform according to the present invention for achieving the above technical problem,

(a) 데스크탑 환경에서 XML 형식의 스키마 파일을 불러들이는 단계;(a) importing a schema file in XML format in a desktop environment;

(b) XML 형식의 스키마 파일에서 정의된 상속 관계를 실현하고 이름을 정규화하여 BiM 복호기로 입력되기 직전 형식의 신택스 파일로 변환하는 단계;(b) realizing the inheritance relationship defined in the XML format schema file and normalizing the name to convert the syntax file into a syntax file immediately before being input to the BiM decoder;

(c) 변환된 신택스 파일을 모바일 단말로 전송하는 단계; 및(c) transmitting the converted syntax file to the mobile terminal; And

(d) 모바일 단말에서 상기 신택스 파일을 직접 해석하여 BiM 복호기를 초기화하는 단계;를 포함하는 것을 특징으로 한다.(d) directly interpreting the syntax file in a mobile terminal to initialize a BiM decoder.

또한, 상기 (b) 단계는,In addition, the step (b),

(b-1) 불러들인 XML 형식의 스키마 파일에서 가독성 정보와 스키마 설계 정보들을 제거하는 단계; 및(b-1) removing readability information and schema design information from the imported XML format schema file; And

(b-2) XML 형식의 스키마 파일에서 정의된 상속 관계를 실현하고 이름을 정 규화하여 BiM 복호기로 입력되기 직전 형식의 신택스 파일로 변환하는 단계;를 포함하는 것이 바람직하다.(b-2) realizing the inheritance relationship defined in the schema file of XML format, normalizing the name, and converting the syntax file into a syntax file of the format immediately before being input to the BiM decoder.

또한, 상기 (b) 단계는 상기 (b-1) 단계 이전에,In addition, step (b) is, before step (b-1),

(p-b-1) XML 파서를 사용하지 못하는 환경에서 오토마타를 생성하기 위하여, 소정의 신택스 파일 포맷 인터페이스를 정의하는 단계를 더 포함하고,(p-b-1) further comprising defining a predetermined syntax file format interface to generate an automata in an environment that does not use an XML parser,

상기 신택스 파일 포맷 인터페이스는 네임스페이스 라인, 심플 타입 라인, 콤플렉스 타입 라인, 전역 엘리먼트 라인, 상속 트리 라인들로 구성되며,The syntax file format interface consists of a namespace line, a simple type line, a complex type line, a global element line, and an inheritance tree line.

네임스페이스 라인은 'namespace prefix'와 'namespace URI'로 구성되고,The namespace line consists of 'namespace prefix' and 'namespace URI'.

심플 타입 라인은 상속 관계를 표현하는 트리를 전위 순서(pre-order)로 운행하며 방문되는 노드들에 대한 정보의 시퀀스로 구성되며,A simple type line consists of a sequence of information about nodes visited, running in a pre-order tree representing an inheritance relationship.

콤플렉스 타입 라인은, 콤플렉스 타입에 대한 유한 오토마타가 상기의 신택스 트리(Syntax Tree)를 후위 순서로 운행하며 생성되는 것에 착안하여 신택스 트리(Syntax Tree)를 후위 순서로 방문하며 각 노드들에 대한 정보의 시퀀스로 구성되고, 콤플렉스 타입은 에트리뷰트(attribute)를 포함할 수 있음에 착안하여 콤플렉스 타입 라인은 에트리뷰트 리스트를 포함하고,The complex type line is visited by the finite automata for the complex type, which is generated by running the syntax tree in a backward order, and visits the syntax tree in a backward order, and the information of each node is obtained. Consisting of a sequence, the complex type can include an attribute, so the complex type line contains an attribute list,

전역 엘리먼트 라인은 스키마에 전역으로 선언된 엘리먼트들에 대하여 이름과 타입을 포함하고, 상속 트리 라인은 스키마에 정의된 각 타입들의 상속 관계를 트리로 표현하여 전위 운행하며 방문되는 노드들의 타입 명들로 구성된 것이 가능하다.The global element line contains names and types for elements declared globally in the schema. The inheritance tree line consists of the type names of nodes visited and visited by representing the inheritance relationship of each type defined in the schema as a tree. It is possible.

본 발명에 따르면 텍스트 형식의 XML문서로부터 BiM으로 부호화된 이진 스트림을 복호화하는데 있어서 필요한 스키마를 해석함에 있어 모바일 플랫폼의 XML 파싱 모듈에 의존하지 않고 스키마 정보를 복호기로 입력할 수 있다.According to the present invention, schema information can be input to a decoder without relying on an XML parsing module of a mobile platform in interpreting a schema required for decoding a BiM encoded binary stream from an XML document in a text format.

이하 첨부된 도면을 참조로 본 발명의 바람직한 실시예를 보다 상세히 설명하기로 한다. 이에 앞서, 본 명세서 및 청구범위에 사용된 용어나 단어는 통상적이거나 사전적인 의미로 한정해서 해석되어서는 아니 되며, 발명자는 그 자신의 발명을 가장 최선의 방법으로 설명하기 위해 용어의 개념을 적절하게 정의할 수 있다는 원칙에 입각하여 본 발명의 기술적 사상에 부합하는 의미와 개념으로 해석되어야만 한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. Prior to this, terms or words used in the present specification and claims should not be construed as being limited to the common or dictionary meanings, and the inventors should properly explain the concept of terms in order to best explain their own invention. Based on the principle that can be defined, it should be interpreted as meaning and concept corresponding to the technical idea of the present invention.

따라서, 본 명세서에 기재된 실시 예와 도면에 도시된 구성은 본 발명의 가장 바람직한 일 실시 예에 불과할 뿐이고 본 발명의 기술적 사상을 모두 대변하는 것은 아니므로, 본 출원시점에 있어서 이들을 대체할 수 있는 다양한 균등물과 변형 예들이 있을 수 있음을 이해하여야 한다.Therefore, the embodiments described in the specification and the drawings shown in the drawings are only the most preferred embodiments of the present invention and do not represent all of the technical idea of the present invention, various modifications that can be replaced at the time of the present application It should be understood that there may be equivalents and variations.

도 3에는 본 발명에 따른 모바일 단말기의 스키마 기반 BiM 복호기를 위한 데이터 처리 방법이 이루어지는 BiM 복호기 시스템의 구조를 블록도로써 나타내었다. 도 3을 참조하면, 본 발명은 모바일 플랫폼에서의 BiM 복호기에 스키마 정보를 입력하는 방법에 관한 것이며, 데스크탑 환경에서 모바일 장치로의 스키마 정보 전송 형식과 스키마 정보를 복호기로 입력하는 부분을 각각 신택스 파일 포맷(Syntax File Format : SFF)과 신택스 파일 포맷 인터페이스(Syntax File Format Interface : SFFI)라고 명칭하고, 이러한 SFF 형식으로 전송되는 파일을 신택스 파일(Syntax File : SF)라고 명칭한다. 3 is a block diagram illustrating a structure of a BiM decoder system including a data processing method for a schema-based BiM decoder of a mobile terminal according to the present invention. Referring to FIG. 3, the present invention relates to a method of inputting schema information into a BiM decoder in a mobile platform, and includes a syntax file for transmitting schema information to a mobile device in a desktop environment and a portion for inputting schema information into a decoder. A format (Syntax File Format: SFF) and a syntax file format interface (SFFI) are called, and a file transferred in this SFF format is called a syntax file (Syntax File: SF).

도 4에는 본 발명의 실시예에 따른 모바일 단말기의 스키마 기반 BiM 복호기를 위한 데이터 처리 방법을 도시한 흐름도를 나타내었다. 도 4를 참조하면, 본 발명에 따른 모바일 플랫폼에서의 BiM 복호기에 스키마 정보를 입력하는 방법은 데스크탑 환경에서 텍스트의 XML 문서 형식인 스키마 파일(300)을 불러들이고(단계 S400), 불러들인 XML 문서 형식인 스키마 파일(300)을 데스크탑 환경에서 파싱한 후 파싱된 정보를 신택스 파일(SF)로 저장하여 모바일 플랫폼으로 전송한다. 파싱 후 파싱된 정보를 신택스 파일(SF)로 저장하는 과정은 다음과 같은 프로세스로 이루어진다. 즉, 불러들인 XML 형식의 스키마 파일에서 가독성 정보와 스키마 설계 정보를 제거하고, XML 형식의 스키파 파일에서 정의된 상속 관계를 실현하고 이름을 정규화하며 BiM 복호기로 입력되기 직전 형식의 신택스 파일로 변환한다(단계 S402). 다음으로, 변환된 신택스 파일(SF)을 모바일 단말로 전송(단계 S404)하고, 모바일 단말에서는 상기 신택스 파일(SF)을 직접 해석하여 BiM 복호기를 초기화(단계 S406)한다. 따라서, 모바일 플랫폼에서는 신택스 파일(SF)을 해석하여서 SFFI(304a, 304b)를 통하여 BiM 복호기(32)로 스키마 정보를 입력하게 되는 것이다.4 is a flowchart illustrating a data processing method for a schema-based BiM decoder of a mobile terminal according to an embodiment of the present invention. Referring to FIG. 4, in the method of inputting schema information into a BiM decoder in a mobile platform according to the present invention, a schema file 300, which is an XML document format of text in a desktop environment, is loaded (step S400), and the imported XML document After parsing the schema file 300 in a desktop environment, the parsed information is stored as a syntax file (SF) and transmitted to the mobile platform. After parsing, the parsed information is stored in a syntax file (SF) using the following process. That is, it removes the readability and schema design information from the imported XML format schema file, realizes the inheritance relationship defined in the XML format skipa file, normalizes the name, and converts it into a syntax file just before being input into the BiM decoder. (Step S402). Next, the converted syntax file SF is transmitted to the mobile terminal (step S404), and the mobile terminal directly interprets the syntax file SF to initialize the BiM decoder (step S406). Accordingly, the mobile platform interprets the syntax file SF and inputs schema information to the BiM decoder 32 through the SFFIs 304a and 304b.

먼저 도 6과 도 7a 및 도 7b를 참조하여 스키마 정보를 바탕으로 콤플렉스 타입에 대하여 유한 오토마타를 생성하는 방식에 대하여 간략히 개념적으로 설명한다. 도 6에는 도 4의 단계(S402)를 설명하기 위한 도면을 나타내었다. 도 6을 참조 하면, 스키마 파일이 파싱된 결과인 DOM 트리(tree)의 콤플렉스 타입에 해당하는 서브 트리는, 상속 관계를 실현시키고 모든 암시적인 네임스페이스의 이름들을 정규화한 후 BiM에서 정의한 신택스 트리(Syntax Tree) 형태로 변환된다. 신택스 트리는 어커런스 노드(occurrence node)와 그룹 노드(group node), 및 엘리먼드 노드(element node)의 세가지 타입의 노드로 구성된다.First, a method for generating a finite automata for a complex type based on schema information will be briefly described with reference to FIGS. 6, 7A, and 7B. 6 is a view for explaining the step (S402) of FIG. Referring to FIG. 6, a subtree corresponding to a complex type of a DOM tree that is a result of parsing a schema file is a syntax tree defined in BiM after realizing inheritance relations and normalizing all implicit namespace names. Tree). The syntax tree is composed of three types of nodes: an occurrence node, a group node, and an element node.

이러한 신택스 트리는 도 7a 및 도 7b와 같이 후위 순서(post-order)로 운행되면서 방문되는 노드의 타입에 따라 유한 오토마타를 생성하게 된다. 방문되는 노드가 element node인 경우에는 도 7a 및 도 7b의 1과 3으로 표기된 바와 같이 시작 상태, 엘리먼트 전이, 타입 상태로 구성되는 오토마타가 생성된다. 방문된 노드가 occurrence node인 경우, minOccurrce가 0일때는 도 7a 및 도 7b의 2와 6으로 표시된 바와 같이 션트(shunt) 전이가 자식 노드에서 생성되었던 오토마타에 추가되고 'maxOccurrce'가 2 이상일 때는 도 7a 및 도 7b의 4로 표시된 바와 같이 루프 전이가 추가된다. 방문된 노드가 그룹 노드(group node)인 경우에는 그룹의 종류에 따라 자식 노드들에서 생성된 각 오토마타를 하나의 오토마타로 합치게 되며, 도 7a 및 도 7b의 5로 표기된 오토마타는 그룹 모델 중 'choice' 에 대한 예를 보이고 있다. Such a syntax tree generates a finite automata according to the type of node visited while running in a post-order as shown in FIGS. 7A and 7B. When the visited node is an element node, an automata consisting of a start state, an element transition, and a type state is generated as indicated by 1 and 3 of FIGS. 7A and 7B. When the visited node is an occurrence node, when minOccurrce is 0, as shown by 2 and 6 in FIGS. 7A and 7B, a shunt transition is added to the automata that was created in the child node and when 'maxOccurrce' is 2 or more. Loop transitions are added as indicated by 4 in 7a and 7b. When the visited node is a group node, each automata generated from the child nodes is merged into one automata according to the group type. The automata indicated by 5 in FIGS. 7A and 7B is' Here's an example of choice '.

상기에서 설명한 바와 같이 유한 오토마타 생성은 스키마에 따라 이루어 지며, 본 발명에서는 XML파서를 사용하지 못하는 환경에서 오토마타를 생성하기 위하여 먼저 SFFI를 정의하여, 도 3과 같이 SF로부터 오토마타를 생성하는 경우와, 스키마가 직접 XML파서에 의하여 파싱된 후 곧바로 오토마타를 생성하는 경우에 대한 공통 인터페이스 역할을 하도록 한다. SFFI는 상기에서 설명한 콤플렉스 타입에 대한 오토마타 생성과정을 고려하여 설계되었으며, 콤플렉스 타입 정보 외에 심플 타입, 네임스페이스(namespace), 상속 관계 등의 모든 정보를 복호기로 입력할 수 있도록 한다.As described above, finite automata generation is performed according to a schema. In the present invention, SFFI is first defined to generate an automata in an environment in which an XML parser is not used. It acts as a common interface for creating automata immediately after schema is directly parsed by XML parser. SFFI is designed in consideration of the automata generation process for the complex type described above. In addition to the complex type information, the SFFI can input all information such as simple type, namespace, inheritance relationship, etc. into the decoder.

도 5에는 이러한 SFFI에 대한 프로토타입의 일예를 나타내었다. 도 5를 참조하면, SFFI {}로서 신택스 파일 포맷 인터페이스 함수를 정의하고, ComplexTypeInterface {}로서 콤플렉스 타입 인터페이스 함수를 정의한다. 신택스 파일 포맷(이하 SFF라 칭함)에 대하여 설명한다. SFF는 상기의 SFFI 호출을 통해 전달될 스키마 정보를 저장하기 위하여 본 발명에서 정의한 포맷이다. 스키마 파일은 XML형식이므로 XML파싱 모듈을 필요로 하기 때문에, SFF의 목적은 XML 파싱 모듈이 작동하기 어려운 환경에서 XML을 대신하여 스키마 정보를 전송하는 것이다. SFF는 복호기에 스키마 정보를 전송하는 용도이므로, 스키마와 동등(equivalent)하고 가독성과 설계 및 편집을 고려하지 않으며 자원을 적게 소비하고 효율적인 해석이 가능해야 한다는 요구 사항에 따라 정의하였다.5 shows an example of a prototype for such an SFFI. Referring to FIG. 5, a syntax file format interface function is defined as SFFI {}, and a complex type interface function is defined as ComplexTypeInterface {}. The syntax file format (hereinafter referred to as SFF) will be described. SFF is a format defined in the present invention to store schema information to be transmitted through the SFFI call. Since the schema file is in XML format and requires an XML parsing module, the purpose of SFF is to transmit schema information on behalf of XML in an environment where the XML parsing module is difficult to operate. Since SFF is used to transmit schema information to the decoder, it is defined according to the requirement that it is equivalent to the schema, does not consider readability, design and editing, consumes less resources, and enables efficient interpretation.

SFF는 크게 네임스페이스 라인(502), 심플 타입 라인(504), 콤플렉스 타입 라인(506), 전역 엘리먼트 라인, 상속 트리 라인들로 구성된다. 네임스페이스 라인(502)은 'namespace prefix'와 'namespace URI'로 구성된다. 심플 타입 라인(504)은, 심플 타입이 기본 타입들에 대한 상속을 통하여 정의되므로, 이러한 상속 관계를 표현하는 트리를 전위 순서(pre-order)로 운행하며 방문되는 노드들에 대한 정보의 시퀀스로 구성된다. 콤플렉스 타입 라인(504)은, 콤플렉스 타입에 대 한 유한 오토마타가 상기의 신택스 트리(Syntax Tree)를 후위 순서로 운행하며 생성되기 때문에, 신택스 트리(Syntax Tree)를 후위 순서로 방문하며 각 노드들에 대한 정보의 시퀀스로 구성된다. 또한 콤플렉스 타입은 에트리뷰트(attribute)를 포함할 수 있으므로, 콤플렉스 타입 라인에는 에트리뷰트 리스트도 포함된다. 전역 엘리먼트 라인은 스키마에 전역으로 선언된 엘리먼트들에 대하여 이름과 타입을 포함하며, 상속 트리 라인(520)은 스키마에 정의된 각 타입들의 상속 관계를 트리로 표현하여 전위 운행하며 방문되는 노드들의 타입 명들로 구성된다.The SFF is largely composed of a namespace line 502, a simple type line 504, a complex type line 506, a global element line, and an inheritance tree line. The namespace line 502 consists of a 'namespace prefix' and a 'namespace URI'. The simple type line 504 is a sequence of information about nodes visited while running in a pre-order tree, representing the inheritance relationship, because the simple type is defined through inheritance for basic types. It is composed. Since the complex type line 504 is generated by the finite automata for the complex type running in the backward order in the syntax tree, the complex tree is visited in the backward order to the respective nodes. It consists of a sequence of information about. Complex types can also contain attributes, so the complex type line also contains a list of attributes. The global element line includes names and types for elements declared globally in the schema, and the inheritance tree line 520 represents the inheritance relationship of each type defined in the schema as a tree, and the potential types of nodes visited and visited. It consists of people.

도 8에는 간단한 예제 스키마에 대한 신택스 파일(SF)을 나타내었다. 도 8을 참조하면 입력된 스키마 파일(80)에 대하여 데스크탑 환경에서 변환 작업이 수행되어 신택스 파일(82)이 생성되는데, "802"와 "804"로 참조되는 'T1'과 'T2'에 대한 콤플렉스 타입(802)은 신택스 파일에서 각각 "822"와 "824"로 참조되는 부분과 같이 변환된다. 또한, "806"와 "808"로 참조되는 'rareType'과 'additiveType'에 대한 심플 타입은 각각 "826"과 "828"로 참조되는 부분과 같이 변환된다.8 shows a syntax file (SF) for a simple example schema. Referring to FIG. 8, a transformation operation is performed on the input schema file 80 in a desktop environment, thereby generating a syntax file 82. For 'T1' and 'T2' referred to as '802' and '804' Complex type 802 is converted as part of the syntax file referred to as "822" and "824", respectively. In addition, the simple types for 'rareType' and 'additiveType' referred to as "806" and "808" are converted as the parts referred to as "826" and "828", respectively.

위의 변환 과정을 정리하면, SFF는 가독성을 고려하지 않고 상속 등의 스키마 설계에 관련된 정보들을 제거하고 XML형식의 스키마 파일에 대하여 상속 관계를 실현하고 이름을 정규화하며 신택스 트리(Syntax Tree)를 생성하는 과정 등을 거쳐 복호기에 입력되기 바로 직전의 정보들을 그대로 저장하는 형식이다. 따라서 사람(설계자)관점인 XML형식의 스키마에 비하여 복호기 관점인 SF를 사용할 경우 더 효율적으로 복호기를 초기화할 수 있다.To summarize the above conversion process, SFF removes information related to schema design such as inheritance without considering readability, realizes inheritance relations for XML format schema files, normalizes names, and generates syntax trees. It saves the information just before it is input to the decoder through the process. Therefore, the SF can be initialized more efficiently when using SF, which is the decoder's point of view, compared to the XML format schema, which is the human (designer) point of view.

이와 같이 본 발명에서는 데스크탑 환경에서 SF를 생성하고 이를 모바일 단 말로 전송하여 사용함으로써 모바일 단말기에서 BiM 복호기를 XML파싱에 의존하지 않고 효율적으로 스키마 정보를 입력받을 수 있도록 구현하였다.As described above, in the present invention, the SF is generated in the desktop environment and transmitted to the mobile terminal to be used so that the BiM decoder can efficiently receive schema information without relying on XML parsing in the mobile terminal.

상기와 같은 본 발명에 따른 모바일 플랫폼에서의 BiM 복호기에 스키마 정보를 입력하는 방법은 모바일 단말에 대하여 각종 멀티미디어 콘텐츠/서비스를 제공함에 있어서 메타데이터를 표현하기 위하여 사용되는 XML 문서의 스키마를 데스크탑 환경에서 소정 형식의 신택스 파일로 변환하여 모바일 플랫폼으로 제공함으로써, 텍스트 형식의 XML문서로부터 BiM으로 부호화된 이진 스트림을 복호화하는데 있어서 필요한 스키마를 해석함에 있어 모바일 플랫폼의 XML 파싱 모듈에 의존하지 않고 스키마 정보를 복호기로 입력할 수 있다.The method of inputting schema information to a BiM decoder in a mobile platform according to the present invention as described above is a schema of an XML document used to express metadata in providing various multimedia contents / services to a mobile terminal in a desktop environment. By converting into a syntax file of a predetermined format and providing it to the mobile platform, the decoder decodes the schema information without relying on the XML parsing module of the mobile platform in interpreting a schema required for decoding a BiM encoded binary stream from an XML document in a text format. You can enter

이상에서는 본 발명의 바람직한 실시 예에 대하여 도시하고 설명하였지만, 본 발명은 상술한 특정의 실시 예에 한정되지 아니하며, 청구범위에서 청구하는 본 발명의 요지를 벗어남이 없이 당해 고안이 속하는 기술분야에서 통상의 지식을 가진 자에 의해 다양한 변형실시가 가능한 것은 물론이고, 이러한 변형실시들은 첨부된 청구항들에 의하여 정의되는 본 발명의 권리 범위에 속한다 할 것이다.Although the above has been illustrated and described with respect to the preferred embodiment of the present invention, the present invention is not limited to the specific embodiments described above, it is usually in the art to which the subject innovation belongs without departing from the spirit of the invention claimed in the claims. Various modifications can be made by those skilled in the art, as well as such modifications which will fall within the scope of the invention as defined by the appended claims.

도 1 및 도 2는 일반적인 BiM에 대한 부호화 및 복호화 과정의 일예를 설명하기 위한 도면,1 and 2 are diagrams for explaining an example of an encoding and decoding process for a general BiM;

도 3은 본 발명에 따른 모바일 단말기의 스키마 기반 BiM 복호기를 위한 데이터 처리 방법이 이루어지는 BiM 복호기 시스템의 구조를 나타낸 블록도,3 is a block diagram illustrating a structure of a BiM decoder system in which a data processing method for a schema-based BiM decoder of a mobile terminal is implemented according to the present invention;

도 4는 본 발명의 실시예에 따른 모바일 단말기의 스키마 기반 BiM 복호기를 위한 데이터 처리 방법을 도시한 흐름도,4 is a flowchart illustrating a data processing method for a schema-based BiM decoder of a mobile terminal according to an embodiment of the present invention;

도 5는 본 발명의 실시예에 따른 모바일 단말기의 스키마 기반 BiM 복호기를 위한 데이터 처리 방법에서 XML 파서를 사용할 수 없는 환경에서 오토마타를 생성하기 위하여 신택스 파일 포맷 인터페이스를 정의하는 단계를 설명하기 위한 도면,5 is a view for explaining a step of defining a syntax file format interface to generate an automata in an environment where an XML parser cannot be used in a data processing method for a schema-based BiM decoder of a mobile terminal according to an embodiment of the present invention;

도 6은 본 발명의 실시예에 따른 모바일 단말기의 스키마 기반 BiM 복호기를 위한 데이터 처리 방법을 나타낸 도 4의 단계(S402)를 설명하기 위한 도면을 나타내었다. FIG. 6 is a diagram illustrating a step S402 of FIG. 4 illustrating a data processing method for a schema-based BiM decoder of a mobile terminal according to an embodiment of the present invention.

도 7a 및 도 7b는 본 발명의 실시예에 따른 모바일 단말기의 스키마 기반 BiM 복호기를 위한 데이터 처리 방법에서 스키마 정보를 바탕으로 콤플렉스 타입에 대하여 유한 오토마타를 생성하는 방식에 대하여 개념적으로 설명하기 위한 도면, 및7A and 7B are views for conceptually describing a method of generating a finite automata for a complex type based on schema information in a data processing method for a schema-based BiM decoder of a mobile terminal according to an embodiment of the present invention; And

도 8은 본 발명에 따른 모바일 단말기의 스키마 기반 BiM 복호기를 위한 데이터 처리 방법의 간단한 예제 스키마에 대한 신택스 파일(SF)을 나타낸 도면.8 illustrates a syntax file (SF) for a simple example schema of a data processing method for a schema-based BiM decoder in a mobile terminal according to the present invention.

Claims (3)

(a) 데스크탑 환경에서 XML 형식의 스키마 파일을 불러들이는 단계;(a) importing a schema file in XML format in a desktop environment; (b) 데스크탑 환경에서 XML 형식의 스키마 파일에서 정의된 상속 관계를 실현하고 이름을 정규화하여 스키마와 동등한 소정의 신택스 파일로 변환하는 단계;(b) realizing the inheritance relationship defined in the schema file in XML format in the desktop environment and normalizing the name into a predetermined syntax file equivalent to the schema; (c) 상기 신택스 파일을 모바일 단말로 전송하는 단계; 및(c) transmitting the syntax file to a mobile terminal; And (d) 모바일 단말에서 상기 신택스 파일을 직접 해석하여 BiM 복호기를 초기화함으로써 모바일 플랫폼에서 상기 신택스 파일을 해석하여서 신택스 파일 포맷 인터페이스를 통하여 BiM 복호기로 스키마 정보를 입력하게 하는 단계;를 포함하고,(d) directly interpreting the syntax file in the mobile terminal to initialize the BiM decoder to interpret the syntax file in the mobile platform to input schema information into the BiM decoder through a syntax file format interface; 상기 (b) 단계는,In step (b), (b-1) 불러들인 XML 형식의 스키마 파일에서 프로그래머가 읽고 이해하기 용이하게 하기 위한 가독성 정보와 상속 관계 실현에 사용되는 스키마 설계 정보들을 제거하는 단계; 및(b-1) removing readability information and schema design information used to realize inheritance relations to facilitate reading and understanding by the programmer in the imported XML format schema file; And (b-2) XML 형식의 스키마 파일에서 정의된 상속 관계를 실현하고 이름을 정규화하여 XML에서 정의되는 네임스페이스 라인, 심플 타입 라인, 콤플렉스 타입 라인, 전역 엘리먼트 라인, 상속 트리 라인들로 구성되는 소정의 신택스 파일로 변환하는 단계;를 포함하는 것을 특징으로 하는 모바일 플랫폼에서의 BiM 복호기에 스키마 정보를 입력하는 방법.(b-2) Realization of the inheritance relationship defined in the XML format schema file and normalization of the name to define a predetermined structure consisting of namespace lines, simple type lines, complex type lines, global element lines, and inheritance tree lines defined in XML. And converting the syntax file into a syntax file of the BiM decoder in a mobile platform. 삭제delete 제1항에 있어서, 상기 (b) 단계는 상기 (b-1) 단계 이전에,The method of claim 1, wherein step (b) is performed before step (b-1), (p-b-1) XML 파서를 사용하지 못하는 환경에서 오토마타를 생성하기 위하여, 소정의 신택스 파일 포맷 인터페이스를 정의하는 단계를 더 포함하고,(p-b-1) further comprising defining a predetermined syntax file format interface to generate an automata in an environment that does not use an XML parser, 상기 네임스페이스 라인은 'namespace prefix'와 'namespace URI'로 구성되고,The namespace line is composed of 'namespace prefix' and 'namespace URI', 상기 심플 타입 라인은 상속 관계를 표현하는 트리를 전위 순서(pre-order)로 운행하며 방문되는 노드들에 대한 정보의 시퀀스로 구성되며,The simple type line is composed of a sequence of information about nodes visited by running a tree representing an inheritance relationship in a pre-order. 상기 콤플렉스 타입 라인은, 콤플렉스 타입에 대한 유한 오토마타가 상기의 신택스 트리(Syntax Tree)를 후위 순서로 운행하며 생성되는 것에 착안하여 신택스 트리(Syntax Tree)를 후위 순서로 방문하며 각 노드들에 대한 정보의 시퀀스로 구성되고, 콤플렉스 타입은 에트리뷰트(attribute)를 포함할 수 있음에 착안하여 콤플렉스 타입 라인은 에트리뷰트 리스트를 포함하고,In the complex type line, the finite automata for the complex type is generated by running the syntax tree in a backward order, and visits the syntax tree in a backward order, and information about each node. In view of the fact that a complex type may include an attribute, the complex type line contains a list of attributes, 상기 전역 엘리먼트 라인은 스키마에 전역으로 선언된 엘리먼트들에 대하여 이름과 타입을 포함하며,The global element line includes names and types for elements declared globally in the schema, 상기 상속 트리 라인은 스키마에 정의된 각 타입들의 상속 관계를 트리로 표현하여 전위 운행하며 방문되는 노드들의 타입 명들로 구성된 것을 특징으로 하는 모바일 플랫폼에서의 BiM 복호기에 스키마 정보를 입력하는 방법.The inheritance tree line is a method of inputting schema information to a BiM decoder in a mobile platform, characterized in that the tree represented by the inheritance relationship of each type defined in the schema consisting of the type names of nodes visited and moved forward.
KR1020070130632A 2007-12-14 2007-12-14 How to Enter Schema Information into the Mui Decoder on Mobile Platforms KR100931636B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020070130632A KR100931636B1 (en) 2007-12-14 2007-12-14 How to Enter Schema Information into the Mui Decoder on Mobile Platforms

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020070130632A KR100931636B1 (en) 2007-12-14 2007-12-14 How to Enter Schema Information into the Mui Decoder on Mobile Platforms

Publications (2)

Publication Number Publication Date
KR20090063329A KR20090063329A (en) 2009-06-18
KR100931636B1 true KR100931636B1 (en) 2009-12-14

Family

ID=40992307

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020070130632A KR100931636B1 (en) 2007-12-14 2007-12-14 How to Enter Schema Information into the Mui Decoder on Mobile Platforms

Country Status (1)

Country Link
KR (1) KR100931636B1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030059398A (en) * 2001-12-29 2003-07-10 엘지전자 주식회사 Multimedia data searching and browsing system
JP2005538436A (en) * 2002-07-15 2005-12-15 シーメンス アクチエンゲゼルシヤフト Method and apparatus for encoding / decoding structured text, especially XML text

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030059398A (en) * 2001-12-29 2003-07-10 엘지전자 주식회사 Multimedia data searching and browsing system
JP2005538436A (en) * 2002-07-15 2005-12-15 シーメンス アクチエンゲゼルシヤフト Method and apparatus for encoding / decoding structured text, especially XML text

Also Published As

Publication number Publication date
KR20090063329A (en) 2009-06-18

Similar Documents

Publication Publication Date Title
CN106970820B (en) Code storage method and code storage device
US10630614B2 (en) Opaque message parsing
Burke RESTful Java with Jax-RS
Burke RESTful Java with JAX-RS 2.0: Designing and developing distributed web services
US7945904B2 (en) Embedding expression in XML literals
JP2004518231A (en) Method for compressing a structured description of a document
JP5325920B2 (en) Encoder compiler, program and communication equipment
US20090254882A1 (en) Methods and devices for iterative binary coding and decoding of xml type documents
US7237194B2 (en) System and method for generating optimized binary representation of an object tree
CN101185116A (en) Using strong data types to express speech recognition grammars in software programs
US20100211867A1 (en) Processing module, a device, and a method for processing of xml data
US8862531B2 (en) Knowledge based encoding of data
CN112269566A (en) Script generation processing method, device, equipment and system
JP5166565B2 (en) EXI encoder and program
Käbisch et al. Standardized and efficient RDF encoding for constrained embedded networks
Werner et al. Compressing soap messages by using pushdown automata
Rogge et al. Validating MPEG-21 encapsulated functional Metadata
KR100931636B1 (en) How to Enter Schema Information into the Mui Decoder on Mobile Platforms
RU2294012C2 (en) Data structure and methods for transforming stream of bits to electronic document and generation of bit stream from electronic document based on said data structure
JP2007148751A (en) Encoding method, encoding device, encoding program and decoding device for structured document and data structure for encoded structured document
Lucarz et al. Automatic synthesis of parsers and validation of bitstreams within the MPEG reconfigurable video coding framework
Hall Generation of Restful API Proxy Service from Soap Service
KR100660057B1 (en) Storing and restoring method of binary xml using fast infoset
Stankovic et al. XML framework for various types of decision diagrams for discrete functions
Hong et al. XFlavor: providing XML features in media representation

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
LAPS Lapse due to unpaid annual fee