KR20050006975A - Method for Controlling Content Files Using Identification - Google Patents

Method for Controlling Content Files Using Identification Download PDF

Info

Publication number
KR20050006975A
KR20050006975A KR1020030046974A KR20030046974A KR20050006975A KR 20050006975 A KR20050006975 A KR 20050006975A KR 1020030046974 A KR1020030046974 A KR 1020030046974A KR 20030046974 A KR20030046974 A KR 20030046974A KR 20050006975 A KR20050006975 A KR 20050006975A
Authority
KR
South Korea
Prior art keywords
content
file
contents
name
path
Prior art date
Application number
KR1020030046974A
Other languages
Korean (ko)
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 KR1020030046974A priority Critical patent/KR20050006975A/en
Publication of KR20050006975A publication Critical patent/KR20050006975A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs

Landscapes

  • Business, Economics & Management (AREA)
  • Tourism & Hospitality (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE: A method for dynamically managing sameness of contents files and controlling the contents file with an ID is provided to make an XML(eXtensible Markup Language) document for contents based on the ID by assigning the ID to the contents existing in a file system, and efficiently perform a work to manage the contents existing in the XML document and the file system. CONSTITUTION: A path file having a corresponding contents name as the content is generated(S620). An ID file of the contents determining the content depending on a count of the lower contents is generated(S640). A perfect path name of the controlling contents is found out by using the path files for the upper contents of the controlling contents.

Description

식별자를 이용하여 컨텐츠 파일을 컨트롤하는 방법{Method for Controlling Content Files Using Identification}How to control content files using identifiers {Method for Controlling Content Files Using Identification}

본 발명은 컨텐츠 파일의 동일성을 식별하는 방법에 관한 것이다. 보다 상세하게는 컨텐츠에 식별자를 할당하여 그 식별자를 기준으로 컨텐츠가 이루는 파일 시스템을 메타 데이터로 표현함으로써 동적으로 컨텐츠 파일의 동일성을 관리하고, 상기 식별자를 이용하여 컨텐츠 파일을 컨트롤하는 방법에 관한 것이다.The present invention relates to a method of identifying the identity of a content file. More specifically, the present invention relates to a method of dynamically managing the identity of a content file by assigning an identifier to the content and expressing a file system of the content based on the identifier as metadata, and controlling the content file using the identifier. .

종래기술에 따르면, 파일 시스템에 저장되어 있는 컨텐츠에 식별자를 할당하는 방법으로는 순차적으로 1, 2, 3 등을 할당하는 방식으로 할 수 도 있고, 컨텐츠의 전체 경로(Pull Path)를 할당하는 방식으로 할 수도 있다. 도 1은 종래의 순차적으로 식별자를 할당하는 방법에 관한 것으로서, 최상위(Root)로부터 최하위(Bottom)까지 순차적으로 1, 2, 3, 4, … 혹은 A, B, C, D, … 형식으로 컨텐츠에 대한 식별자를 할당하는 방식이다. 그러나, 이러한 방법에 따라 순차적으로 할당되어 있는 식별자를 이용하여서는 특정 식별자에 해당하는 컨텐츠가 파일 시스템의 어느 부분에 위치해 있는지 알 수 있는 방법이 없다.According to the related art, a method of allocating an identifier to content stored in a file system may be sequentially assigning 1, 2, 3, or the like, or assigning a full path of content. You can also do 1 relates to a conventional method of sequentially assigning identifiers, and sequentially 1, 2, 3, 4,... From the top to the bottom. Or A, B, C, D,... This method assigns an identifier for the content in the format. However, there is no way to know in which part of the file system the contents corresponding to a particular identifier are located by using the identifiers assigned sequentially according to this method.

도 2는 식별자로서 컨텐츠의 완전 경로(Pull Path)를 할당하는 방법에 관한 것으로서, 파일 시스템에 존재하는 컨텐츠를 최상위로부터 최하위까지 컨텐츠의 명칭(Name)을 상위 식별자의 뒷부분에 붙여 나감으로써 해당 컨텐츠의 경로를 식별자로서 할당하는 방식이다. 이 방법에 따라 식별자를 이용하여 파일 시스템에 존재하는 컨텐츠를 삭제(Delete), 추가(Add) 또는 변경(Rename)할 경우에 컨텐츠의 명칭도 추가, 변경, 삭제가 되어야 하기 때문에, XML 문서에서 이에 해당하는 컨텐츠의 명칭이 포함되어 있는 식별자 모두를 일일이 변경할 필요가 있다. 따라서, 이러한 방법으로는 XML 문서를 이용하여 효율적으로 컨텐츠 파일을 관리하기가 어렵다. 따라서, 본 발명에서 제안하는 바와 같은 식별자를 통해서 컨텐츠를 효과적으로 관리할 수 있는 방법을 강구할 필요성이 있다.FIG. 2 is a method for allocating a full path of content as an identifier. The present invention relates to a method of assigning a full path of content as an identifier. It assigns a path as an identifier. According to this method, when deleting, adding, or renaming contents existing in the file system using an identifier, the name of the contents should be added, changed, or deleted. It is necessary to change all of the identifiers containing the names of the corresponding contents. Therefore, it is difficult to manage content files efficiently using XML documents in this way. Therefore, there is a need to devise a method for effectively managing content through an identifier as proposed in the present invention.

본 발명은 상기의 문제점을 해결하기 위하여 안출된 것으로, 본 발명의 목적은 파일 시스템에 존재하는 컨텐츠에 식별자를 할당하여 식별자를 기준으로 컨텐츠에 대한 XML 문서를 작성하는 방법을 제공하는 데 있다.The present invention has been made to solve the above problems, and an object of the present invention is to provide a method for creating an XML document for the content based on the identifier by assigning an identifier to the content existing in the file system.

본 발명의 또 다른 목적은 XML문서에 작성된 컨텐츠와 이에 매핑되는 파일 시스템에 존재하는 컨텐츠를 추가, 변경하거나 삭제하는 작업 등, 컨텐츠를 관리하는 작업을 효율적으로 수행할 수 있도록 하는 식별자 할당 매커니즘을 제안하는 데 있다.Another object of the present invention is to propose an identifier allocation mechanism for efficiently managing a content, such as adding, changing, or deleting content written in an XML document and content existing in a file system mapped thereto. There is.

도 1은 종래기술에 따른 순차적 식별자를 이용하여 컨텐츠 파일의 동일성을 판단하는 방법을 나타낸 것이다.1 illustrates a method of determining the identity of a content file using a sequential identifier according to the prior art.

도 2는 종래기술에 따른 완전 경로 식별자를 이용하여 컨텐츠 파일의 동일성을 판단하는 방법을 나타낸 것이다.2 illustrates a method for determining the identity of a content file using a full path identifier according to the prior art.

도 3a는 컨텐츠 디바이스에서 컨텐츠 파일의 파일 시스템 구조를 나타낸 것이다.3A illustrates a file system structure of a content file in a content device.

도 3b는 컨텐츠 디바이스의 컨텐츠 파일에 대응하여 각각 할당된 식별자를 나타낸 것이다.3B illustrates an identifier assigned to the content file of the content device, respectively.

도 3c는 컨텐츠 디바이스의 컨텐츠 파일 각각에 대하여 생성되는 ID파일의 파일 명칭을 나타낸 것이다.3C illustrates a file name of an ID file generated for each content file of the content device.

도 3d는 컨텐츠 파일의 식별자 인덱스 및 ID 파일의 내부정보의 예를 나타낸 것이다.3D illustrates an example of an identifier index of a content file and internal information of an ID file.

도 3e는 컨텐츠 디바이스의 컨텐츠 파일 각각에 대하여 생성되는 경로 파일의 파일 명칭을 나타낸 것이다.3E illustrates a file name of a path file generated for each content file of the content device.

도 4는 컨텐츠 파일의 삭제, 추가 또는 변경 동작을 수행하기 위하여 컨텐츠디바이스와 제어 기기간에 수행하는 전체 동작 과정을 나타낸 것이다.4 is a flowchart illustrating an overall operation performed between a content device and a control device to perform an operation of deleting, adding, or changing a content file.

도 5a는 삭제 동작에 따라 XML 문서와 파일 시스템이 수정되는 예를 나타낸 것이다.5A illustrates an example in which an XML document and a file system are modified according to a delete operation.

도 5b는 추가 동작에 따라 XML 문서와 파일 시스템이 수정되는 예를 나타낸 것이다.5B illustrates an example in which an XML document and a file system are modified according to an additional operation.

도 5c는 변경 동작에 따라 XML 문서와 파일 시스템이 수정되는 예를 나타낸 것이다.5C illustrates an example in which an XML document and a file system are modified according to a change operation.

도 6은 제어 기기의 브라우즈 동작 명령에 따라 컨텐츠의 경로 파일, ID 파일 및 XML 파일을 생성하는 과정을 나타낸 것이다.6 illustrates a process of generating a path file, an ID file, and an XML file of content according to a browse operation command of a control device.

도 7은 제어 기기의 삭제, 추가 또는 변경 동작 명령에 따라 컨텐츠의 경로 파일, ID 파일 및 XML 파일을 수정하는 과정을 나타낸 것이다.7 illustrates a process of modifying a path file, an ID file, and an XML file of content according to a delete, add, or change operation command of a control device.

상기의 목적을 달성하기 위하여, 본 발명에 따른 제1 디바이스에 저장된 컨텐츠 파일을 컨텐츠와 동일시 할 수 있는 식별자를 이용하여 제2 디바이스에서 컨트롤하는 방법은, 해당 컨텐츠 명을 내용으로 갖는 경로 파일을 생성하는 단계; 하위 컨텐츠의 개수에 따라 내용이 결정되는 상기 컨텐츠의 ID 파일을 생성하는 단계; 및 컨트롤 하고자 하는 컨텐츠의 상위 컨텐츠들의 상기 경로 파일들을 이용하여 상기 컨트롤 하고자 하는 컨텐츠의 완전 경로명을 구하는 단계를 포함하는 것을 특징으로 한다.In order to achieve the above object, a method for controlling a content file stored in a first device according to the present invention by using an identifier capable of identifying the content in the second device, generating a path file having the content name as the content. Doing; Generating an ID file of the contents whose contents are determined according to the number of lower contents; And obtaining the full path name of the content to be controlled by using the path files of the upper contents of the content to be controlled.

이하 도면에 따라 발명의 일 실시예를 상세히 설명한다. 도 3a는 컨텐츠 디바이스에서 컨텐츠 파일의 파일 시스템 구조를 나타낸 것이다. A, B, C, … 는 컨텐츠 디바이스에 저장된 각 컨텐츠의 명칭을 의미한다. 각 컨텐츠는 읽고 쓰기가 가능한 파일일 수도 있고 하위 컨텐츠(Child Content)를 포함하는 디렉토리일 수도 있으며, 또한 각각의 컨텐츠는 하위 컨텐츠를 가질 수 있도록 계층 구조로 형성되어 있다. 본 도가 나타내는 예에서는 이러한 파일 시스템이 최상위 레벨 1부터 최하위 레벨 4까지의 계층을 가지는 것으로 나타나 있다.Hereinafter, an embodiment of the present invention will be described in detail with reference to the accompanying drawings. 3A illustrates a file system structure of a content file in a content device. A, B, C,... Denotes a name of each content stored in the content device. Each content may be a file that can be read and written or a directory including child content, and each content is formed in a hierarchical structure to have child content. In the example shown in this figure, such a file system is shown to have hierarchies from the top level 1 to the bottom level four.

도 3b는 컨텐츠 디바이스의 컨텐츠 파일에 대응하여 각각 할당된 식별자를나타낸 것이다. 상기 식별자를 나타내는 기호는 a, b, c, … 등으로 표시될 수 있는데, 도 3a에서와 같은 위치에 있는 식별자는 같은 위치에 있는 컨텐츠 명칭에 해당한다. 이러한 식별자는 상위 컨텐츠로 부터의 경로를 알 수 있도록 나타나 있다. 예를 들어, 파일 명칭 'J'의 식별자는 'a-b-b-a' 인데, 상기 'J'는 '첫번째-두번째-두번째-첫번째' 경로를 거친다는 사실을 알 수 있다.3B illustrates identifiers assigned to the content files of the content device, respectively. The symbols representing the identifiers are a, b, c,... The identifier at the same position as in FIG. 3A corresponds to the content name at the same position. This identifier is shown so that the path from the parent content is known. For example, the identifier of the file name 'J' is 'a-b-b-a', and it can be seen that the 'J' goes through the 'first-second-second-first' path.

도 3c, 3d는 컨텐츠 디바이스의 컨텐츠 파일 각각에 대하여 생성되는 ID 파일 및 경로 파일의 파일 명칭을 각각 나타낸 것이다. 상기 ID 파일의 경우에는 도 3b에서와 같은 컨텐츠에 할당된 ID를 명칭으로 하고, 'id'를 확장자로 덧붙인 형식으로 나타낼 수 있고, 경로 파일의 경우에는 할당된 ID를 명칭으로 하고, 'path'를 확장자로 덧붙인 형식으로 나타낼 수 있다. 예를 들어, 파일 명칭 'J'에 대한 식별자는 'a-b-b-a' 이므로, 상기 'J'에 대한 ID 파일은 'a-b-b-a.id' 의 형태로, 경로 파일은 'a-b-b-a.path' 의 형태로서 나타낼 수 있다.3C and 3D show file names of an ID file and a path file generated for each content file of the content device, respectively. In the case of the ID file, an ID assigned to the content as shown in FIG. 3B may be referred to as a name, and 'id' may be added as an extension. In the case of a path file, the assigned ID is referred to as a name and 'path' In the form of an extension. For example, since the identifier for the file name 'J' is 'abba', the ID file for 'J' may be represented as 'abba.id' and the path file may be represented as 'abba.path'. .

먼저, 상기 경로 파일은 각 경로 파일 명칭에 나타난 식별자가 나타내는 컨텐츠 파일의 명칭을 그 내용으로 갖는다. 예를 들어, 경로 파일 'a-b-b-a.path' 의 파일 내용은 'J'가 된다. 이와 같이 각각의 컨텐츠 마다 경로 파일을 갖게 되면, 만약 'J'라는 컨텐츠에 대하여 삭제, 추가, 변경 또는 재생(Play) 등의 명령을 수행하고자 하면 식별자 'a-b-b-a'에 대한 상위 식별자의 경로 파일을 참조한다. 'a-b-b.path' 는 'G' 값을, 'a-b.path' 는 'C' 값을, 'a.path'는 'A' 값을 갖는데, 결국 상기 값 들을 상위 경로에서부터 나열한 'A/C/G/J'가 컨텐츠 'J'의 완전 경로명(Full Path Name)이 되는 것이다. 이와 같은 방법을 사용하면, 만약 'J' 가다른 명칭 'L'로 변경되거나, 'J'가 삭제되고 새로운 명칭 'L'을 가진 컨텐츠가 추가되더라도, 해당 경로 파일, 즉 'a-b-b-a.path' 의 내용만 'L'로 바꿔 주면 된다. 결국 새로운 컨텐츠 'L'이 같은 식별자 'a-b-b-a'를 사용하더라도 그 완전 경로명은 'A/C/G/L'로 되어 혼동이 발생하지 않는다.First, the path file has the name of the content file indicated by the identifier shown in each path file name as its content. For example, the file contents of the path file 'a-b-b-a.path' would be 'J'. In this way, if each content has a path file, if a command such as delete, add, change, or play is performed on the content 'J', the path file of the higher identifier for the identifier 'abb-a' See. 'abb.path' has a value of 'G', 'ab.path' has a value of 'C', and 'a.path' has a value of 'A'. G / J 'becomes the full path name of the content' J '. Using this method, if 'J' is changed to another name 'L', or if 'J' is deleted and content with a new name 'L' is added, the path file, i.e. 'abba.path' Just change the contents to 'L'. After all, even if the new content 'L' uses the same identifier 'a-b-b-a', the full path name is 'A / C / G / L' so that there is no confusion.

한편, 상기 ID 파일의 내용은 해당 컨텐츠의 하위 컨텐츠가 없는 경우에는 'NULL' 값으로 주어지고, 하위 컨텐츠가 있는 경우에는 상기 하위 컨텐츠 개수 만큼의 자리수를 갖는 이진수로 나타낼 수 있다. 예를 들어, 도 3a에서 컨텐츠 파일의 명칭이 'G' 인 경우에는 그 하위 컨텐츠가 'J', 'K'로서 2개가 존재하므로 '11'로서 나타낼 수 있다. 여기서 '1'은 하위 컨텐츠가 존재하는 상태를, '0'는 하위 컨텐츠가 존재하지 않는 상태를 나타낸다. 따라서, 'J', 'K'가 존재하였다가 만약 'J'가 삭제된다면, 상기 ID 파일의 내용은 '01'로 나타낼 수 있다. 이후 'G'의 하위 컨텐츠로서 새로운 'L'이 생성되는 경우에는 'K'의 뒤에 덧붙여 'a-b-b-c'라는 식별자를 할당하고 ID 파일은 '011'로 나타내는 것은 자원(Resource)의 낭비이므로, 본 발명에서는 상기 'L'에 비어있는 'a-b-b-a'를 다시 할당하고 ID 파일을 '11'로 설정하도록 한다. 물론, 경로 파일 'a-b-b-a.path' 의 파일 내용이 'L'이 되므로, 상기 삭제된 'J'와 중복되는 식별자 및 ID 파일의 내용을 사용하여도 문제가 되지 않는다.Meanwhile, the content of the ID file may be given as 'NULL' value when there is no lower content of the corresponding content, and when there is lower content, the content of the ID file may be represented by a binary number having as many digits as the number of lower content. For example, in FIG. 3A, when the name of the content file is 'G', two subordinate contents are represented as 'J' and 'K', and thus may be represented as '11'. Here, '1' indicates a state where the lower content exists and '0' indicates a state where the lower content does not exist. Accordingly, if 'J' and 'K' exist and 'J' is deleted, the content of the ID file may be represented as '01'. After that, when a new 'L' is created as a sub-content of 'G', an identifier 'abb-c' is added after 'K' and the ID file is represented by '011', which is a waste of resources. In the present invention, the empty 'abb-a' is reassigned to 'L' and the ID file is set to '11'. Of course, since the file content of the path file 'a-b-b-a.path' becomes 'L', it is not a problem even if the contents of the identifier and ID file overlapping the deleted 'J' are used.

그리고, 하위 컨텐츠가 없는 경우에는 ID 파일에 상기와 같이 'NULL' 값을 부여할 수도 있지만, 아예 ID 파일을 생성하지 않을 수도 있다. 결국 ID 파일에 'NULL' 값을 부여한 것과 ID 파일이 존재하지 않는 것은 결국 같은 상태를 나타내는 것으로 볼 수 있다.If there is no lower content, the ID file may be assigned a NULL value as described above, or an ID file may not be generated at all. In the end, giving a NULL value to an ID file and not having an ID file are the same.

도 3e는 컨텐츠 파일의 식별자 인덱스 및 ID 파일의 내부정보의 예를 나타낸 것이다. 상기 도 3a 내지 도 3d에서 나타낸 예에서 식별자를 순차적으로 나타내는 인덱스는 a, b, c, … 등으로 표시되어 있으나, 이는 하나의 실시예에 불과하고, 실제는 α, β, γ, … 또는 i, ii, iii, … 등 어떠한 식으로도 표현할 수 있다. 이러한 정책은 상기 컨텐츠를 포함하고 있는 컨텐츠 디바이스에서 정할 수도 있고, 상기 컨텐츠 디바이스에 제어 명령을 내리는 제어 기기에서 정할 수도 있다. 본 도는 식별자 기호, 즉 인덱스를 순서대로 a, b, c, d, e로 표시하는 경우를 나타내고 있다.3E illustrates an example of an identifier index of a content file and internal information of an ID file. In the example shown in FIGS. 3A to 3D, the indexes sequentially indicating the identifiers are a, b, c,... And the like, but this is only one embodiment, and in reality, α, β, γ,... Or i, ii, iii,... Etc. can be expressed in any way. Such a policy may be determined by a content device including the content or by a control device that issues a control command to the content device. This figure shows the case where an identifier symbol, i.e., an index, is displayed in order of a, b, c, d, and e.

한편, 해당 컨텐츠의 ID 파일의 내용을 나타내는 '*.id 파일 내부정보' 에는 하위 컨텐츠의 개수 만큼의 자리수(offset)의 이진수로서 나타나 있는데, 해당 위치의 하위 컨텐츠 파일이 존재하면 '1'로 존재하지 않으면 '0'으로 나타낼 수 있다. 본 도는 하위 컨텐츠가 5개 존재하였다가 3번째 컨텐츠 파일이 삭제된 경우에 상기 해당 컨텐츠의 ID 파일 내용을 표시한 것이다.On the other hand, '* .id file internal information' representing the content of the ID file of the content is represented as an offset of the number of sub-contents, and if there is a sub-content file of the corresponding position, it exists as '1'. If not, it can be represented as '0'. FIG. 5 shows the contents of the ID file of the corresponding content when five lower contents exist and the third content file is deleted.

도 4는 컨텐츠 파일의 삭제, 추가 또는 변경 동작을 수행하기 위하여 컨텐츠 디바이스와 제어 기기간에 수행하는 전체 동작 과정을 나타낸 것이다.4 is a flowchart illustrating an overall operation performed between a content device and a control device to perform an operation of deleting, adding, or changing a content file.

첫째로, 제어 기기(420)이 컨텐츠 디바이스(410)에 파일 시스템 구조를 알기 위한 브라우즈(Browse) 동작을 명령한다. 상기 컨텐츠 디바이스란 비디오, 오디오 등 각종 컨텐츠 파일을 저장하고 외부의 명령을 받아 각 컨텐츠 파일을 재생할 수 있는 기기로서, UPnP 시스템에서의 피제어 기기(Controlled Device), AV 시스템을갖춘 개인망 또는 공중망 상의 컴퓨터 등이 될 수 있다. 또한, 상기 제어 기기란 상기 컨텐츠 디바이스와 메타 데이터(본 예서는 XML 문서)를 통하여 컨텐츠 정보를 송수신하고, 컨텐츠 디바이스 내부에 존재하는 컨텐츠 파일에 대한 각종 명령(파일의 브라우즈, 삭제, 추가, 변경 또는 재생)을 내리는 역할을 담당하는 기기로서, UPnP 시스템에서의 컨트롤 포인트(Control Point), 타 컴퓨터를 제어할 수 있는 개인망 또는 공중망 상의 컴퓨터 등이 될 수 있다.First, the control device 420 commands the browse device to know the file system structure to the content device 410. The content device is a device capable of storing various content files such as video and audio, and playing each content file by receiving an external command. The content device may be a device that is controlled by a UPnP system, a personal network having an AV system, or a public network. Computer or the like. In addition, the control device transmits and receives content information with the content device through the metadata (XML document in this example), and various commands (browse, delete, add, change, or change) of the content file existing in the content device. Device, which may be a control point in a UPnP system, a personal network that can control another computer, or a computer on a public network.

둘째로, 상기 컨텐츠 디바이스(410)는 저장된 컨텐츠 파일 구조를 브라우즈한 후, 그 결과를 계층 구조로 나타낸 메타 데이터로 작성하여 상기 제어 기기에 응답으로 전달하게 된다. 상기 메타 데이터를 XML 문서(411)로 작성한 예는 하기하는 도 5a, 5b, 5c의 설명에서 설명하기로 한다.Secondly, the content device 410 browses the stored content file structure, writes the result into metadata representing the hierarchical structure, and delivers the result to the control device in response. An example in which the meta data is created as an XML document 411 will be described in the following description of FIGS. 5A, 5B, and 5C.

셋째로, 상기 제어 기기(420)는 상기 응답으로 수신한 XML 문서를 파싱(Parsing)하여 상기 컨텐츠 디바이스가 갖는 컨텐츠 파일의 파일 시스템을 파악한다. XML 파서(XML Parser)로는 널리 알려져 있는 DOM (Document Object Model Parser) 파서 또는 SAX (Simple API for XML) 파서 등을 이용할 수 있다.Third, the control device 420 parses the XML document received in response to determine the file system of the content file of the content device. As an XML parser, a well-known Document Object Model Parser (DOM) parser or Simple API for XML (SAX) parser may be used.

넷째로, 상기 제어 기기(420)는 사용자 명령 또는 일정한 규칙에 의한 명령에 따라 상기 컨텐츠 파일 중 특정 파일에 대하여 삭제, 추가 또는 변경 동작을 상기 컨텐츠 디바이스(410)에 명령한다.Fourth, the control device 420 instructs the content device 410 to delete, add, or change a specific file among the content files according to a user command or a command based on a predetermined rule.

다섯째로, 상기 명령을 수신한 컨텐츠 디바이스(410)는 각 명령에 따른 동작을 파일 시스템에 대하여 수행한 후, 상기 작성된 XML 문서를 수정함으로써 이를 반영한다.Fifth, the content device 410 receiving the command reflects this by modifying the created XML document after performing an operation according to each command on the file system.

마지막으로, 상기 컨텐츠 디바이스(410)는 상기 명령이 올바로 수행된 경우에는 상기 수정된 결과를 나타내는 XML 문서를 상기 제어 기기(420)에 응답으로서 돌려 준다.Finally, when the command is correctly executed, the content device 410 returns an XML document indicating the modified result to the control device 420 as a response.

도 5a는 삭제 동작에 따라 XML 문서와 파일 시스템이 수정되는 예를, 도 5b는 추가 동작에 따라 XML 문서와 파일 시스템이 수정되는 예를, 그리고 도 5c는 변경 동작에 따라 XML 문서와 파일 시스템이 수정되는 예를 나타낸 것이다. 먼저, 도 5a에서 삭제 동작을 살펴보면 'a-a'를 식별자로 갖는 'Man'이라는 컨텐츠의 하위 컨텐츠로서 'a-a-a'라는 식별자를 갖는 'KBY' 라는 컨텐츠가 삭제된 경우에는 본 도와 같이 XML 문서에서 해당 부분을 삭제해 주면 된다. 이후 도 5b에서 보는 바와 같이 'Man' 하위에 새로운 컨텐츠 'JSA'를 추가하고자 한다면, 새로이 'a-a-c'라는 식별자를 할당할 필요 없이 비어 있는 'a-a-a'라는 식별자를 갖는 새로운 컨텐츠 명칭 'JSA'를 추가하면 된다. 이후 도 5c에서 보는 바와 같이 'Man' 컨텐츠를 'Boy' 라는 명칭으로 변경을 하고자 하는 경우에는 'Man' 컨텐츠가 가지고 있던 식별자 'a-a' 에 부분에 명칭만을 'Boy'로 변경하면 될 것이다.5A illustrates an example in which an XML document and a file system are modified according to a delete operation, FIG. 5B illustrates an example in which an XML document and a file system are modified according to an add operation, and FIG. 5C illustrates an XML document and a file system in accordance with a change operation. An example is shown. First, referring to the delete operation of FIG. 5A, when the content of 'KBY' having the identifier of 'aa-a' is deleted as a sub-content of the content of 'Man' having 'a-a' as an identifier, the XML is as shown in this diagram. Just delete that part of the document. Subsequently, if you want to add a new content 'JSA' under 'Man', as shown in FIG. 5B, a new content name with an empty 'aa-a' identifier without having to assign a new 'aa-c' identifier ' Just add JSA '. Subsequently, as shown in FIG. 5C, when the 'Man' content is to be changed to the name 'Boy', only the name of the 'Man' content having the identifier 'a-a' may be changed to 'Boy'.

도 6은 제어 기기의 브라우즈 동작 명령에 따라 컨텐츠의 경로 파일, ID 파일 및 XML 파일을 생성하는 과정을 나타낸 것이다. 먼저, 식별자를 순차적으로 나타내는 인덱스를 결정한다(S600). 이러한 인덱스는 a, b, c, …, 또는 i, ii, iii, …, 또는 α, β, γ, … 등 여러 가지로 나타낼 수 있는데, 사용자가 결정하도록 할 수도 있고 기기 환경에 따라 미리 지정되어 있을 수도 있다. 다음으로 제어 기기가 컨텐츠 디바이스에 있는 컨텐츠 파일의 파일 시스템을 알기 위하여 브라우즈동작 명령을 내린다(S610). 상기 브라우즈 동작 명령을 받은 컨텐츠 디바이스는 해당 컨텐츠의 경로 파일을 생성한다(S620). 상기 경로 파일의 내용은 상기 해당 컨텐츠의 명칭과 같다. 다음으로, 하위 컨텐츠가 존재하는지를 판단하여(S630), 하위 컨텐츠가 존재하면, 하위 컨텐츠 개수에 맞게 상기 해당 컨텐츠의 ID 파일을 생성하고(S640), 하위 컨텐츠가 존재하지 않으면 컨텐츠 ID 파일을 생성하지 않는다. 그리고, 모든 컨텐츠에 대하여 상기 과정을 반복한 후(S650), 상기 과정을 통하여 결정된 컨텐츠 디바이스의 파일 시스템을 본 발명에서 제안한 식별자를 이용하여 XML 문서로 나타내고 이를 상기 제어 기기에 응답으로 돌려 준다(S660).6 illustrates a process of generating a path file, an ID file, and an XML file of content according to a browse operation command of a control device. First, an index indicating sequentially an identifier is determined (S600). These indexes are a, b, c,... Or i, ii, iii,... Or α, β, γ,... It may be expressed in various ways, and may be determined by the user, or may be predefined according to the device environment. Next, the control device issues a browse operation command to know the file system of the content file in the content device (S610). The content device receiving the browse operation command generates a path file of the corresponding content (S620). The content of the path file is the same as the name of the corresponding content. Next, it is determined whether the lower content exists (S630), and if the lower content exists, the ID file of the corresponding content is generated according to the number of lower contents (S640), and if the lower content does not exist, the content ID file is not generated. Do not. After repeating the above process for all contents (S650), the file system of the content device determined through the above process is represented as an XML document using the identifier proposed in the present invention and returned to the control device as a response (S660). ).

