WO2012171165A1 - Method for managing link relationship table and related device - Google Patents

Method for managing link relationship table and related device Download PDF

Info

Publication number
WO2012171165A1
WO2012171165A1 PCT/CN2011/075688 CN2011075688W WO2012171165A1 WO 2012171165 A1 WO2012171165 A1 WO 2012171165A1 CN 2011075688 W CN2011075688 W CN 2011075688W WO 2012171165 A1 WO2012171165 A1 WO 2012171165A1
Authority
WO
WIPO (PCT)
Prior art keywords
link relationship
link
relationship
file
theme file
Prior art date
Application number
PCT/CN2011/075688
Other languages
French (fr)
Chinese (zh)
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 CN2011800011458A priority Critical patent/CN102369527B/en
Priority to PCT/CN2011/075688 priority patent/WO2012171165A1/en
Publication of WO2012171165A1 publication Critical patent/WO2012171165A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/93Document management systems
    • G06F16/94Hypermedia

Definitions

  • the present invention relates to the field of information processing, and in particular, to a link relationship table management method and related devices.
  • the Darwin Information Typing Architecture is an open standard for the Organization for the Advancement of Structured Information Standards (OASIS). It defines an Extensible Markup Language (XML) architecture for designing, writing, publishing, and managing content. Content developed based on this standard can be easily released into portable file format (PDF, Portable Document Format), online help, Hypertext Markup Language (HTML), and other forms of data delivery. .
  • OASIS Structured Information Standards
  • Topic is an information unit in DITA, and each Topic must belong to one type of information.
  • DITA defines three basic types of information for the technical documentation—Concept, Task, and Reference.
  • the basic information type can be extended to a new information type through specialized technology.
  • DITA is an XML architecture for designing, writing, publishing, and managing content.
  • Topic and Outline are two basic types of XML files.
  • Topic is a basic, manageable writing and reuse unit with several features: A Topic consists of two parts, title and content; each Topic describes only one topic or answers a question; and each Topic can complete the topic. Or answer this question, it is a self-contained unit of information.
  • Map is an XML file type defined in DITA. It is used to describe the logical hierarchy and order relationship between Topic to form a data delivery. Through Map, you can connect a series of Topics together to output various forms of data delivery, such as manuals, online help, and so on.
  • DITA provides a variety of ways to generate links that generate rich links in electronic deliverables that make it easy for users to navigate and locate information. Among them, create a Link Relationship Table in the Map The main way is to define the link relationship between Topics.
  • the prior art manages the link relationship table in the form of a table, that is, supports the creation, editing, and deletion of the link relationship through the table. All of these operations on the interface are automatically synchronized to the underlying Map file, achieving the same effect as manually editing the source file.
  • the prior art when editing or deleting a Topic file, only the Topic file itself is processed, and the link relationship between the Topic file and other Topic files is not considered, for example, the Topic file is deleted: Link relationship The relationship associated with the Topic file in the table is not deleted synchronously, resulting in inconsistent information, which may lead to file system errors.
  • the embodiment of the present invention provides a link relationship table management method and related apparatus, which are used to synchronously update a link relationship related to the theme file in the link relationship table when the theme file is operated.
  • the method for managing a link relationship table includes: acquiring a theme file whose status changes in a link relationship table; searching for all link relationships related to the theme file in the link relationship table; changing according to a state of the theme file Update the link relationship and re-integrate the link relationship table.
  • the link relationship table management apparatus includes: an obtaining unit, configured to acquire a theme file whose status changes in the link relationship table; and a searching unit, configured to search for all links related to the theme file in the link relationship table a relationship unit, configured to update the link relationship according to a state change of the theme file, and re-integrate the link relationship table.
  • the embodiment of the present invention has the following advantages:
  • the link relationship table management apparatus in the embodiment of the present invention can detect the theme file, and find and search in the link relationship table. Update all the link relationships related to the theme file to conveniently manage the synchronization of the link relationship table.
  • FIG. 1 is a schematic flow chart of a method for managing a link relationship table in the present invention
  • FIG. 2 is another schematic flowchart of a method for managing a link relationship table in the present invention
  • FIG. 3 is a schematic diagram of a topic link relationship in a link relationship table management method according to the present invention.
  • Fig. 4 is a structural diagram of a link relationship table management apparatus in the present invention.
  • the embodiment of the present invention provides a link relationship table management method and related apparatus, which are used to synchronously update a link relationship related to the theme file in the link relationship table when the theme file is operated.
  • an embodiment of a method for managing a link relationship table in an embodiment of the present invention includes:
  • the link relationship table management device acquires a theme file whose status changes in the link relationship table.
  • the link relationship table management apparatus in the embodiment of the present invention detects the status of each topic file in the link relationship table in real time, and if the status of the topic file changes in the link relationship table (for example, the theme file is edited, or the theme file is deleted) Then, the link relationship table management can be immediately known, and the related information of the theme file whose status has changed is obtained, and subsequent processing is performed.
  • the link relation table management means finds all the link relationships in the link relationship table related to the theme file whose status has changed.
  • the file header of the theme file traverses all the link relationships in the link relationship table to find all the link relationships related to the theme file (including: using the theme file as the source theme) The link relationship of the file, the link relationship of the theme file for the purpose of the theme file).
  • the link relationship table management means updates the link relationship related to the topic according to the state change of the theme file, and re-integrates the link relationship table.
  • the user can perform operations such as creating, editing, and deleting the theme files in the outline.
  • the link relationship table management device automatically automatically creates a new theme file and other theme files.
  • the link relationship is added to the link relationship table to complete the update of the link relationship table.
  • the theme file is edited, if the file header of the edited theme file is changed, the above step 102 is updated according to the change of the file header.
  • the link relationship table management apparatus in the embodiment of the present invention can detect the theme file, find and update all the link relationships related to the theme file in the link relationship table, and conveniently implement the link. Synchronous management of relational tables.
  • the present invention also provides a link relationship table integration method which is closer to the actual application.
  • the link relationship table management in the embodiment of the present invention is provided. Another embodiment of the method includes:
  • step 201 in this embodiment is the same as that of step 101 in the foregoing embodiment shown in FIG. 1, and details are not described herein again.
  • step 202 in this embodiment is the same as that of the step 102 in the foregoing embodiment shown in FIG. 1, and details are not described herein again.
  • the link relationship table management device acquires state change information generated by the theme file, and if the state changes to edit, determines whether the edited theme file has changed the file header, and if so, updates the above step 102 by using the file header of the theme file after editing.
  • the related link relationship found, if not, does not update the link relationship; if the state change is deleted, all related link relationships found in step 102 above are deleted.
  • the foregoing method for updating the link relationship according to the state change is only an example. It can be understood that there are other state change situations and operations related to updating the link relationship in the actual application, which is not limited herein.
  • the link relationship table management device deletes the integrated link relationship in the original link relationship table.
  • the link relationship table stores the top-level link relationship and the sub-layer link relationship respectively, and the top-level link relationship is divided into a top-level custom link relationship and an integrated link relationship;
  • the sub-layer link relationship is a user-defined link relationship,
  • the change of the sub-layer link relationship requires the user to perform an active operation (such as modification or deletion), and the integrated link relationship of the top-level link relationship is automatically integrated by the link relationship table management device according to each sub-layer link relationship;
  • the link relationship table management device can automatically delete the integrated link relationship in the original link relationship table, according to the change.
  • Sub-layer link relationships are re-integrated to get a new top-level link relationship.
  • the top-level link relationship is the link relationship of the top-level outline (map), which contains the link relationship between all related topic files, which can facilitate the user to grasp the link between the theme files as a whole;
  • the sub-layer link relationship is further divided into a topic link relationship and a map link relationship, where the topic link relationship is a link relationship between each user-defined topic, and the map link relationship is between user-defined sub-layer maps within the theme file.
  • Link relationship is that the present invention provides a convenient function module for the user, and each theme file is associated with a relationship set. After the user creates a theme file and edits the theme file, the theme file can be set at the same time.
  • the link relationship between other theme files enables the link relationship table management device to automatically integrate the topic link relationship into the link relationship table when integrating the link relationship table, and quickly and conveniently complete the management of the link relationship table without requiring the user to Time-consuming re-traversal of individual theme files.
  • the user can also define the link relationship between the topic files in each sub-layer map when the link relationship table is organized, so that the management of the link relationship table is more humanized.
  • the link relationship table management device acquires all sub-layer link relationships (including the topic link relationship and the map link relationship), and de-duplicates the sub-layer link relationship.
  • the link relationship between the two topic files may be repeatedly defined.
  • the link relationship table management device will link the sub-layer link. Perform deduplication processing.
  • the link relationship table management device integrates the sub-layer link relationship after the de-reprocessing process into an integrated link relationship, and determines whether the source theme file and the target theme file in the sub-layer link relationship are in the same map, and if so, the source The link relationship formed by the theme file and the destination theme file is marked as an internal relationship, and if not, the link relationship formed by the source theme file and the destination theme file is marked as an external relationship.
  • the top-level link relationship includes a top-level custom link relationship and an integrated link relationship. The integrated link relationship is obtained by automatically integrating the user-defined sub-layer link relationship by the link relationship table management device, and the top-level custom link relationship is a link relationship in the top-level map defined by the user.
  • the link relationship table management device obtains a top-level custom link relationship.
  • the link relationship table management merges the above-mentioned top-level custom link relationship and the integrated link relationship, and generates a DITA standard format link relationship table according to the merged top-level custom link relationship and the integrated link relationship, and exports the file in an XML file.
  • the embodiment of the present invention is more close to the actual application situation, and provides the user with a function module of the topic link relationship, and associates each theme file from the content point of view when designing the theme file, so that when planning or re-integrating the link relationship table, The user's operation is more convenient.
  • Sub-level outline 1 - theme file 2 sub-layer outline 1 - theme file 3
  • the link relationship table management device searches all the link relationships related to the theme file whose status has changed in the original link relationship table.
  • the theme files linked to subMapl-topic2 are: sub-layer outline 1_subject file 1 (subMapl_topicl) and sub-layer outline 1_subject file 3 (subMa l _topic3 ), then the above related link relationship is: "src: subMap 1 _topic2— dest: subMa l _topic3” and "src: subMapl— topic 1—dest: subMapl— topic2,,.
  • the link relationship table management device deletes the link relationship src: subMap 1 Jopic2_dest: subMa l_topic3" and "src: subMapl_ topic 1_dest: subMa l_topic2".
  • the link relationship table management device After deleting the above related link relationship, the link relationship table management device starts to re-integrate the link relationship table:
  • sub-layer link relationships including: custom link relationship of theme file 2.1, sub-layer outline 1 - custom link relationship of theme file 1 and map link relationship, custom link relationship within sub-layer map is also child
  • the layer link relationship but has been deleted when the link relationship is updated, and the sub-layer link relationship is de-duplicated (the sub-layer link relationship in the embodiment of the present invention is not repeated);
  • Source node destination node type theme file 2.1 Theme file 1.1.2 Internal relationship theme file 2.1 Theme file 2 Internal relationship theme file 2.1 Theme file 2 Internal relationship Theme file 2.1 External relationship sub-layer outline 1 - Topic file 1 External - Topic file 1 External relationship
  • the link relationship table management device searches whether there is a top-level custom link relationship in the link relationship table (the top-level custom link relationship is not set in the embodiment of the present invention), and if not, directly uses the integrated link relationship as a link in the DITA standard format. Relational table output (as shown in the table above for integrated link relationships).
  • the obtained integration relationship is as follows:
  • One embodiment of the link relationship table management apparatus in the embodiment of the present invention includes:
  • the obtaining unit 401 is configured to obtain a theme file whose status changes in the link relationship table, and the searching unit 402 is configured to search for all the link relationships related to the foregoing topic file in the link relationship table;
  • the integration unit 403 is configured to update the link relationship according to the state change of the foregoing topic file, and re-integrate the link relationship table.
  • the integration unit 403 in the embodiment of the present invention includes:
  • the relationship update module 4031 is configured to: if the state change of the theme file is edited, determine whether the editing process changes the file header of the theme file, and if yes, update the chain by using the edited file header The connection relationship, if not, does not update the link relationship; if the state of the theme file changes to delete, delete all link relationships related to the theme file;
  • the relationship integration module 4032 is configured to delete the integrated link relationship; obtain the sub-layer link relationship, and perform de-duplication processing on the sub-layer link relationship; copy the de-reprocessed sub-layer link relationship into the link relationship table, and derive the link relationship table.
  • each unit in the link relationship table management apparatus in the embodiment of the present invention is as follows: When detecting the change of the status of the topic file in the link relationship table, the obtaining unit 401 acquires the topic file whose status changes in the link relationship table. .
  • the link relationship table management apparatus in the embodiment of the present invention detects the status of each topic file in the link relationship table in real time, and if the status of the topic file changes in the link relationship table (for example, the theme file is edited, or the theme file is deleted) Then, the link relationship table management can be immediately known, and the related information of the theme file whose status has changed is obtained, and subsequent processing is performed.
  • the searching unit 402 searches for all the link relationships related to the theme file whose status changes in the link relationship table (including: the link relationship with the theme file as the source theme file, with the theme The link relationship of the theme file for the purpose of the file).
  • the relationship update module 4031 of the integration unit 403 acquires the state change information generated by the theme file, and if the state changes to edit, determines whether the edited theme file changes the file header, and if so, uses After editing, the file header of the theme file updates the related link relationship found in the above step 102. If not, the link relationship is not updated; if the state change is deleted, all the related link relationships found in the above step 102 are deleted.
  • the foregoing method for updating the link relationship according to the state change is only an example. It can be understood that there are other state changes in the actual application and the operation of updating the link relationship, which is not limited herein.
  • the relationship integration module 4032 first deletes the original integrated link relationship in the link relationship table; then, acquires all the sub-layer link relationships (including the topic link relationship and the map link relationship), and The sub-layer link relationship is de-reprocessed; optionally, in the process of integrating the link relationship table, it is possible to choose to integrate only the topic link relationship, or only the topic link relationship and the first-level sub-layer map. In practical applications, this process can be set to an optional form for the user to select. The user selects a suitable integration project according to the needs of his own editing, which is convenient for intuitive operation; again, the sub-layer link after de-reprocessing is completed.
  • the top-level link relationship includes a top-level custom link relationship and an integrated link relationship.
  • the integrated link relationship is obtained by automatically integrating the user-defined sub-layer link relationship by the link relationship table management device, and the top-level custom link relationship is a link relationship in the top-level map defined by the user; finally, obtaining a top-level custom link relationship,
  • the top-level custom link relationship and the integrated link relationship are merged, and the DITA standard format link relationship table is generated according to the merged top-level custom link relationship and the integrated link relationship, and is exported as an XML file.
  • the disclosed apparatus and method can be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in the form of electrical, mechanical or other.
  • the units described as separate components may or may not be physically separate, and the components displayed as the units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. , including a number of instructions to make a computer device (which can be a personal computer, a server, Or a network device or the like) performing all or part of the steps of the method of the various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Document Processing Apparatus (AREA)