도 7은 제어 기기의 삭제, 추가 또는 변경 동작 명령에 따라 컨텐츠의 경로 파일, ID 파일 및 XML 파일을 수정하는 과정을 나타낸 것이다. 먼저, 제어 기기에서 컨텐츠 디바이스에 식별자를 통하여 특정 파일에 대한 동작을 명령한다(S710). 다음으로 해당 식별자를 갖는 컨텐츠의 상위 컨텐츠들의 경로 파일들을 이용하여 해당 식별자를 갖는 컨텐츠의 완전 경로명(Full Path Name)을 구한다(S720). 상기 완전 경로명을 구하는 과정은 도 3d의 설명을 참조하면 될 것이다. 다음으로는 제어 기기의 동작 명령의 종류에 따라 삭제, 변경 또는 추가 동작으로 나누어 진다.7 illustrates a process of modifying a path file, an ID file, and an XML file of content according to a delete, add, or change operation command of a control device. First, the control device instructs the content device to operate a specific file through an identifier (S710). Next, a full path name of the content having the corresponding identifier is obtained using the path files of the upper contents of the content having the corresponding identifier (S720). The process of obtaining the full path name will be described with reference to FIG. 3D. Next, it is divided into delete, change or add operation according to the type of operation command of the control device.

먼저, 상기 삭제 동작 과정은 상기 완전 경로명에 해당하는 컨텐츠를 삭제하는 단계(S740)와 XML 파일에서 해당 컨텐츠 부분을 삭제하는 단계(S750)로 이루어질 수 있다. 또한, 상기 변경 동작 과정은 상기 완전 경로명에 해당하는 컨텐츠의 명칭을 변경하는 단계(S760)와 XML 파일에서 해당 컨텐츠의 명칭 부분을 변경하는 단계(S761)로 이루어질 수 있다.First, the deleting operation may include deleting the content corresponding to the full path name (S740) and deleting the corresponding content part from the XML file (S750). In addition, the changing operation may include changing the name of the content corresponding to the full path name (S760) and changing the name portion of the corresponding content in the XML file (S761).

한편, 상기 추가 동작 과정을 살펴 보면, 먼저 상기 완전 경로명에 해당하는 컨텐츠의 상위 컨텐츠의 ID 파일 내용을 검색하여(S750), 그 내용에 '0'이 존재하면 처음으로 나타나는 '0'을 '1'로 교체하고(S752), 그 내용에 '0'이 존재하지 않으면 마지막 오프셋 다음의 위치에 '1'을 추가한다(S753). 다음으로 해당 컨텐츠의 명칭을 내용으로 하고, 해당 컨텐츠의 식별자를 파일명으로, 'path'를 확장자로 하는 경로 파일을 생성한다(S754). 그리고, XML 파일에서 해당 컨텐츠 부분을 추가한다(S755).Meanwhile, referring to the additional operation process, first, the content of the ID file of the upper content of the content corresponding to the full path name is searched (S750), and if '0' exists in the content, the first '0' appears as '1'. If '0' does not exist in the content, '1' is added to the position after the last offset (S753). Next, a path file having a name of the corresponding content as a content, an identifier of the corresponding content as a file name, and a 'path' extension is generated (S754). Then, the corresponding content portion is added from the XML file (S755).

마지막으로 상기 삭제, 변경 또는 추가 동작 과정을 거친 후에 수정된 XML 파일을 응답으로서 제어 기기에 송신한다(S770).Finally, after the deletion, change, or addition operation is performed, the modified XML file is transmitted to the control device as a response (S770).