Abstract

A method for managing a link relationship table and a related device are disclosed by the present invention. The method includes: obtaining a state changed topic file from the link relationship table; looking up all the link relationships associated with the topic file from the link relationship table; updating the link relationships according to the state changes of the topic file, and re-integrating the link relationship table.

Description

一种链接关系表管理方法以 目关装置 技术领域  A link relationship table management method to control devices
本发明涉及信息处理领域,尤其涉及一种链接关系表管理方法以及相关装 置。  The present invention relates to the field of information processing, and in particular, to a link relationship table management method and related devices.
背景技术 Background technique
达尔文信息分类体系架构 ( DITA, Darwin Information Typing Architecture ) 是结构化信息标准促进组织 ( OASIS, Organization for the Advancement of Structured Information Standards )的一种开放标准。 它定义了一种用于设计、 写作、出版和管理内容的可扩展标记语言( XML , Extensible Markup Language ) 架构。基于该标准开发的内容能够容易地按照用户的需要发布为便携文件格式 ( PDF, Portable Document Format ) 、 联机帮助、 超文本标记语言 (HTML, Hyper Text Mark-up Language )和其他形式的资料交付件。  The Darwin Information Typing Architecture (DITA) is an open standard for the Organization for the Advancement of Structured Information Standards (OASIS). It defines an Extensible Markup Language (XML) architecture for designing, writing, publishing, and managing content. Content developed based on this standard can be easily released into portable file format (PDF, Portable Document Format), online help, Hypertext Markup Language (HTML), and other forms of data delivery. .
达尔文(Darwin ) : DITA采用了类似达尔文进化论中的继承和变异(专 门 4匕) 的概念。  Darwin: DITA adopts the concept of inheritance and variation (special 4匕) similar to Darwin's theory of evolution.
信息类型 ( Information Typing ) : 主题(Topic )是 DITA中的一种信息单 元, 每个 Topic都必须属于一种信息类型。 DITA为技术文档定义了三种基本的 信息类型——概念(Concept ) 、 任务(Task )和参考 (Reference ) 。 通过专 门化技术可扩展基本的信息类型为新的信息类型。  Information Typing: Topic is an information unit in DITA, and each Topic must belong to one type of information. DITA defines three basic types of information for the technical documentation—Concept, Task, and Reference. The basic information type can be extended to a new information type through specialized technology.
DITA是一种用于设计、 写作、 出版和管理内容的 XML架构, 在 DITA架构 下, Topic和大纲 (Map )是两种基本的 XML文件类型。 Topic是基本的、 可管 理的写作和重用单元, 具有几个特点: 一个 Topic包含标题和内容两个部分; 每个 Topic只描述一个题目或者回答一个问题; 并且, 每个 Topic能完成表述这 个题目或者回答这个问题, 是一个自我包含的信息单元。 Map是 DITA中定义 的一种 XML文件类型, 它用来描述 Topic之间的逻辑层级和顺序关系, 形成资 料交付件。 通过 Map, 可以把一个个的 Topic串接起来, 用于输出各种形式的 资料交付件, 如手册、 联机帮助等。  DITA is an XML architecture for designing, writing, publishing, and managing content. Under the DITA architecture, Topic and Outline are two basic types of XML files. Topic is a basic, manageable writing and reuse unit with several features: A Topic consists of two parts, title and content; each Topic describes only one topic or answers a question; and each Topic can complete the topic. Or answer this question, it is a self-contained unit of information. Map is an XML file type defined in DITA. It is used to describe the logical hierarchy and order relationship between Topic to form a data delivery. Through Map, you can connect a series of Topics together to output various forms of data delivery, such as manuals, online help, and so on.
DITA提供了多种生成链接的方法,能够在电子交付件中生成丰富的链接, 方便用户导航和定位信息。其中,在 Map中创建链接关系表( Relationship Table ) 是主要的方式, 它定义了 Topic之间的链接关系。 DITA provides a variety of ways to generate links that generate rich links in electronic deliverables that make it easy for users to navigate and locate information. Among them, create a Link Relationship Table in the Map The main way is to define the link relationship between Topics.
现有技术以表格的形式来管理链接关系表,即通过表格支持对链接关系的 新建、 编辑、 删除等操作。 在界面上的所有这些操作都会自动同步到底层的 Map文件中, 达到和手工编辑源文件一样的效果。 但是, 现有技术在对 Topic 文件进行编辑或删除等操作时, 仅对该 Topic文件本身进行了处理, 而未考虑 到该 Topic文件与其它 Topic文件的链接关系,如删除了 Topic文件: 链接关系表 中与该 Topic文件关联的关系没有被同步删除, 造成信息不一致, 容易导致文 件系统出错。  The prior art manages the link relationship table in the form of a table, that is, supports the creation, editing, and deletion of the link relationship through the table. All of these operations on the interface are automatically synchronized to the underlying Map file, achieving the same effect as manually editing the source file. However, in the prior art, when editing or deleting a Topic file, only the Topic file itself is processed, and the link relationship between the Topic file and other Topic files is not considered, for example, the Topic file is deleted: Link relationship The relationship associated with the Topic file in the table is not deleted synchronously, resulting in inconsistent information, which may lead to file system errors.
发明内容 Summary of the invention
本发明实施例提供了一种链接关系表管理方法以及相关装置,用于在对主 题文件进行操作时, 同步更新链接关系表中与该主题文件相关的链接关系。  The embodiment of the present invention provides a link relationship table management method and related apparatus, which are used to synchronously update a link relationship related to the theme file in the link relationship table when the theme file is operated.
本发明提供的链接关系表管理方法, 包括: 获取链接关系表中状态发生变 化的主题文件; 查找所述链接关系表中所有与所述主题文件相关的链接关系; 根据所述主题文件的状态变化更新所述链接关系, 并重新整合所述链接关系 表。  The method for managing a link relationship table provided by the present invention includes: acquiring a theme file whose status changes in a link relationship table; searching for all link relationships related to the theme file in the link relationship table; changing according to a state of the theme file Update the link relationship and re-integrate the link relationship table.
本发明提供的链接关系表管理装置, 包括: 获取单元, 用于获取链接关系 表中状态发生变化的主题文件; 查找单元, 用于查找所述链接关系表中所有与 所述主题文件相关的链接关系; 整合单元, 用于根据所述主题文件的状态变化 更新所述链接关系, 并重新整合所述链接关系表。  The link relationship table management apparatus provided by the present invention includes: an obtaining unit, configured to acquire a theme file whose status changes in the link relationship table; and a searching unit, configured to search for all links related to the theme file in the link relationship table a relationship unit, configured to update the link relationship according to a state change of the theme file, and re-integrate the link relationship table.
从以上技术方案可以看出, 本发明实施例具有以下优点: 在主题文件的状 态发生变化时, 本发明实施例中的链接关系表管理装置可以检测到该主题文 件,在链接关系表中查找并更新所有与该主题文件相关的链接关系,便捷地实 现对链接关系表的同步管理。  As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages: When the status of the theme file changes, the link relationship table management apparatus in the embodiment of the present invention can detect the theme file, and find and search in the link relationship table. Update all the link relationships related to the theme file to conveniently manage the synchronization of the link relationship table.
附图说明 DRAWINGS
图 1为本发明中链接关系表管理方法的一个流程示意图;  1 is a schematic flow chart of a method for managing a link relationship table in the present invention;
图 2为本发明中链接关系表管理方法的另一个流程示意图;  2 is another schematic flowchart of a method for managing a link relationship table in the present invention;
图 3为本发明链接关系表管理方法中主题链接关系的示意图;  3 is a schematic diagram of a topic link relationship in a link relationship table management method according to the present invention;
图 4为本发明中链接关系表管理装置的一个结构图。  Fig. 4 is a structural diagram of a link relationship table management apparatus in the present invention.
具体实施方式 本发明实施例提供了一种链接关系表管理方法以及相关装置,用于在对主 题文件进行操作时, 同步更新链接关系表中与该主题文件相关的链接关系。 detailed description The embodiment of the present invention provides a link relationship table management method and related apparatus, which are used to synchronously update a link relationship related to the theme file in the link relationship table when the theme file is operated.
请参阅图 1 , 本发明实施例中链接关系表管理方法的一个实施例包括: Referring to FIG. 1, an embodiment of a method for managing a link relationship table in an embodiment of the present invention includes:
101、 获取状态发生变化的主题文件; 101. Obtain a theme file whose status changes;
链接关系表管理装置获取链接关系表中状态发生变化的主题文件。  The link relationship table management device acquires a theme file whose status changes in the link relationship table.
本发明实施例中的链接关系表管理装置实时的检测链接关系表中各个主 题文件的状态, 若链接关系表中有主题文件的状态发生变化(如: 主题文件被 编辑, 或主题文件被删除), 则链接关系表管理可以马上获知, 并获取该状态 发生变化的主题文件的相关信息, 进行后续处理。  The link relationship table management apparatus in the embodiment of the present invention detects the status of each topic file in the link relationship table in real time, and if the status of the topic file changes in the link relationship table (for example, the theme file is edited, or the theme file is deleted) Then, the link relationship table management can be immediately known, and the related information of the theme file whose status has changed is obtained, and subsequent processing is performed.
102、 查找相关的链接关系;  102. Find related link relationships;
链接关系表管理装置查找链接关系表中所有与该状态发生变化的主题文 件相关的链接关系。  The link relation table management means finds all the link relationships in the link relationship table related to the theme file whose status has changed.
在获取到该状态发生变化的主题文件后 ,根据该主题文件的文件头遍历链 接关系表中所有的链接关系,查找到所有与该主题文件相关的链接关系(包括: 以该主题文件为源主题文件的链接关系,以该主题文件为目的主题文件的链接 关系)。  After obtaining the theme file whose status changes, the file header of the theme file traverses all the link relationships in the link relationship table to find all the link relationships related to the theme file (including: using the theme file as the source theme) The link relationship of the file, the link relationship of the theme file for the purpose of the theme file).
103、 根据状态变化更新链接关系表。  103. Update the link relationship table according to the state change.
链接关系表管理装置根据该主题文件的状态变化更新与该主题相关的链 接关系, 并重新整合链接关系表。  The link relationship table management means updates the link relationship related to the topic according to the state change of the theme file, and re-integrates the link relationship table.
在本发明实施例中, 用户可以对大纲中的主题文件进行新建、编辑和删除 等操作。 当新建主题文件时, 用户可以设置新建的主题文件与其他主题文件之 间的链接关系,再重新整合链接关系表时,链接关系表管理装置会自动将新建 的主题文件与其他主题文件之间的链接关系添加到该链接关系表中,完成链接 关系表的更新; 当编辑主题文件时, 若被编辑的主题文件的文件头发生改变, 则根据该文件头发生的变化更新上述步骤 102所查找到的相关链接关系,并根 据更新后的链接关系重新整合链接关系表; 当删除主题文件时, 同步删除上述 步骤 102所查找到的相关链接关系, 并重新整合链接关系表。  In the embodiment of the present invention, the user can perform operations such as creating, editing, and deleting the theme files in the outline. When creating a new theme file, the user can set a link relationship between the newly created theme file and other theme files, and then re-integrate the link relationship table, the link relationship table management device automatically automatically creates a new theme file and other theme files. The link relationship is added to the link relationship table to complete the update of the link relationship table. When the theme file is edited, if the file header of the edited theme file is changed, the above step 102 is updated according to the change of the file header. Related link relationships, and re-integration of the link relationship table according to the updated link relationship; when deleting the topic file, synchronously delete the relevant link relationship found in step 102 above, and re-integrate the link relationship table.
上述根据状态变化更新链接关系的方法仅是一些举例,可以理解的是,在 实际应用中还有其它的状态变化情况以及相关更新链接关系的操作,具体此处 不作限定。 The above method for updating the link relationship according to the state change is only an example. It can be understood that there are other state change situations and related update link relationship operations in the actual application, specifically here. Not limited.
在主题文件的状态发生变化时,本发明实施例中的链接关系表管理装置可 以检测到该主题文件,在链接关系表中查找并更新所有与该主题文件相关的链 接关系, 便捷地实现对链接关系表的同步管理。  When the status of the theme file is changed, the link relationship table management apparatus in the embodiment of the present invention can detect the theme file, find and update all the link relationships related to the theme file in the link relationship table, and conveniently implement the link. Synchronous management of relational tables.
除了上述同步更新状态发生变化的主题文件的相关链接关系之夕卜,本发明 还提供了一种更贴近实际应用的链接关系表整合方法, 请参阅图 2, 本发明实 施例中链接关系表管理方法的另一个实施例包括:  In addition to the related link relationship of the theme file whose status of the synchronization update is changed, the present invention also provides a link relationship table integration method which is closer to the actual application. Referring to FIG. 2, the link relationship table management in the embodiment of the present invention is provided. Another embodiment of the method includes:
201、 获取状态发生变化的主题文件;  201. Acquire a theme file whose status changes;
本实施例中的步骤 201的内容与前述图 1所示的实施例中步骤 101的内容 相同, 此处不再赘述。  The content of step 201 in this embodiment is the same as that of step 101 in the foregoing embodiment shown in FIG. 1, and details are not described herein again.
202、 查找相关的链接关系;  202. Find related link relationships;
本实施例中的步骤 202的内容与前述图 1所示的实施例中步骤 102的内容 相同, 此处不再赘述。  The content of the step 202 in this embodiment is the same as that of the step 102 in the foregoing embodiment shown in FIG. 1, and details are not described herein again.
203、 根据状态变化更新链接关系;  203. Update a link relationship according to a state change.
链接关系表管理装置获取上述主题文件所发生的状态变化信息,若状态变 化为编辑, 判断被编辑的主题文件是否改变了文件头, 若是, 则使用编辑后该 主题文件的文件头更新上述步骤 102所查找到的相关链接关系, 若否, 则不更 新该链接关系; 若状态变化为删除,删除所有上述步骤 102所查找到的相关链 接关系。上述根据状态变化更新链接关系的方法仅是一些举例,可以理解的是, 在实际应用中还有其它的状态变化情况以及相关更新链接关系的操作,具体此 处不作限定。  The link relationship table management device acquires state change information generated by the theme file, and if the state changes to edit, determines whether the edited theme file has changed the file header, and if so, updates the above step 102 by using the file header of the theme file after editing. The related link relationship found, if not, does not update the link relationship; if the state change is deleted, all related link relationships found in step 102 above are deleted. The foregoing method for updating the link relationship according to the state change is only an example. It can be understood that there are other state change situations and operations related to updating the link relationship in the actual application, which is not limited herein.
204、 删除整合链接关系;  204. Delete an integrated link relationship;
链接关系表管理装置删除原有链接关系表中的整合链接关系。  The link relationship table management device deletes the integrated link relationship in the original link relationship table.
在本发明实施例中,链接关系表分别存储了顶层链接关系以及子层链接关 系,顶层链接关系中分为顶层自定义链接关系和整合链接关系; 子层链接关系 为用户自定义的链接关系, 该子层链接关系的变更需要用户进行主动的操作 (如修改或删除), 而顶层链接关系的整合链接关系则由是链接关系表管理装 置根据各个子层链接关系自动整合而成; 当该子层链接关系发生改变时,链接 关系表管理装置可以自动的删除原有链接关系表中的整合链接关系,根据变更 后的子层链接关系重新整合得到新的顶层链接关系。 In the embodiment of the present invention, the link relationship table stores the top-level link relationship and the sub-layer link relationship respectively, and the top-level link relationship is divided into a top-level custom link relationship and an integrated link relationship; the sub-layer link relationship is a user-defined link relationship, The change of the sub-layer link relationship requires the user to perform an active operation (such as modification or deletion), and the integrated link relationship of the top-level link relationship is automatically integrated by the link relationship table management device according to each sub-layer link relationship; When the layer link relationship is changed, the link relationship table management device can automatically delete the integrated link relationship in the original link relationship table, according to the change. Sub-layer link relationships are re-integrated to get a new top-level link relationship.
顶层链接关系即为顶层大纲( map )的链接关系, 该顶层链接关系中包含 了所有相关的主题文件之间的链接关系,可以便于用户从总体上把握主题文件 之间的链接情况;  The top-level link relationship is the link relationship of the top-level outline (map), which contains the link relationship between all related topic files, which can facilitate the user to grasp the link between the theme files as a whole;
子层链接关系还分为主题链接关系和 map链接关系, 该主题链接关系为 用户自定义的各个主题之间的链接关系, 该 map链接关系为用户自定义的各 个子层 map 内主题文件之间的链接关系。 主题链接关系是本发明为用户提供 便捷功能模块,每个主题文件中都附属有一个关系集合, 用户自创建一个主题 文件后,对该主题文件进行编辑时, 即可同时设定该主题文件与其它主题文件 之间的链接关系,使得链接关系表管理装置在整合链接关系表时, 可以自动的 将该主题链接关系整合入链接关系表中, 快速便捷的完成链接关系表的管理, 无需用户再费时地重新遍历各个主题文件。用户除了可以自行定义各个主题文 件之间的链接关系外, 还可以在整理链接关系表时, 自行定义各个子层 map 内主题文件之间的链接关系, 使得链接关系表的管理更加人性化。  The sub-layer link relationship is further divided into a topic link relationship and a map link relationship, where the topic link relationship is a link relationship between each user-defined topic, and the map link relationship is between user-defined sub-layer maps within the theme file. Link relationship. The theme link relationship is that the present invention provides a convenient function module for the user, and each theme file is associated with a relationship set. After the user creates a theme file and edits the theme file, the theme file can be set at the same time. The link relationship between other theme files enables the link relationship table management device to automatically integrate the topic link relationship into the link relationship table when integrating the link relationship table, and quickly and conveniently complete the management of the link relationship table without requiring the user to Time-consuming re-traversal of individual theme files. In addition to the user's own definition of the link relationship between the various topic files, the user can also define the link relationship between the topic files in each sub-layer map when the link relationship table is organized, so that the management of the link relationship table is more humanized.
205、 对子层链接关系进行去重处理;  205. Perform deduplication processing on the sub-layer link relationship.
链接关系表管理装置获取所有的子层链接关系(包括主题链接关系和 map 链接关系), 并对该子层链接关系进行去重处理。  The link relationship table management device acquires all sub-layer link relationships (including the topic link relationship and the map link relationship), and de-duplicates the sub-layer link relationship.
在用户对链接关系进行定义的过程中 ,可能会对两个主题文件之间的链接 关系进行重复的定义, 为了避免在进行链接关系表整合时出错,链接关系表管 理装置会对子层链接关系进行去重处理。  In the process of defining the link relationship by the user, the link relationship between the two topic files may be repeatedly defined. In order to avoid an error in the integration of the link relationship table, the link relationship table management device will link the sub-layer link. Perform deduplication processing.
可选的,在进行链接关系表整合的过程中, 可以选择只对主题链接关系进 行整合, 或只对主题链接关系以及第一层的子层 map进行整合, 在实际应用 中可以将这个过程设置成可选项的形式供用户进行选择,用户根据自身编辑的 需要选择合适的整合项目, 便于直观的进行操作。  Optionally, in the process of integrating the link relation table, you can choose to integrate only the topic link relationship, or only the topic link relationship and the first layer of the sub-layer map. In actual applications, this process can be set. In the form of optional options for the user to select, the user selects the appropriate integration project according to the needs of his own editing, which is convenient for intuitive operation.
206、 生成整合链接关系;  206. Generate an integrated link relationship;
链接关系表管理装置将完成去重处理后的子层链接关系整合成整合链接 关系,并判断该子层链接关系中源主题文件和目的主题文件是否在同一个 map 内,若是,则将该源主题文件和目的主题文件所构成的链接关系标记为内关系, 若否, 则将该源主题文件和目的主题文件所构成的链接关系标记为外关系。 在本发明实施例中,顶层链接关系包括有顶层自定义链接关系和整合链接 关系。该整合链接关系为链接关系表管理装置自动对用户定义的子层链接关系 进行整合得到的, 顶层自定义链接关系为用户自行定义的顶层 map 内的链接 关系。 The link relationship table management device integrates the sub-layer link relationship after the de-reprocessing process into an integrated link relationship, and determines whether the source theme file and the target theme file in the sub-layer link relationship are in the same map, and if so, the source The link relationship formed by the theme file and the destination theme file is marked as an internal relationship, and if not, the link relationship formed by the source theme file and the destination theme file is marked as an external relationship. In the embodiment of the present invention, the top-level link relationship includes a top-level custom link relationship and an integrated link relationship. The integrated link relationship is obtained by automatically integrating the user-defined sub-layer link relationship by the link relationship table management device, and the top-level custom link relationship is a link relationship in the top-level map defined by the user.
207、 获取顶层自定义链接关系;  207. Obtain a top-level custom link relationship.
链接关系表管理装置获取顶层自定义链接关系。  The link relationship table management device obtains a top-level custom link relationship.
208、 获得新的链接关系表。  208. Obtain a new link relationship table.
链接关系表管理合并上述得到的顶层自定义链接关系以及整合链接关系 , 根据合并后的顶层自定义链接关系以及整合链接关系生成 DITA标准格式的链 接关系表, 并以 XML文件导出。  The link relationship table management merges the above-mentioned top-level custom link relationship and the integrated link relationship, and generates a DITA standard format link relationship table according to the merged top-level custom link relationship and the integrated link relationship, and exports the file in an XML file.
本发明实施例更加的贴近实际应用情况,为用户提供了主题链接关系的功 能模块,在设计主题文件时从内容的角度上关联各个主题文件,使得在进行链 接关系表的规划或重新整合时, 用户的操作更加的便捷。  The embodiment of the present invention is more close to the actual application situation, and provides the user with a function module of the topic link relationship, and associates each theme file from the content point of view when designing the theme file, so that when planning or re-integrating the link relationship table, The user's operation is more convenient.
为了便于理解,下面以一具体应用场景对上述的实施例中描述的链接关系 表管理进行描述, 请参阅图 3 , 具体为:  For ease of understanding, the link relationship table management described in the foregoing embodiment is described in a specific application scenario. Referring to FIG. 3, specifically:
用户自定义的链接关系如图 3所示,主题文件 2.1的自定义链接关系如下:  User-defined link relationships are shown in Figure 3. The custom link relationships for topic file 2.1 are as follows:
Figure imgf000007_0001
子层 map内的自定义链接关系如下: 源节点 目的节点
Figure imgf000007_0001
The custom link relationships within the sublayer map are as follows: Source node destination node
子层大纲 1—主题文件 2 子层大纲 1—主题文件 3  Sub-level outline 1 - theme file 2 sub-layer outline 1 - theme file 3
假设用户在进行操作时,删除了子层大纲 1_主题文件 2( subMapl_topic2 ), 则链接关系表管理装置就会在原有的链接关系表中查找所有与该状态发生变 化的主题文件相关的链接关系, 与 subMapl— topic2有链接关系的主题文件有: 子层大纲 1_主题文件 1 ( subMapl_topicl ) 和子层大纲 1_主题文件 3 ( subMa l _topic3 ), 则上述相关的链接关系为: "src: subMap 1 _topic2— dest: subMa l _topic3" 以及 "src: subMapl— topic 1— dest: subMapl— topic2,,。  Assuming that the user deletes the sub-layer outline 1_subject file 2 (subMapl_topic2) while performing the operation, the link relationship table management device searches all the link relationships related to the theme file whose status has changed in the original link relationship table. The theme files linked to subMapl-topic2 are: sub-layer outline 1_subject file 1 (subMapl_topicl) and sub-layer outline 1_subject file 3 (subMa l _topic3 ), then the above related link relationship is: "src: subMap 1 _topic2— dest: subMa l _topic3” and "src: subMapl— topic 1—dest: subMapl— topic2,,.
由于 subMapl— topic2 的状态变化为删除, 则链接关系表管理装置相应的 删除了链接关系 src: subMap 1 Jopic2— dest: subMa l_topic3" 以及 "src: subMapl— topic 1—dest: subMa l_topic2"。  Since the state of subMapl_topic2 changes to delete, the link relationship table management device deletes the link relationship src: subMap 1 Jopic2_dest: subMa l_topic3" and "src: subMapl_ topic 1_dest: subMa l_topic2".
在删除了上述相关的链接关系后,链接关系表管理装置开始重新整合链接 关系表:  After deleting the above related link relationship, the link relationship table management device starts to re-integrate the link relationship table:
首先, 删除原有顶层链接关系中的整合链接关系;  First, delete the integrated link relationship in the original top-level link relationship;
然后,遍历所有的子层链接关系(包括: 主题文件 2.1的自定义链接关系、 子层大纲 1—主题文件 1的自定义链接关系和 map链接关系, 子层 map内的自 定义链接关系也是子层链接关系, 但更新链接关系时已经被删除), 对该子层 链接关系进行去重处理(本发明实施例中的子层链接关系没有重复);  Then, iterate through all the sub-layer link relationships (including: custom link relationship of theme file 2.1, sub-layer outline 1 - custom link relationship of theme file 1 and map link relationship, custom link relationship within sub-layer map is also child The layer link relationship, but has been deleted when the link relationship is updated, and the sub-layer link relationship is de-duplicated (the sub-layer link relationship in the embodiment of the present invention is not repeated);
再次,将完成去重处理后的子层链接关系整合成整合链接关系, 并判断该 子层链接关系中源主题文件和目的主题文件是否在同一个 map 内, 若是, 则 将该源主题文件和目的主题文件所构成的链接关系标记为内关系, 若否, 则将 该源主题文件和目的主题文件所构成的链接关系标记为外关系(如下表所示): 源节点 目的节点 类型 主题文件 2.1 主题文件 1.1.2 内关系 主题文件 2.1 主题文件 2 内关系 主题文件 2.1 主题文件 2 内关系 主题文件 2.1 外部—主题文件 1 外关系 子层大纲 1—主题文件 1 外部—主题文件 1 外关系 Again, the sub-layer link relationship after the de-reprocessing is integrated into an integrated link relationship, and it is determined whether the source theme file and the destination theme file in the sub-layer link relationship are in the same map, and if so, the source theme file and The link relationship formed by the target theme file is marked as an internal relationship. If not, the link relationship formed by the source theme file and the destination theme file is marked as an external relationship (as shown in the following table): Source node destination node type theme file 2.1 Theme file 1.1.2 Internal relationship theme file 2.1 Theme file 2 Internal relationship theme file 2.1 Theme file 2 Internal relationship Theme file 2.1 External - Topic file 1 External relationship sub-layer outline 1 - Topic file 1 External - Topic file 1 External relationship
最后,链接关系表管理装置查找链接关系表中是否存有顶层自定义链接关 系 (本发明实施例中没有设置顶层自定义链接关系), 若没有, 则直接将整合 链接关系作为 DITA标准格式的链接关系表输出(如上述整合链接关系的表格 所示)。  Finally, the link relationship table management device searches whether there is a top-level custom link relationship in the link relationship table (the top-level custom link relationship is not set in the embodiment of the present invention), and if not, directly uses the integrated link relationship as a link in the DITA standard format. Relational table output (as shown in the table above for integrated link relationships).
可选的,在进行链接关系表整合的过程中, 若用户选择只对内关系进行整 合, 则得到的整合关系如下表所示:  Optionally, in the process of integrating the link relation table, if the user chooses to integrate only the inner relationship, the obtained integration relationship is as follows:
Figure imgf000009_0001
Figure imgf000009_0001
在实际应用中, 还可以设置更多的整合条件, 以满足用户的不同需求。 上 面仅以一些例子对本发明实施例中的应用场景进行了说明, 可以理解的是,在 实际应用中, 还可以有更多的应用场景, 具体此处不作限定。  In practical applications, more integration conditions can be set to meet the different needs of users. The application scenario in the embodiment of the present invention is described by using only some examples. It can be understood that there are more application scenarios in the actual application, which are not limited herein.
下面对用于执行上述链接关系表管理方法的本发明链接关系表管理装置 的实施例进行说明, 其逻辑结构请参考图 4, 本发明实施例中链接关系表管理 装置的一个实施例包括:  The following describes an embodiment of the link relationship table management apparatus of the present invention for performing the above-described link relationship table management method. For the logical structure, please refer to FIG. 4. One embodiment of the link relationship table management apparatus in the embodiment of the present invention includes:
获取单元 401 , 用于获取链接关系表中状态发生变化的主题文件; 查找单元 402, 用于查找上述链接关系表中所有与上述主题文件相关的链 接关系;  The obtaining unit 401 is configured to obtain a theme file whose status changes in the link relationship table, and the searching unit 402 is configured to search for all the link relationships related to the foregoing topic file in the link relationship table;
整合单元 403 , 用于根据上述主题文件的状态变化更新上述链接关系, 并 重新整合该链接关系表。  The integration unit 403 is configured to update the link relationship according to the state change of the foregoing topic file, and re-integrate the link relationship table.
本发明实施例中的整合单元 403包括:  The integration unit 403 in the embodiment of the present invention includes:
关系更新模块 4031 , 用于若主题文件的状态变化为编辑, 则判断编辑过 程是否改变了该主题文件的文件头, 若是, 则使用编辑后的文件头更新上述链 接关系, 若否, 则不更新链接关系; 若主题文件的状态变化为删除, 则删除所 有与该主题文件相关的链接关系; The relationship update module 4031 is configured to: if the state change of the theme file is edited, determine whether the editing process changes the file header of the theme file, and if yes, update the chain by using the edited file header The connection relationship, if not, does not update the link relationship; if the state of the theme file changes to delete, delete all link relationships related to the theme file;
关系整合模块 4032, 用于删除整合链接关系; 获取子层链接关系, 并对 该子层链接关系进行去重处理;将去重处理后的子层链接关系拷贝到链接关系 表中, 导出链接关系表。  The relationship integration module 4032 is configured to delete the integrated link relationship; obtain the sub-layer link relationship, and perform de-duplication processing on the sub-layer link relationship; copy the de-reprocessed sub-layer link relationship into the link relationship table, and derive the link relationship table.
本发明实施例链接关系表管理装置中各个单元具体的交互过程如下: 当检测到链接关系表中的主题文件的状态发送变化时,获取单元 401就会 获取链接关系表中状态发生变化的主题文件。本发明实施例中的链接关系表管 理装置实时的检测链接关系表中各个主题文件的状态,若链接关系表中有主题 文件的状态发生变化(如: 主题文件被编辑, 或主题文件被删除), 则链接关 系表管理可以马上获知, 并获取该状态发生变化的主题文件的相关信息,进行 后续处理。  The specific interaction process of each unit in the link relationship table management apparatus in the embodiment of the present invention is as follows: When detecting the change of the status of the topic file in the link relationship table, the obtaining unit 401 acquires the topic file whose status changes in the link relationship table. . The link relationship table management apparatus in the embodiment of the present invention detects the status of each topic file in the link relationship table in real time, and if the status of the topic file changes in the link relationship table (for example, the theme file is edited, or the theme file is deleted) Then, the link relationship table management can be immediately known, and the related information of the theme file whose status has changed is obtained, and subsequent processing is performed.
在获取到状态发生变化的主题文件之后,查找单元 402查找链接关系表中 所有与该状态发生变化的主题文件相关的链接关系(包括: 以该主题文件为源 主题文件的链接关系, 以该主题文件为目的主题文件的链接关系)。  After obtaining the theme file whose status changes, the searching unit 402 searches for all the link relationships related to the theme file whose status changes in the link relationship table (including: the link relationship with the theme file as the source theme file, with the theme The link relationship of the theme file for the purpose of the file).
在查找到相关的链接关系之后, 整合单元 403的关系更新模块 4031获取 上述主题文件所发生的状态变化信息, 若状态变化为编辑,判断被编辑的主题 文件是否改变了文件头, 若是, 则使用编辑后该主题文件的文件头更新上述步 骤 102所查找到的相关链接关系, 若否, 则不更新该链接关系; 若状态变化为 删除,删除所有上述步骤 102所查找到的相关链接关系。上述根据状态变化更 新链接关系的方法仅是一些举例, 可以理解的是,在实际应用中还有其它的状 态变化情况以及相关更新链接关系的操作, 具体此处不作限定。  After the related link relationship is found, the relationship update module 4031 of the integration unit 403 acquires the state change information generated by the theme file, and if the state changes to edit, determines whether the edited theme file changes the file header, and if so, uses After editing, the file header of the theme file updates the related link relationship found in the above step 102. If not, the link relationship is not updated; if the state change is deleted, all the related link relationships found in the above step 102 are deleted. The foregoing method for updating the link relationship according to the state change is only an example. It can be understood that there are other state changes in the actual application and the operation of updating the link relationship, which is not limited herein.
完成了相关链接关系的更新后, 关系整合模块 4032首先, 删除链接关系 表中的原有的整合链接关系; 然后, 获取所有的子层链接关系(包括主题链接 关系和 map链接关系), 并对该子层链接关系进行去重处理; 可选的, 在进行 链接关系表整合的过程中, 可以选择只对主题链接关系进行整合, 或只对主题 链接关系以及第一层的子层 map进行整合, 在实际应用中可以将这个过程设 置成可选项的形式供用户进行选择,用户根据自身编辑的需要选择合适的整合 项目, 便于直观的进行操作; 再次, 将完成去重处理后的子层链接关系拷贝到 整合链接关系,并判断该子层链接关系中源主题文件和目的主题文件是否在同 一个 map 内, 若是, 则将该源主题文件和目的主题文件所构成的链接关系标 记为内关系, 若否, 则将该源主题文件和目的主题文件所构成的链接关系标记 为外关系。在本发明实施例中,顶层链接关系包括有顶层自定义链接关系和整 合链接关系。该整合链接关系为链接关系表管理装置自动对用户定义的子层链 接关系进行整合得到的, 顶层自定义链接关系为用户自行定义的顶层 map 内 的链接关系; 最后, 获取顶层自定义链接关系, 并对该顶层自定义链接关系以 及整合链接关系进行合并,根据合并后的顶层自定义链接关系以及整合链接关 系生成 DITA标准格式的链接关系表, 并以 XML文件导出。 After the update of the related link relationship is completed, the relationship integration module 4032 first deletes the original integrated link relationship in the link relationship table; then, acquires all the sub-layer link relationships (including the topic link relationship and the map link relationship), and The sub-layer link relationship is de-reprocessed; optionally, in the process of integrating the link relationship table, it is possible to choose to integrate only the topic link relationship, or only the topic link relationship and the first-level sub-layer map. In practical applications, this process can be set to an optional form for the user to select. The user selects a suitable integration project according to the needs of his own editing, which is convenient for intuitive operation; again, the sub-layer link after de-reprocessing is completed. Copy to relationship Integrating the link relationship and determining whether the source theme file and the destination theme file in the sub-layer link relationship are in the same map, and if so, marking the link relationship formed by the source theme file and the destination theme file as an internal relationship, if not , the link relationship formed by the source theme file and the destination theme file is marked as an external relationship. In the embodiment of the present invention, the top-level link relationship includes a top-level custom link relationship and an integrated link relationship. The integrated link relationship is obtained by automatically integrating the user-defined sub-layer link relationship by the link relationship table management device, and the top-level custom link relationship is a link relationship in the top-level map defined by the user; finally, obtaining a top-level custom link relationship, The top-level custom link relationship and the integrated link relationship are merged, and the DITA standard format link relationship table is generated according to the merged top-level custom link relationship and the integrated link relationship, and is exported as an XML file.
在本申请所提供的几个实施例中, 应该理解到, 所揭露的装置和方法, 可 以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示意性的, 例 如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可以有另外的划 分方式, 例如多个单元或组件可以结合或者可以集成到另一个系统, 或一些特 征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间的耦合或直接耦合 或通信连接可以是通过一些接口, 装置或单元的间接耦合或通信连接, 可以是 电性, 机戈或其它的形式。  In the several embodiments provided herein, it should be understood that the disclosed apparatus and method can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in the form of electrical, mechanical or other.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为 单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方,或者 也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部 单元来实现本实施例方案的目的。  The units described as separate components may or may not be physically separate, and the components displayed as the units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元 中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的 形式实现。  In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售 或使用时, 可以存储在一个计算机可读取存储介质中。基于这样的理解, 本发 明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全 部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储 介质中, 包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器, 或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。 而前述 的存储介质包括: U盘、 移动硬盘、 只读存储器(ROM, Read-Only Memory ), 随机存取存储器(RAM, Random Access Memory ), 磁碟或者光盘等各种可以 存储程序代码的介质。 The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. , including a number of instructions to make a computer device (which can be a personal computer, a server, Or a network device or the like) performing all or part of the steps of the method of the various embodiments of the present invention. The foregoing storage medium includes: a U disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes. .
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于 此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到 变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应 所述以权利要求的保护范围为准。  The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims

- 12- 权 利 要 求 - 12- Claims
1、 一种链接关系表管理方法, 其特征在于, 包括:  A method for managing a link relationship table, comprising:
获取链接关系表中状态发生变化的主题文件;  Obtain a theme file whose status changes in the link relationship table;
查找所述链接关系表中所有与所述主题文件相关的链接关系;  Finding all the link relationships in the link relationship table related to the theme file;
根据所述主题文件的状态变化更新所述链接关系,并重新整合所述链接关 系表。  The link relationship is updated according to the state change of the theme file, and the link relationship table is re-integrated.
2、 根据权利要求 1所述的方法, 其特征在于, 所述主题文件的状态变化 包括: 编辑和删除。  2. The method according to claim 1, wherein the state change of the theme file comprises: editing and deleting.
3、 根据权利要求 2所述的方法, 其特征在于, 若所述状态变化为编辑, 则所述根据主题文件的状态变化更新所述链接关系, 包括:  The method according to claim 2, wherein, if the state changes to an edit, the updating the link relationship according to a state change of a theme file includes:
判断所述编辑是否改变了所述主题文件的文件头, 若是, 则使用编辑后的 所述文件头更新所述链接关系, 若否, 则不更新所述链接关系。  Determining whether the editing changes the file header of the theme file, and if so, updating the link relationship using the edited file header, and if not, updating the link relationship.
4、 根据权利要求 2所述的方法, 其特征在于, 若所述状态变化为删除, 则所述根据主题文件的状态变化更新所述链接关系, 包括:  The method according to claim 2, wherein, if the state changes to a deletion, the updating the link relationship according to a state change of a theme file includes:
删除所有与所述主题文件相关的链接关系。  Delete all link relationships associated with the theme file.
5、 根据权利要求 1至 4任意一项所述的方法, 其特征在于,  5. A method according to any one of claims 1 to 4, characterized in that
所述链接关系表包括: 顶层链接关系和子层链接关系;  The link relationship table includes: a top-level link relationship and a sub-layer link relationship;
所述顶层链接关系包括: 顶层自定义链接关系和整合链接关系; 所述重新整合链接关系表, 包括:  The top-level link relationship includes: a top-level custom link relationship and an integrated link relationship; and the re-integration link relationship table includes:
删除原有的整合链接关系;  Delete the original integrated link relationship;
获取所述子层链接关系, 并对所述子层链接关系进行去重处理; 将去重处理后的所述子层链接关系拷贝到链接关系表中,导出所述链接关 系表。  Obtaining the sub-layer link relationship, and performing de-duplication processing on the sub-layer link relationship; copying the de-re-processed sub-layer link relationship into a link relationship table, and deriving the link relationship table.
6、 根据权利要求 5所述的方法, 其特征在于,  6. The method of claim 5, wherein
所述将去重处理后的所述子层链接关系拷贝到链接关系表中,导出所述链 接关系表, 包括:  And copying the sub-layer link relationship after the de-duplication processing into the link relationship table, and exporting the link relationship table, including:
将去重处理后的所述子层链接关系整合成新的整合链接关系;  Integrating the sub-layer link relationship after de-reprocessing into a new integrated link relationship;
获取顶层自定义链接关系,所述顶层自定义链接关系为用户自定义的顶层 的链接关系; - 13 - 合并所述顶层自定义链接关系和整合链接关系,将并将合并后的顶层自定 义链接关系和整合链接关系作为链接关系表导出。 Obtaining a top-level custom link relationship, where the top-level custom link relationship is a user-defined top-level link relationship; - 13 - Merging the top-level custom link relationship and the integrated link relationship, and exporting the merged top-level custom link relationship and the integrated link relationship as a link relationship table.
7、 根据权利要求 6所述的方法, 其特征在于, 对所述子层链接关系进行 去重处理之后, 包括:  The method according to claim 6, wherein after the de-duplication processing of the sub-layer link relationship, the method comprises:
判断所述子层链接关系中源主题文件和目的主题文件是否在同一个大纲 map内, 若是, 则将所述源主题文件和目的主题文件所构成的链接关系标记为 内关系, 若否, 则将所述源主题文件和目的主题文件所构成的链接关系标记为 外关系。  Determining whether the source theme file and the destination theme file in the sub-layer link relationship are in the same outline map, and if so, marking the link relationship formed by the source theme file and the target theme file as an internal relationship, and if not, The link relationship formed by the source theme file and the destination theme file is marked as an external relationship.
8、 根据权利要求 5所述的方法, 其特征在于, 所述子层链接关系包括: 主题链接关系和 map链接关系, 所述主题链接关系为用户自定义的各个 主题文件之间的链接关系, 所述 map链接关系为用户自定义的各个子层 map 内主题文件之间的链接关系;  The method according to claim 5, wherein the sub-layer link relationship comprises: a topic link relationship and a map link relationship, wherein the topic link relationship is a link relationship between user-defined individual topic files, The map link relationship is a link relationship between topic files in each user-defined sub-layer map;
所述获取所述子层链接关系, 包括:  The obtaining the sub-layer link relationship includes:
获取主题链接关系, 和 /或 map链接关系。  Get topic link relationships, and / or map link relationships.
9、 一种链接关系表管理装置, 其特征在于, 包括:  9. A link relationship table management apparatus, comprising:
获取单元, 用于获取链接关系表中状态发生变化的主题文件;  An obtaining unit, configured to acquire a theme file whose status changes in the link relationship table;
查找单元,用于查找所述链接关系表中所有与所述主题文件相关的链接关 系;  a searching unit, configured to search for all the links related to the theme file in the link relationship table;
整合单元, 用于根据所述主题文件的状态变化更新所述链接关系, 并重新 整合所述链接关系表。  And an integration unit, configured to update the link relationship according to a state change of the theme file, and re-integrate the link relationship table.
10、 根据权利要求 9所述的装置, 其特征在于, 所述整合单元包括: 关系更新模块, 用于若所述状态变化为编辑, 则判断所述编辑是否改变了 所述主题文件的文件头,若是,则使用编辑后的所述文件头更新所述链接关系, 若否, 则不更新所述链接关系; 若所述状态变化为删除, 则删除所有与所述主 题文件相关的链接关系;  The device according to claim 9, wherein the integration unit comprises: a relationship update module, configured to determine, if the state changes to an edit, whether the edit changes a file header of the theme file If yes, the linked relationship is updated by using the edited file header, and if not, the link relationship is not updated; if the state change is deleted, all link relationships related to the theme file are deleted;
关系整合模块, 用于删除原有的整合链接关系; 获取所述子层链接关系, 并对所述子层链接关系进行去重处理;将去重处理后的所述子层链接关系拷贝 到链接关系表中, 导出所述链接关系表。  a relationship integration module, configured to delete an original integrated link relationship; obtain the sub-layer link relationship, and perform de-duplication processing on the sub-layer link relationship; and copy the de-reprocessed sub-layer link relationship to the link In the relational table, the linked relationship table is exported.
PCT/CN2011/075688 2011-06-13 2011-06-13 Method for managing link relationship table and related device WO2012171165A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2011800011458A CN102369527B (en) 2011-06-13 2011-06-13 Management method of link relation table and correlative device
PCT/CN2011/075688 WO2012171165A1 (en) 2011-06-13 2011-06-13 Method for managing link relationship table and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/075688 WO2012171165A1 (en) 2011-06-13 2011-06-13 Method for managing link relationship table and related device

Publications (1)

Publication Number Publication Date
WO2012171165A1 true WO2012171165A1 (en) 2012-12-20

Family

ID=45761453

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/075688 WO2012171165A1 (en) 2011-06-13 2011-06-13 Method for managing link relationship table and related device

Country Status (2)

Country Link
CN (1) CN102369527B (en)
WO (1) WO2012171165A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10372744B2 (en) 2016-06-03 2019-08-06 International Business Machines Corporation DITA relationship table based on contextual taxonomy density

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109857764A (en) * 2017-08-17 2019-06-07 天津数观科技有限公司 Method, device and system for updating cache corresponding to database

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5842221A (en) * 1997-02-19 1998-11-24 Wisdomware, Inc. Dynamic frequently asked questions (FAQ) system
US20060200432A1 (en) * 2003-11-28 2006-09-07 Manyworlds, Inc. Adaptive Recommendations Systems
US20070266040A1 (en) * 2006-05-15 2007-11-15 Figlin Oleg V Architecture solution map builder
US20090271711A1 (en) * 2008-04-25 2009-10-29 International Business Machines Corporation Automated relationship management for darwin information typing architecture

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010282241A (en) * 2007-08-20 2010-12-16 Nec Corp File management device, file management system, file management method, and program
CN101136034B (en) * 2007-09-30 2013-03-27 中兴通讯股份有限公司 Controller or quick-speed chaining and method thereof
CN101706804A (en) * 2009-12-01 2010-05-12 百兴科技(苏州)有限公司 Method for associated management of files in computer

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5842221A (en) * 1997-02-19 1998-11-24 Wisdomware, Inc. Dynamic frequently asked questions (FAQ) system
US20060200432A1 (en) * 2003-11-28 2006-09-07 Manyworlds, Inc. Adaptive Recommendations Systems
US20070266040A1 (en) * 2006-05-15 2007-11-15 Figlin Oleg V Architecture solution map builder
US20090271711A1 (en) * 2008-04-25 2009-10-29 International Business Machines Corporation Automated relationship management for darwin information typing architecture

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10372744B2 (en) 2016-06-03 2019-08-06 International Business Machines Corporation DITA relationship table based on contextual taxonomy density

Also Published As

Publication number Publication date
CN102369527B (en) 2013-12-04
CN102369527A (en) 2012-03-07

Similar Documents

Publication Publication Date Title
US10255377B2 (en) Taxonomy driven site navigation
US20230018582A1 (en) Identifying relevant information within a document hosting system
KR101120681B1 (en) Metadata editing control
US20060265377A1 (en) Personalizable information networks
US20060265396A1 (en) Personalizable information networks
US20060265394A1 (en) Personalizable information networks
US20140019843A1 (en) Generic annotation framework for annotating documents
RU2507574C2 (en) Page-by-page breakdown of hierarchical data
US7991767B2 (en) Method for providing a shared search index in a peer to peer network
EP1594079A2 (en) Generation of meaningful names in flattened hierarchical structures
JP2013541115A (en) Synchronizing online document editing
JP2012524331A (en) Theme-based vitality
WO2011088641A1 (en) Method, server end and device for enabling tree-structure data display in world wide web page
US20060265395A1 (en) Personalizable information networks
WO2021006977A1 (en) Delta graph traversing system
WO2012171165A1 (en) Method for managing link relationship table and related device
WO2012106922A1 (en) Method and device for generating topic attribute information
WO2018000785A1 (en) Method for remote file access, server, client terminal, and system
US9483479B2 (en) Main-memory based conceptual framework for file storage and fast data retrieval
JP2008541296A (en) Personalizable information network
JP2021120790A (en) Sentence structure drawing device
JP2007219862A (en) Business form creation device, method, and program, and business form display device
JP4755531B2 (en) Structured data processing apparatus, structured data processing method, and recording medium
JP5704508B2 (en) Electronic tag generation display program, electronic tag generation display method, and electronic tag generation display device
TWI326834B (en) Processing method of data structure

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201180001145.8

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11867847

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11867847

Country of ref document: EP

Kind code of ref document: A1