이상, 본 발명을 바람직한 실시예를 들어 상세하게 설명하였으나, 본 발명은 상기 실시예에 한정되지 않으며, 본 발명의 기술적 사상의 범위 내에서 당해 분야에서 통상의 지식을 가지는 자에 의하여 여러 가지 변형이 가능하다.In the above, the present invention has been described in detail with reference to preferred embodiments, but the present invention is not limited to the above embodiments, and various modifications may be made by those skilled in the art within the scope of the technical idea of the present invention. It is possible.

본 발명에 따르면, ID파일을 통하여 하위 컨텐츠의 식별자를 관리함으로써, 기존에 할당되었다 삭제된 식별자를 재사용할 수 있는 장점이 있다.According to the present invention, by managing the identifier of the lower content through the ID file, there is an advantage that can be reused identifiers that have been previously allocated and deleted.

또한 본 발명에 따르면, 경로 파일을 통해서 컨텐츠의 명칭에 관한 정보를 관리하고 있기 때문에, 파일 시스템 내부의 특정의 컨텐츠가 삭제, 추가되거나, 변경되더라도 해당 컨텐츠의 경로 파일 및 ID 파일의 변경을 통하여 컨텐츠의 관리가 동적으로 용이하게 이루어지므로 XML 문서에 존재하는 식별자를 변경할 필요가 없게 된다.In addition, according to the present invention, since information on the name of the content is managed through the path file, even if specific content in the file system is deleted, added, or changed, the content is changed through the path file and the ID file of the corresponding content. Management is dynamically done, so there is no need to change the identifiers in the XML document.

Claims (10)

제1 디바이스에 저장된 컨텐츠 파일을 컨텐츠와 동일시 할 수 있는 식별자를 이용하여 제2 디바이스에서 컨트롤하는 방법에 있어서,A method for controlling a content file stored in a first device in a second device using an identifier capable of identifying the content, the method comprising: 해당 컨텐츠 명을 내용으로 갖는 경로 파일을 생성하는 단계;Generating a path file having the content name as the content; 하위 컨텐츠의 개수에 따라 내용이 결정되는 상기 컨텐츠의 ID 파일을 생성하는 단계; 및Generating an ID file of the contents whose contents are determined according to the number of lower contents; And 컨트롤 하고자 하는 컨텐츠의 상위 컨텐츠들의 상기 경로 파일들을 이용하여 상기 컨트롤 하고자 하는 컨텐츠의 완전 경로명을 구하는 단계를 포함하는 것을 특징으로 하는 식별자를 이용하여 컨텐츠 파일을 컨트롤하는 방법.And obtaining a full path name of the content to be controlled by using the path files of the upper contents of the content to be controlled. 제1항에 있어서, 상기 구한 완전 경로명을 이용하여 상기 제2 디바이스에서 상기 컨트롤 하고자 하는 컨텐츠를 삭제하는 명령을 수행하는 단계를 더 포함하는 것을 특징으로 하는 식별자를 이용하여 컨텐츠 파일을 컨트롤하는 방법.The method of claim 1, further comprising: performing a command to delete the content to be controlled at the second device by using the obtained full path name. 제1항에 있어서, 상기 구한 완전 경로명을 이용하여 상기 제2 디바이스에서 상기 컨트롤 하고자 하는 컨텐츠의 명칭을 변경하는 명령을 수행하는 단계를 더 포함하는 것을 특징으로 하는 식별자를 이용하여 컨텐츠 파일을 컨트롤하는 방법.The method of claim 1, further comprising: performing a command for changing a name of the content to be controlled by the second device using the obtained full path name. Way. 제1항에 있어서, 상기 구한 완전 경로명을 이용하여 상기 제2 디바이스에서상기 컨트롤 하고자 하는 컨텐츠를 추가하는 명령을 수행하는 단계를 더 포함하되, 상기 추가하는 명령을 수행하는 단계는The method of claim 1, further comprising performing a command for adding the content to be controlled in the second device using the obtained full path name, wherein the performing of the adding command includes: 상기 추가하고자 하는 컨텐츠의 상위 컨텐츠의 ID 파일의 내용을 검색하는 단계;Retrieving the contents of the ID file of the upper contents of the contents to be added; 상기 ID 파일의 내용에 0이 존재하면 처음 나타나는 0을 1로 교체하고, 상기 ID 파일의 내용에 0이 존재하지 않으면 마지막 위치에 1을 추가하는 단계;Replacing 0 first with 0 when the contents of the ID file exist, and adding 1 at the last position when 0 does not exist in the contents of the ID file; 상기 추가하고자 하는 컨텐츠 명을 내용으로 갖는 경로 파일을 생성하는 단계를 포함하는 것을 특징으로 하는 식별자를 이용하여 컨텐츠 파일을 컨트롤하는 방법.And generating a path file having the content name to be added as the content. 제2항 내지 제4항 중 어느 한 항에 있어서, 상기 삭제하는 명령, 상기 명칭을 변경하는 명령 또는 상기 추가하는 명령을 수행한 이후에 상기 명령에 맞게 XML 파일에서 해당 부분을 수정하는 단계를 더 포함하는 것을 특징으로 하는 식별자를 이용하여 컨텐츠 파일을 컨트롤하는 방법.The method according to any one of claims 2 to 4, further comprising the step of modifying the corresponding part in the XML file for the command after performing the deleting, changing, or adding instructions. And controlling the content file using the identifier. 제1항 내지 제4항 중 어느 한 항에 있어서, 상기 해당 컨텐츠 명을 내용으로 갖는 경로 파일 명칭은 해당 식별자를 파일명으로 하고, 확장자를 'path'로 갖는 것을 특징으로 하는 식별자를 이용하여 컨텐츠 파일을 컨트롤하는 방법.5. The content file according to any one of claims 1 to 4, wherein the path file name having the corresponding content name as the content has the identifier as the file name and the extension as 'path'. How to control it. 제1항 내지 제4항 중 어느 한 항에 있어서, 상기 상기 컨텐츠의 ID 파일 명칭은 해당 식별자를 파일명으로 하고, 확장자를 'id'로 갖는 것을 특징으로 하는 식별자를 이용하여 컨텐츠 파일을 컨트롤하는 방법.The method according to any one of claims 1 to 4, wherein the ID file name of the content has a corresponding identifier as a file name and an extension as 'id'. . 제1항 내지 제4항 중 어느 한 항에 있어서, 상기 컨텐츠의 ID 파일의 내용은 하위 컨텐츠 개수 만큼 1을 갖는 이진수인 것을 특징으로 하는 식별자를 이용하여 컨텐츠 파일을 컨트롤하는 방법.The method according to any one of claims 1 to 4, wherein the contents of the ID file of the contents are a binary number having 1 as the number of lower contents. 제1항 내지 제4항 중 어느 한 항에 있어서, 상기 완전 경로명은 상기 컨트롤 하고자 하는 컨텐츠로부터 최상위 컨텐츠까지의 경로 파일들의 내용을 상위에서부터 순차적으로 배열하여 만드는 것을 특징으로 하는 식별자를 이용하여 컨텐츠 파일을 컨트롤하는 방법.The content file according to any one of claims 1 to 4, wherein the full path name is formed by sequentially arranging contents of the path files from the content to the highest content to the highest content. How to control it. 제1항 내지 제4항 중 어느 한 항에서의 방법을 컴퓨터상에서 판독 가능한 프로그램으로 기록한 기록매체.A recording medium on which a method according to any one of claims 1 to 4 is recorded by a program readable on a computer.
KR1020030046974A 2003-07-10 2003-07-10 Method for Controlling Content Files Using Identification KR20050006975A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020030046974A KR20050006975A (en) 2003-07-10 2003-07-10 Method for Controlling Content Files Using Identification

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020030046974A KR20050006975A (en) 2003-07-10 2003-07-10 Method for Controlling Content Files Using Identification

Publications (1)

Publication Number Publication Date
KR20050006975A true KR20050006975A (en) 2005-01-17

Family

ID=37220720

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020030046974A KR20050006975A (en) 2003-07-10 2003-07-10 Method for Controlling Content Files Using Identification

Country Status (1)

Country Link
KR (1) KR20050006975A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100843075B1 (en) * 2006-05-29 2008-07-03 삼성전자주식회사 Apparatus and method for managing data
KR100877063B1 (en) * 2006-05-29 2009-01-07 삼성전자주식회사 Apparatus and method for managing data
US7743088B2 (en) 2006-02-07 2010-06-22 Samsung Electronics Co., Ltd. Synchronization identifier generating method and apparatus for synchronizing digital contents
US8015308B2 (en) 2005-10-21 2011-09-06 Samsung Electronics Co., Ltd. Audio/video task calculation method, method of providing summary information for audio/video task calculation, and apparatus using the methods
WO2011126254A2 (en) * 2010-04-05 2011-10-13 주식회사 안철수연구소 Terminal device and method for confirming file distributor of same terminal device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8015308B2 (en) 2005-10-21 2011-09-06 Samsung Electronics Co., Ltd. Audio/video task calculation method, method of providing summary information for audio/video task calculation, and apparatus using the methods
US7743088B2 (en) 2006-02-07 2010-06-22 Samsung Electronics Co., Ltd. Synchronization identifier generating method and apparatus for synchronizing digital contents
KR100843075B1 (en) * 2006-05-29 2008-07-03 삼성전자주식회사 Apparatus and method for managing data
KR100877063B1 (en) * 2006-05-29 2009-01-07 삼성전자주식회사 Apparatus and method for managing data
WO2011126254A2 (en) * 2010-04-05 2011-10-13 주식회사 안철수연구소 Terminal device and method for confirming file distributor of same terminal device
WO2011126254A3 (en) * 2010-04-05 2012-01-26 주식회사 안철수연구소 Terminal device and method for confirming file distributor of same terminal device

Similar Documents

Publication Publication Date Title
RU2378685C2 (en) File management device, method of controlling said device, computer program and data carrier
KR100368570B1 (en) Data transmitting/receiving device and method
US8219559B2 (en) Information recording/reproducing apparatus, information recording/reproducing method, program storage medium, and program
JP5214969B2 (en) Information recording medium recording metadata supporting multi-language, and metadata processing method and system
US6697795B2 (en) Virtual file system for dynamically-generated web pages
KR101689782B1 (en) Method for accessing files of a file system according to metadata and device implementing the method
JP2002351878A (en) Digital contents reproduction device, data acquisition system, digital contents reproduction method, metadata management method, electronic watermark embedding method, program, and recording medium
CN101840719A (en) Reproduction apparatus and/or method for storage medium including metadata
US20050175317A1 (en) Method of converting file system format and apparatus thereof
US6714946B1 (en) Data management system using a plurality of data operating modules
JP2002514331A (en) Computer-implemented method for generating a virtual file for sharing information in a physical information file
US7051054B1 (en) Method and apparatus for emulating read/write file system on a write-once storage disk
JP2000348057A (en) Electronic book, recording medium stored with it, authoring method to its recording medium and information processor for processing recording medium stored with it
JP4626483B2 (en) Server apparatus, data processing method, program, and communication method
US7548927B2 (en) Abstracted metadata policy component and related architecture
US20080071795A1 (en) Information display apparatus and meta-information display method
KR101589333B1 (en) Techniques for managing persistent document collections
KR20050006975A (en) Method for Controlling Content Files Using Identification
KR20010019445A (en) Multimedia file managing method
US7761488B2 (en) File creation API
RU2383951C2 (en) Method and device for playing back optical disc
JP4378342B2 (en) Mechanism for applying transformations to multipart files
KR20060025100A (en) Information storage medium recording meta data supporting multi-language and manipulation method thereof
JP2004171311A (en) Data management device, data management method, recording medium, data management program, and computer-readable recording medium storing data management program
JP2005174063A (en) File management apparatus, dynamic name space generation method and dynamic name space generation program

Legal Events

Date Code Title Description
WITN Withdrawal due to no request for examination