JP6805096B2 - File generator, file generator, and file generator - Google Patents

File generator, file generator, and file generator Download PDF

Info

Publication number
JP6805096B2
JP6805096B2 JP2017152914A JP2017152914A JP6805096B2 JP 6805096 B2 JP6805096 B2 JP 6805096B2 JP 2017152914 A JP2017152914 A JP 2017152914A JP 2017152914 A JP2017152914 A JP 2017152914A JP 6805096 B2 JP6805096 B2 JP 6805096B2
Authority
JP
Japan
Prior art keywords
file
material object
new
icon
objects
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2017152914A
Other languages
Japanese (ja)
Other versions
JP2019032679A (en
Inventor
一貴 平石
一貴 平石
加藤 浩
浩 加藤
伸夫 小内
伸夫 小内
謙輔 高橋
謙輔 高橋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2017152914A priority Critical patent/JP6805096B2/en
Publication of JP2019032679A publication Critical patent/JP2019032679A/en
Application granted granted Critical
Publication of JP6805096B2 publication Critical patent/JP6805096B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)
  • User Interface Of Digital Computer (AREA)
  • Devices For Executing Special Programs (AREA)

Description

本発明は、ファイル生成装置、ファイル生成方法、および、ファイル生成プログラムの技術に関する。 The present invention relates to a file generation device, a file generation method, and a technique of a file generation program.

軽量のデータ交換フォーマットであるJSON(JavaScript(登録商標) Object Notation)が、柔軟なデータ記述ができるデータ形式として、Open API Initiativeなどの標準化団体で標準フォーマットとして採用されている。複数のデータを順序をつけてグループ化するリスト形式や、複数のデータをm行n列のセルに格納するデータテーブル形式と比べて、JSONファイルは、親オブジェクトを含め、さらにその親オブジェクト内に子オブジェクトを含めるような複雑な記述も可能である。 JSON (JavaScript (registered trademark) Object Notation), which is a lightweight data exchange format, has been adopted as a standard format by standardization organizations such as the Open API Initiative as a data format that enables flexible data description. Compared to the list format, which groups multiple data in order, and the data table format, which stores multiple data in cells of m rows and n columns, JSON files include the parent object and are further contained within the parent object. Complex descriptions that include child objects are also possible.

非特許文献1のサイトには、テキストファイルであるJSONファイルをプログラマが編集しやすいように、オブジェクトの追加などができるweb上のエディタが公開されている。このエディタでは、オブジェクトに含まれるvalueに着色したり、テキストファイルの各行に行番号を併記したりする編集画面により、JSONファイルの可読性が向上する。 On the site of Non-Patent Document 1, an editor on the web that can add objects and the like is published so that a programmer can easily edit a JSON file that is a text file. In this editor, the readability of the JSON file is improved by coloring the value contained in the object and adding the line number to each line of the text file.

「JSON Editor Online」、[online]、[2017年7月26日検索]、インターネット〈URL:http://jsoneditoronline.org/〉"JSON Editor Online", [online], [Searched on July 26, 2017], Internet <URL: http://jsoneditoronline.org/>

プログラマは、既存のプログラムのソースコードの一部を切り取って、新たなソースコードに貼り付ける転記型のコーディングを行いたいことがある。そのときには、既存ファイルの一部は、素材として参照される。以下、JSONファイルを素材として再利用する場合を考える。 Programmers may want to do transcription-type coding that cuts out part of the source code of an existing program and pastes it into new source code. At that time, a part of the existing file is referred to as the material. Below, consider the case of reusing a JSON file as a material.

JSONファイルはテキストファイルであるので、プログラマは、先頭から1行ずつJSONファイルの内容を読み込み、必要な部分だけを新規ファイルへと転記する。しかし、JSONファイルは前記したようにオブジェクトの階層関係(親子関係)などを含むような複雑なデータ構造である。よって、非特許文献1のエディタなどによりいくら画面上で読みやすい状態にしたとしても、手作業で転記をする作業では、作業時間が長くなる上に、作業ミスも発生しがちになる。 Since the JSON file is a text file, the programmer reads the contents of the JSON file line by line from the beginning and posts only the necessary parts to the new file. However, the JSON file is a complicated data structure including the hierarchical relationship (parent-child relationship) of objects as described above. Therefore, no matter how easy it is to read on the screen with the editor of Non-Patent Document 1, the work of manually transcribing takes a long time and tends to cause work mistakes.

図14は、転記元の素材JSONファイルから転記先の新規JSONファイルを手作業で作成する工程の具体例を示す説明図である。JSONファイルはテキストファイルであるので、本明細書で説明しやすいように、テキストファイルの各行の左側に行ID(A01,A02,A03…)を付記する。
素材JSONファイルには、再利用可能な箇所として、「転記元A03行〜A06行→転記先B03行〜B06行」と、「転記元A07行,A08行→転記先B13行,B14行」と、「転記元A15行〜A20行→転記先B19行〜B24行」とがある。
しかし、作業ミスとして、例えば、オブジェクトの前半部(A03行,A04行)だけを切り取って後半部(A05行,A06行)を忘れてしまうこともある。そのときには、新規JSONファイルには前半部だけの不充分なオブジェクト(B05行,B06行が無いオブジェクト)が記載されてしまう。
FIG. 14 is an explanatory diagram showing a specific example of a process of manually creating a new JSON file of the transfer destination from the material JSON file of the transfer source. Since the JSON file is a text file, a line ID (A01, A02, A03 ...) is added to the left side of each line of the text file for easy explanation in this specification.
In the material JSON file, as reusable parts, "Posting source A03 line to A06 line → Posting destination B03 line to B06 line" and "Posting source A07 line, A08 line → Posting destination B13 line, B14 line" , "Posting source A15 line to A20 line → Posting destination B19 line to B24 line".
However, as a work mistake, for example, only the first half (A03 line, A04 line) of the object may be cut out and the second half (A05 line, A06 line) may be forgotten. At that time, the new JSON file contains insufficient objects (objects without B05 and B06 lines) only in the first half.

そこで、本発明は、複雑なデータ構造の素材ファイルを効率的に再利用させる編集支援手段を提供することを、主な課題とする。 Therefore, a main object of the present invention is to provide an editing support means for efficiently reusing a material file having a complicated data structure.

前記課題を解決するために、本発明のファイル生成装置は、以下の特徴を有する。
本発明は、新規生成ファイルの一部として使用される素材オブジェクトが格納される素材データベースと、
素材オブジェクトの記述内容を挿入する位置に、素材オブジェクトの識別情報がリンクとして記載された新規中間データを読み込み、前記新規中間データ内のリンクから読み取った素材オブジェクトの識別情報を検索キーとして、前記素材データベースから素材オブジェクトの記述内容を取得し、その取得した素材オブジェクトの記述内容を前記新規中間データのリンクに置き換えて挿入することで、前記新規生成ファイルを作成する新規ファイル作成部と、を有し、
前記素材データベースに登録されている素材オブジェクトごとのアイコンを画面表示し、そのアイコンを前記新規中間データ内の所定位置にドラッグ&ドロップする操作を受け付け、
ドラッグされたアイコンに対応する素材オブジェクトのリンクを、ドロップされた所定位置に追加することで、前記新規ファイル作成部に入力する前記新規中間データを作成させるファイル編集部を有し、
前記ファイル編集部は、前記ドラッグされたアイコンに対応する素材オブジェクトと類似するオブジェクトを前記素材データベースから読み取って、入力候補として提示することを特徴とする。
また、前記ファイル編集部は、前記入力候補として提示された類似するオブジェクトのリンクを前記新規中間データに一括で入力することを特徴とする。
さらに、前記ファイル編集部は、前記入力候補である前記類似するオブジェクトに付与されたメタ情報をアイコンごとに表示することを特徴とする。
また、前記ファイル編集部は、前記ドラッグされたアイコンに対応する素材オブジェクトの集合の中に、重複するオブジェクトが存在する場合には、重複する素材オブジェクトの集合の中の1つの素材オブジェクトは有効化しつつ、他の素材オブジェクトは無効化することを特徴とする。
In order to solve the above problems, the file generator of the present invention has the following features.
The present invention includes a material database in which material objects used as part of a newly generated file are stored.
The new intermediate data in which the identification information of the material object is described as a link is read at the position where the description content of the material object is inserted, and the identification information of the material object read from the link in the new intermediate data is used as a search key to read the material. database to get the description content of the material object from, by inserting replace the description contents of the acquired material object to the link of the new intermediate data, have a, and the new file creating unit that creates the new generation file ,
The icon for each material object registered in the material database is displayed on the screen, and the operation of dragging and dropping the icon to a predetermined position in the new intermediate data is accepted.
It has a file editing unit that creates the new intermediate data to be input to the new file creation unit by adding a link of the material object corresponding to the dragged icon to the dropped predetermined position.
The file editing unit is characterized in that an object similar to the material object corresponding to the dragged icon is read from the material database and presented as an input candidate .
Further, the file editing unit is characterized in that links of similar objects presented as input candidates are collectively input to the new intermediate data.
Further, the file editing unit is characterized in that meta information given to the similar object, which is an input candidate, is displayed for each icon.
Further, when the duplicate object exists in the set of material objects corresponding to the dragged icon, the file editing unit activates one material object in the set of duplicate material objects. However, it is characterized in that other material objects are invalidated.

これにより、素材オブジェクトの記述内容を1つのリンクを埋め込むだけで再利用する仕組みにより、複雑なデータ構造の素材ファイルを効率的に作成できる。さらに、新規中間データにリンクを埋め込む編集作業を、直観的かつ効率的に実現できる。 As a result, a material file having a complicated data structure can be efficiently created by a mechanism in which the description content of the material object is reused only by embedding one link. Furthermore, the editing work of embedding a link in new intermediate data can be realized intuitively and efficiently.

本発明は、入力された素材用ファイルから素材オブジェクトを抽出して、その抽出結果の素材オブジェクトを前記素材データベースに登録する素材登録部を有し、
前記素材登録部が、前記素材用ファイルに記載されたオブジェクトを1つずつ別々の素材オブジェクトとして抽出することを特徴とする。
The present invention has a material registration unit that extracts a material object from an input material file and registers the material object of the extraction result in the material database.
The material registration unit extracts the objects described in the material file one by one as separate material objects.

これにより、素材用ファイル内に列挙されたオブジェクトを、そのまま1つずつ別々の素材オブジェクトとして自動抽出できる。 As a result, the objects listed in the material file can be automatically extracted one by one as separate material objects.

本発明は、前記素材登録部が、前記素材用ファイルに記載された素材オブジェクトに含まれるオブジェクトをさらに別の素材オブジェクトとして抽出することを特徴とする。 The present invention is characterized in that the material registration unit extracts an object included in the material object described in the material file as yet another material object.

これにより、親オブジェクトだけではなく、その親オブジェクトに含まれる子オブジェクトを、新たに素材オブジェクトとして自動抽出できる。 As a result, not only the parent object but also the child objects included in the parent object can be automatically extracted as a new material object.

本発明は、入力された素材用ファイルから範囲指定で選択された複数の要素を含む一部の記述を抽出して、その抽出結果を含む素材オブジェクトに加えて、前記範囲指定された一部の記述と同じ抽出ルールに沿って抽出した別の抽出結果を含む素材オブジェクトを前記素材データベースに登録する素材登録部を有することを特徴とする。 The present invention extracts a part of the description including a plurality of elements selected by the range specification from the input material file, and in addition to the material object containing the extraction result, the part of the range specified. It is characterized by having a material registration unit for registering a material object including another extraction result extracted according to the same extraction rule as the description in the material database.

これにより、オブジェクトの一部を再利用するような場合でも、その再利用する箇所だけを素材オブジェクトとして抽出できる。 As a result, even when a part of the object is reused, only the reused part can be extracted as a material object.

本発明は、前記ファイル編集部が、素材オブジェクトごとのアイコンを画面表示するときに、第1の素材オブジェクトの内部に第2の素材オブジェクトが含まれているときには、前記第1の素材オブジェクトのアイコンを画面表示するとともに、前記第1の素材オブジェクトのアイコンがダブルクリックされたときには、前記第1の素材オブジェクトのアイコンからツリー表示される前記第2の素材オブジェクトのアイコンも画面表示することを特徴とする。 According to the present invention, when the file editing unit displays an icon for each material object on the screen, when the second material object is included inside the first material object, the icon of the first material object is displayed. Is displayed on the screen, and when the icon of the first material object is double-clicked, the icon of the second material object displayed as a tree from the icon of the first material object is also displayed on the screen. To do.

これにより、親子関係のあるオブジェクト集合を一括に表示することで、多数の素材オブジェクトが素材データベースに登録されている場合でも、所望の素材オブジェクトを効率的に見つけることができる。 As a result, by displaying a set of objects having a parent-child relationship at once, a desired material object can be efficiently found even when a large number of material objects are registered in the material database.

本発明によれば、複雑なデータ構造の素材ファイルを効率的に再利用させる編集支援手段を提供することができる。 According to the present invention, it is possible to provide an editing support means for efficiently reusing a material file having a complicated data structure.

本実施形態に係わる素材JSONファイルから素材オブジェクトを抽出する工程を示す説明図である。It is explanatory drawing which shows the process of extracting the material object from the material JSON file which concerns on this embodiment. 本実施形態に係わる素材オブジェクトおよび新規JSONテンプレートから新規JSONファイルを作成する工程を示す説明図である。It is explanatory drawing which shows the process of creating a new JSON file from the material object and the new JSON template which concerns on this Embodiment. 本実施形態に係わる図1で示した素材JSONファイルから素材オブジェクトを抽出する工程の具体例を示す説明図である。It is explanatory drawing which shows the specific example of the process of extracting the material object from the material JSON file shown in FIG. 1 which concerns on this Embodiment. 本実施形態に係わる図3とは別の具体例を示す説明図である。It is explanatory drawing which shows the specific example different from FIG. 3 which concerns on this Embodiment. 本実施形態に係わる素材オブジェクトおよび新規JSONテンプレートから新規JSONファイルを作成する工程の具体例を示す説明図である。It is explanatory drawing which shows the specific example of the process of creating a new JSON file from the material object and the new JSON template which concerns on this Embodiment. 本実施形態に係わるファイル生成装置の構成図である。It is a block diagram of the file generation apparatus which concerns on this embodiment. 本実施形態に係わる素材データベースの一例を示すデータテーブルである。It is a data table which shows an example of the material database which concerns on this embodiment. 本実施形態に係わるファイル編集部が新規JSONテンプレートの入力工程でユーザに提示するポータル画面の画面図である。It is a screen view of the portal screen presented to the user in the process of inputting a new JSON template by the file editing department related to this embodiment. 本実施形態に係わる図8のポータル画面から、ドラッグ&ドロップ操作が行われた後の画面図である。It is a screen view after the drag-and-drop operation is performed from the portal screen of FIG. 8 which concerns on this embodiment. 本実施形態に係わる新規ファイル作成部のメインルーチンである。This is the main routine of the new file creation unit related to this embodiment. 本実施形態に係わるファイル編集部のサブルーチンである。This is a subroutine of the file editing unit related to this embodiment. 本実施形態に係わる図11で説明した類似関係にあるオブジェクトX、オブジェクトYの具体例を示す説明図である。It is explanatory drawing which shows the specific example of the object X and the object Y which have a similar relationship explained with FIG. 11 which concerns on this Embodiment. 本実施形態に係わる類似関係にあるオブジェクトX、オブジェクトYをもとに、新規JSONファイルを生成した結果を示す説明図である。It is explanatory drawing which shows the result of generating a new JSON file based on the object X and the object Y which are the similar relations related to this embodiment. 転記元の素材JSONファイルから転記先の新規JSONファイルを手作業で作成する工程の具体例を示す説明図である。It is explanatory drawing which shows the specific example of the process of manually creating a new JSON file of a transfer destination from a material JSON file of a transfer source.

以下、本発明の一実施形態について、図面を参照して詳細に説明する。まず、図1〜図5を参照して、本実施形態の処理の概要を説明する。これらの各処理は、図6に示すファイル生成装置1の各処理部により実行される。 Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings. First, the outline of the processing of the present embodiment will be described with reference to FIGS. 1 to 5. Each of these processes is executed by each processing unit of the file generation device 1 shown in FIG.

図1は、素材JSONファイル91(素材用ファイル)から素材オブジェクト92を抽出する工程を示す説明図である。
素材JSONファイル91として、3つのオブジェクト「Obj1,Obj2,Obj3」を含む第1ファイルと、3つのオブジェクト「Obj4,Obj5,Obj6」を含む第2ファイルとを例示する。
各オブジェクトは、それぞれ独立に今後再利用される素材オブジェクト92として抽出される。例えば、第1ファイルからは「Obj1,Obj2」が抽出され、第2ファイルからは「Obj4,Obj5」が抽出される。一方、残りのオブジェクト「Obj3,Obj6」は再利用性が低いため、抽出されなかった。
FIG. 1 is an explanatory diagram showing a process of extracting a material object 92 from a material JSON file 91 (material file).
As the material JSON file 91, a first file containing three objects "Obj1, Obj2, Obj3" and a second file containing three objects "Obj4, Obj5, Obj6" are exemplified.
Each object is independently extracted as a material object 92 that will be reused in the future. For example, "Obj1, Obj2" is extracted from the first file, and "Obj4, Obj5" is extracted from the second file. On the other hand, the remaining objects "Obj3, Obj6" were not extracted due to their low reusability.

図2は、素材オブジェクト92および新規JSONテンプレート93(新規中間データ)から新規JSONファイル94(新規生成ファイル)を作成する工程を示す説明図である。
素材オブジェクト92として、図1で抽出された4つのオブジェクト「Obj1,Obj2,Obj4,Obj5」が登録されている。
新規JSONテンプレート93は、新規JSONファイル94を生成する台紙となるデータであり、オブジェクトなどのJSONファイルの要素に加えて、素材オブジェクト92へのリンクも記述可能である。ここでは、新規JSONテンプレート93として、新規に記述した3つのオブジェクト「Obj7,Obj8,Obj9」に加え、素材オブジェクト92へのリンク「Obj1,Obj4」が記述される。
FIG. 2 is an explanatory diagram showing a process of creating a new JSON file 94 (newly generated file) from the material object 92 and the new JSON template 93 (new intermediate data).
As the material object 92, four objects "Obj1, Obj2, Obj4, Obj5" extracted in FIG. 1 are registered.
The new JSON template 93 is data that serves as a mount for generating a new JSON file 94, and in addition to elements of the JSON file such as an object, a link to the material object 92 can be described. Here, as the new JSON template 93, in addition to the three newly described objects "Obj7, Obj8, Obj9", the links "Obj1, Obj4" to the material object 92 are described.

新規JSONテンプレート93の記述が完了すると、新規JSONテンプレート内の素材オブジェクト92へのリンク「Obj1,Obj4」を、素材オブジェクト92の記述内容に展開する(置き換える)ことにより、新規JSONファイル94が作成される。換言すると、新規JSONファイル94のうちの3つのオブジェクト「Obj7,Obj8,Obj9」は手動で生成し、新規JSONファイル94のうちの2つのオブジェクト「Obj1,Obj4」は自動で生成される。 When the description of the new JSON template 93 is completed, the new JSON file 94 is created by expanding (replacing) the links "Obj1, Obj4" to the material object 92 in the new JSON template to the description contents of the material object 92. To. In other words, three objects "Obj7, Obj8, Obj9" in the new JSON file 94 are manually generated, and two objects "Obj1, Obj4" in the new JSON file 94 are automatically generated.

図3は、図1で示した素材JSONファイル91から素材オブジェクト92を抽出する工程の具体例を示す説明図である。
まず、素材JSONファイル91や素材オブジェクト92などはテキストファイルであるので、本明細書で説明しやすいように、テキストファイルの各行の左側に行ID(A01,A02,A03…)を付記する。
素材JSONファイル91には上から順に3つのオブジェクト「A02行から始まるobject1、A12行から始まるobject2、A22行から始まるobject3」が記載されている。この3つのオブジェクトは、1つずつ走査順に構文解析することで、それぞれ別々の素材オブジェクト92−1、92−2、92−3として抽出することができる。
FIG. 3 is an explanatory diagram showing a specific example of the process of extracting the material object 92 from the material JSON file 91 shown in FIG.
First, since the material JSON file 91, the material object 92, and the like are text files, a line ID (A01, A02, A03 ...) Is added to the left side of each line of the text file for easy explanation in the present specification.
In the material JSON file 91, three objects "object1 starting from line A02, object2 starting from line A12, and object3 starting from line A22" are described in order from the top. These three objects can be extracted as separate material objects 92-1, 92-2, and 92-3 by parsing one by one in the order of scanning.

図4は、図3とは別の具体例を示す説明図である。抽出された3つの素材オブジェクト92について、その抽出方法の詳細を順に説明する。
素材オブジェクト92−4「object1 ref」は、ユーザから範囲指定された素材JSONファイル91の部分が新たに1つの素材オブジェクト92として抽出されたものである。
素材登録部12(図6)は、素材JSONファイル91内のA07行とA08行との範囲指定データと、その範囲指定データに名付ける素材オブジェクト92の名称データ「object1 ref」との入力をユーザから受け付ける。そして、素材登録部12は、範囲指定データの部分(A07行、A08行)をJSONのオブジェクト形式に変換する。この変換処理では、範囲指定された部分(A07行、A08行)の前後にオブジェクトとして囲む部分(a01行〜a03行、a04行〜a06行)を補完し、その結果に入力された名称「object1 ref」を割り当てる。
FIG. 4 is an explanatory diagram showing a specific example different from that of FIG. The details of the extraction method of the three extracted material objects 92 will be described in order.
In the material object 92-4 "object1 ref", the part of the material JSON file 91 whose range is specified by the user is newly extracted as one material object 92.
The material registration unit 12 (FIG. 6) inputs from the user the range specification data of lines A07 and A08 in the material JSON file 91 and the name data "object1 ref" of the material object 92 to be named in the range specification data. Accept. Then, the material registration unit 12 converts the range designation data part (A07 line, A08 line) into the JSON object format. In this conversion process, the part (a01 line to a03 line, a04 line to a06 line) enclosed as an object before and after the range specified part (A07 line, A08 line) is complemented, and the name "object1" entered in the result is completed. Assign "ref".

素材オブジェクト92−5「object2-1」は、素材JSONファイル91のA12行〜A21行に記載される「object2」の一部として含まれる、A15行〜A20行のオブジェクトである。素材オブジェクト「object2-1」は、親オブジェクト「object2」に対する子オブジェクトとして、object2とは別に1つのオブジェクトとして抽出されたものである。
このように、素材JSONファイル91に含まれる親オブジェクト(第1階層)だけでなく、その親オブジェクトに含まれる子オブジェクトや(第2階層)、その子オブジェクトに含まれる孫オブジェクト(第3階層)など、複数階層のオブジェクトをそれぞれ別々に素材オブジェクト92として抽出してもよい。
The material object 92-5 "object2-1" is an object of lines A15 to A20 included as a part of "object2" described in lines A12 to A21 of the material JSON file 91. The material object "object2-1" is extracted as a child object for the parent object "object2" and as one object separately from object2.
In this way, not only the parent object (first layer) included in the material JSON file 91, but also the child object (second layer) included in the parent object, the grandchild object (third layer) included in the child object, and the like. , Objects of a plurality of layers may be separately extracted as material objects 92.

素材オブジェクト92−6「object3 ref」は、範囲指定された箇所(A07行、A08行)とは別の箇所(A27行、A28行)にも、範囲指定されたとみなして抽出されたものである。
まず、素材オブジェクト「object1 ref」として範囲指定された箇所(A07行、A08行)のkey(ここではkey1-1,key1-2の順)を抽出ルールとして登録しておく。そして、範囲指定された箇所(A07行、A08行)の抽出ルールを、別の類似箇所(A27行、A28行)にも適用する。
ここで、範囲指定された箇所(A07行、A08行)と別の箇所(A27行、A28行)とは、オブジェクトのvalueは互いに異なるものの、key(key1-1,key1-2の順)は互いに同じであるので、抽出ルールに合致する。よって、類似箇所の素材オブジェクト化も範囲指定される手間をかけさせずに、事前に提案することができる。
The material object 92-6 "object3 ref" is extracted by assuming that the range is specified in a place (A27 line, A28 line) different from the range specified part (A07 line, A08 line). ..
First, the key (here, key1-1 and key1-2 in that order) of the location (A07 line, A08 line) specified as the material object "object1 ref" is registered as an extraction rule. Then, the extraction rule of the specified range (A07 line, A08 line) is applied to another similar part (A27 line, A28 line).
Here, the key (in the order of key1-1, key1-2) is different from the specified range (A07 line, A08 line) and another part (A27 line, A28 line), although the object values are different from each other. Since they are the same as each other, they meet the extraction rules. Therefore, it is possible to propose in advance the material objectization of similar parts without taking the trouble of specifying the range.

図5は、素材オブジェクト92および新規JSONテンプレート93から新規JSONファイル94を作成する工程の具体例を示す説明図である。
新規JSONテンプレート93として、新規に記述した要素をB01,B02のようにBから始まる行IDで示し、素材オブジェクト92へのリンクが記述される行をL(Linkの意味)から始まる行IDで示す。つまり、図示した新規JSONテンプレート93には、3つのリンク(L01行のobject1-1、L02行のobject1-ref、L03行のobject2-1)が埋め込まれている。なお、本明細書では、JSONファイルの規格とは関係なく説明のために、リンク行には、オブジェクト名を特別な記号(%%)で囲むことで、リンク行とその他の行とを区別することにした。
FIG. 5 is an explanatory diagram showing a specific example of a process of creating a new JSON file 94 from the material object 92 and the new JSON template 93.
As the new JSON template 93, the newly described element is indicated by the line ID starting from B like B01 and B02, and the line where the link to the material object 92 is described is indicated by the line ID starting from L (meaning Link). .. That is, three links (object1-1 on the L01 line, object1-ref on the L02 line, and object2-1 on the L03 line) are embedded in the illustrated new JSON template 93. In this specification, for the sake of explanation regardless of the JSON file standard, the link line is distinguished from other lines by enclosing the object name with a special symbol (%%). It was to be.

次に、新規JSONテンプレート93のリンク行を、そのリンク元である素材オブジェクト92の記述内容へと展開する工程により、リンク行L01が素材オブジェクト92の記述内容(B03行〜B06行)に展開される。同様に、リンク行L02が素材オブジェクト92の記述内容(B11行〜B15行)に展開され、リンク行L03が素材オブジェクト92の記述内容(B19行〜B24行)に展開される。
これにより、3つの素材オブジェクト92を再利用して1つの新規JSONファイル94が生成される。つまり、図14と同じ新規JSONファイル94について、実際にユーザにJSONファイルの転記作業を行わせること無く、効率的に新規JSONファイル94を自動生成することができる。
Next, the link line L01 is expanded to the description contents of the material object 92 (lines B03 to B06) by the process of expanding the link line of the new JSON template 93 to the description contents of the material object 92 which is the link source. The object. Similarly, the link line L02 is expanded to the description contents of the material object 92 (B11 to B15 lines), and the link line L03 is expanded to the description contents of the material object 92 (B19 to B24 lines).
As a result, one new JSON file 94 is generated by reusing the three material objects 92. That is, for the same new JSON file 94 as in FIG. 14, the new JSON file 94 can be efficiently and automatically generated without actually having the user perform the JSON file transcription work.

図6は、ファイル生成装置1の構成図である。
ファイル生成装置1は、CPU(Central Processing Unit)と、メモリと、ハードディスクなどの記憶手段(記憶部)と、ネットワークインタフェースとを有するコンピュータとして構成される。
このコンピュータは、CPUが、メモリ上に読み込んだプログラム(アプリケーションや、その略のアプリとも呼ばれる)を実行することにより、各処理部により構成される制御部(制御手段)を動作させる。つまり、本発明では、一般的なコンピュータのハードウェア資源を、ファイル生成装置1の各手段として動作させるファイル生成プログラムによって実現することができる。また、このプログラムは、通信回線を介して配布したり、CD−ROM等の記録媒体に記録して配布したりすることも可能である。
FIG. 6 is a configuration diagram of the file generation device 1.
The file generation device 1 is configured as a computer having a CPU (Central Processing Unit), a memory, a storage means (storage unit) such as a hard disk, and a network interface.
In this computer, the CPU operates a control unit (control means) composed of each processing unit by executing a program (also called an application or an abbreviation thereof) read in the memory. That is, in the present invention, the hardware resources of a general computer can be realized by a file generation program that operates as each means of the file generation device 1. Further, this program can be distributed via a communication line, or can be recorded and distributed on a recording medium such as a CD-ROM.

ファイル生成装置1は、ファイル編集部11と、素材登録部12と、素材データベース13と、素材提示部14と、新規ファイル作成部15とを有する。
以下、ファイル生成装置1の各構成要素間の信号の流れを示すステップ(図6のS11〜S25)を用いて、各構成要素の詳細を説明する。
The file generation device 1 has a file editing unit 11, a material registration unit 12, a material database 13, a material presentation unit 14, and a new file creation unit 15.
Hereinafter, the details of each component will be described with reference to the steps (S11 to S25 in FIG. 6) showing the signal flow between the components of the file generation device 1.

ファイル編集部11は、新規JSONファイル94を生成するためのポータル画面を、ユーザに提供する。ポータル画面を介して、ファイル編集部11は、図1で示した素材JSONファイル91の入力をユーザから受け付ける(S11)。さらに、ユーザの入力によりファイル編集部11は、その素材JSONファイル91から素材オブジェクト92を抽出させるための追加入力を受け付ける。追加入力とは、例えば、抽出対象の素材オブジェクト92を指定する情報の入力や、抽出対象の素材オブジェクト92となる素材JSONファイル91の一部を範囲指定する情報の入力である。 The file editing unit 11 provides the user with a portal screen for generating a new JSON file 94. The file editing unit 11 receives the input of the material JSON file 91 shown in FIG. 1 from the user via the portal screen (S11). Further, upon input by the user, the file editing unit 11 accepts additional input for extracting the material object 92 from the material JSON file 91. The additional input is, for example, input of information for designating the material object 92 to be extracted, or input of information for specifying a part of the material JSON file 91 to be the material object 92 to be extracted.

素材登録部12は、S11で入力された素材JSONファイル91を読み込み(S12)、その中から素材オブジェクト92を抽出し、その抽出結果を素材データベース13に登録する(S13)。素材登録部12による素材オブジェクト92の抽出対象は、例えば、以下に示すように分類される。
(抽出対象1)元々オブジェクトとして定義されているオブジェクト。例えば、図3のオブジェクト「object1、object2、object3」。
(抽出対象2)オブジェクト内のオブジェクト。例えば、図4のオブジェクト「object2」の内のオブジェクト「object2-1」。
(抽出対象3)オブジェクト内の記述内容の一部を抽出したオブジェクト。例えば、図4の範囲指定されたオブジェクト「object1 ref」や、その範囲指定の抽出ルールが適用された「object3 ref」。
The material registration unit 12 reads the material JSON file 91 input in S11 (S12), extracts the material object 92 from the material JSON file 91, and registers the extraction result in the material database 13 (S13). The extraction target of the material object 92 by the material registration unit 12 is classified as shown below, for example.
(Extraction target 1) An object originally defined as an object. For example, the objects "object1, object2, object3" in FIG.
(Extraction target 2) Object in the object. For example, the object "object2-1" in the object "object2" in FIG.
(Extraction target 3) An object in which a part of the description content in the object is extracted. For example, the range-specified object "object1 ref" in FIG. 4 and the "object3 ref" to which the range-specified extraction rule is applied.

図7は、素材データベース13の一例を示すデータテーブルである。
素材データベース13には、素材オブジェクト92のオブジェクト名ごとに、その素材オブジェクト92の記述内容が登録される。素材オブジェクト92は、JSONファイルの形式で指定されるように、項目名(key)とその項目値(value)との組み合わせが、1組以上登録される連想配列の形式である。また、オブジェクト名「3-1-1」で示すように、素材オブジェクト92は、他の素材オブジェクト{1-1-1}と{2-1-1}とを含めたリスト形式で記載してもよい。
FIG. 7 is a data table showing an example of the material database 13.
In the material database 13, the description contents of the material object 92 are registered for each object name of the material object 92. The material object 92 is an associative array format in which one or more combinations of an item name (key) and its item value (value) are registered as specified in the JSON file format. Further, as shown by the object name "3-1-1", the material object 92 is described in a list format including other material objects {1-1-1} and {2-1-1}. May be good.

図6に戻り、素材提示部14は、素材データベース13内に登録された素材オブジェクト92を読み込み(S14)、再利用可能なアイコンとして、ファイル編集部11(ポータル画面)を介してユーザに提示する(S15)。
ファイル編集部11は、素材オブジェクト92のアイコンをユーザに選択(ドラッグ)させ、新規JSONテンプレート内に挿入(ドロップ)させることで、素材オブジェクト92へのリンク(図5ではリンク行L01,L02,L03)が記載された新規JSONテンプレート93(図5の左側)を入力させる(S21)。
新規ファイル作成部15は、入力された新規JSONテンプレート93に含まれるリンクに対応するオブジェクト名を素材提示部14から取得し(S23)、そのオブジェクト名に対応する記述内容を素材データベース13から読み込む(S24)。そして、新規ファイル作成部15は、読み込んだ素材オブジェクト92の記述内容を、新規JSONテンプレート93のリンクの位置に展開することで、新規JSONファイル94を作成する(S25)。
Returning to FIG. 6, the material presentation unit 14 reads the material object 92 registered in the material database 13 (S14) and presents it to the user as a reusable icon via the file editing unit 11 (portal screen). (S15).
The file editing unit 11 causes the user to select (drag) the icon of the material object 92 and insert (drop) it in the new JSON template to link to the material object 92 (link lines L01, L02, L03 in FIG. 5). ) Is described in the new JSON template 93 (left side of FIG. 5) (S21).
The new file creation unit 15 acquires the object name corresponding to the link included in the input new JSON template 93 from the material presentation unit 14 (S23), and reads the description content corresponding to the object name from the material database 13 ( S24). Then, the new file creation unit 15 creates a new JSON file 94 by expanding the description content of the read material object 92 at the link position of the new JSON template 93 (S25).

図8は、ファイル編集部11が新規JSONテンプレート93の入力工程(S21)でユーザに提示するポータル画面の画面図である。
ポータル画面の左側には、素材オブジェクト92のアイコン(ドラッグ元)が列挙される。なお、素材オブジェクト間に親子関係(階層関係)がある場合、親オブジェクト(3-1-1)をダブルクリックすると、その子オブジェクト(1-1-1,2-1-1)がツリー表示される。つまり、ツリー表示では、親オブジェクトだけが表示されている折りたたみ状態と、親子オブジェクトの両方が表示されている展開状態とを、ダブルクリックで切り換えることができる。
ポータル画面の右側には、編集中の新規JSONテンプレート93の記述内容(ドロップ先)と、編集完了後に新規JSONテンプレート93から新規JSONファイル94を作成させるためのファイル作成ボタンとが表示される。新規JSONテンプレート93は、編集位置を大まかに決めるためのオブジェクト領域R1が規定され、その領域R1内にオブジェクト(2-1-2,3-1-2)を配置可能である。
FIG. 8 is a screen view of the portal screen presented to the user in the input process (S21) of the new JSON template 93 by the file editing unit 11.
The icons (drag sources) of the material object 92 are listed on the left side of the portal screen. If there is a parent-child relationship (hierarchical relationship) between the material objects, double-clicking the parent object (3-1-1) will display the child objects (1-1-1,2-1-1) in a tree. .. That is, in the tree display, it is possible to switch between the collapsed state in which only the parent object is displayed and the expanded state in which both the parent and child objects are displayed by double-clicking.
On the right side of the portal screen, the description content (drop destination) of the new JSON template 93 being edited and the file creation button for creating a new JSON file 94 from the new JSON template 93 after the editing is completed are displayed. In the new JSON template 93, an object area R1 for roughly determining the editing position is defined, and objects (2-1-2, 3-1-2) can be arranged in the area R1.

図9は、図8のポータル画面から、ドラッグ&ドロップ操作が行われた後の画面図である。
まず、ユーザは新規JSONテンプレート内に新たにオブジェクト領域R2を生成する。
次に、ユーザは素材オブジェクト92のアイコン(1-1-1)をドラッグし、そのまま領域R2へとドロップする(矢印で図示)。これにより、新規JSONテンプレート93の領域R2内に素材オブジェクト92(1-1-1)へのリンクが埋め込まれる(リンクを示すために破線で1-1-1を囲む図示)。
同様にして、ユーザは新規JSONテンプレート93の領域R2内に素材オブジェクト92(1-1-2)へのリンクを追加する。
FIG. 9 is a screen view after the drag and drop operation is performed from the portal screen of FIG.
First, the user creates a new object area R2 in the new JSON template.
Next, the user drags the icon (1-1-1) of the material object 92 and drops it as it is into the area R2 (shown by the arrow). As a result, a link to the material object 92 (1-1-1) is embedded in the area R2 of the new JSON template 93 (shown by enclosing 1-1-1 with a broken line to indicate the link).
Similarly, the user adds a link to the material object 92 (1-1-2) in the area R2 of the new JSON template 93.

図10は、新規ファイル作成部15のメインルーチンである。このメインルーチンは、図9のポータル画面からファイル作成ボタンが押されたときに実行される。
S101〜S107として、新規ファイル作成部15は、新規JSONテンプレート93に含まれるオブジェクト領域を順に選択する(図9ではR2→R1)ループを実行する。
S102として、ファイル編集部11は、ループで選択された領域内にアイコンを追加するサブルーチン(図11)を実行する。
S103〜S106として、新規ファイル作成部15は、S102で追加された領域内のアイコンを順に選択する(図9では1-1-1→1-1-2)ループを実行する。
S104として、新規ファイル作成部15は、ループで選択されたアイコンに対応するオブジェクト名を素材提示部14から取得する。
S105として、新規ファイル作成部15は、S104で取得したオブジェクト名に対応する素材オブジェクト92の記述内容を素材データベース13から取得し、その取得した記述内容を新規JSONファイル94に追記する。
S108として、新規ファイル作成部15は、ループ内で繰り返し実装されたS105の追記結果を、新規JSONファイル94として出力する。
FIG. 10 is the main routine of the new file creation unit 15. This main routine is executed when the file creation button is pressed from the portal screen of FIG.
As S101 to S107, the new file creation unit 15 executes a loop for sequentially selecting the object areas included in the new JSON template 93 (R2 → R1 in FIG. 9).
As S102, the file editing unit 11 executes a subroutine (FIG. 11) for adding an icon in the area selected by the loop.
In S103 to S106, the new file creation unit 15 executes a loop of sequentially selecting the icons in the area added in S102 (1-1-1 → 1-1-2 in FIG. 9).
As S104, the new file creation unit 15 acquires the object name corresponding to the icon selected in the loop from the material presentation unit 14.
As S105, the new file creation unit 15 acquires the description content of the material object 92 corresponding to the object name acquired in S104 from the material database 13, and adds the acquired description content to the new JSON file 94.
As S108, the new file creation unit 15 outputs the addition result of S105 repeatedly implemented in the loop as a new JSON file 94.

図11は、ファイル編集部11のサブルーチンである。このサブルーチンは、S101からのループで現在選択されているオブジェクト領域ごとに、S102から呼び出される。
S201として、新規ファイル作成部15は、選択中のオブジェクト領域に含まれるオブジェクトと類似するオブジェクトが素材データベース13に登録済みの素材オブジェクト92に存在するか否かを判定する。類似するオブジェクトとは、オブジェクトXとオブジェクトYとで、それぞれ同じkeyの集合を共通して含むときに、オブジェクトXとオブジェクトYとは類似関係とする。S201でYesならS202へ進み、NoならS203へ進む。
S202として、ファイル編集部11は、新規JSONテンプレート93に入力済みのオブジェクトに類似する、新規JSONテンプレート93に入力前の素材オブジェクト92のアイコンを入力候補として提示する。これにより、ユーザは、類似するオブジェクトを一括で入力することができ、類似するオブジェクトの入力忘れも予防できる。
S203として、ファイル編集部11は、新規JSONテンプレート93に入力済みのオブジェクトについて、図9の領域R2などに例示するように、選択中のオブジェクト領域にアイコンを追加する。
FIG. 11 is a subroutine of the file editing unit 11. This subroutine is called from S102 for each object area currently selected in the loop from S101.
As S201, the new file creation unit 15 determines whether or not an object similar to the object included in the selected object area exists in the material object 92 registered in the material database 13. A similar object means that when the object X and the object Y include the same set of keys in common, the object X and the object Y have a similar relationship. If Yes in S201, proceed to S202, and if No, proceed to S203.
As S202, the file editing unit 11 presents the icon of the material object 92 before input to the new JSON template 93 as an input candidate, which is similar to the object already input to the new JSON template 93. As a result, the user can input similar objects at once, and can prevent forgetting to input similar objects.
As S203, the file editing unit 11 adds an icon to the selected object area for the object already input to the new JSON template 93, as illustrated in the area R2 of FIG.

S204として、ファイル編集部11は、選択中のオブジェクト領域に含まれるオブジェクト集合の中に、重複するオブジェクトが存在するか否かを判定する。重複するオブジェクトとは、オブジェクトXとオブジェクトYとで、それぞれ同じkeyかつ同じvalueの集合を共通して含むときに、オブジェクトXとオブジェクトYとは同一(重複関係)とする。つまり、類似関係とは異なり、keyだけでなくvalueも複数のオブジェクト間で同じになるケースである。S204でYesならS205へ進み、NoならS206へ進む。
S205として、ファイル編集部11は、S204で検出した重複するオブジェクトについてのアイコンの操作を無効化する。つまり、同一関係にあるオブジェクトXとオブジェクトYとが同じ1つの領域内で存在していても無駄なので、片方のオブジェクトXは有効化しつつ、もう片方のオブジェクトYは無効化する。オブジェクトYは無効化されたので、その後のS104,S105のリンク展開処理の対象外となる。
As S204, the file editing unit 11 determines whether or not there are duplicate objects in the object set included in the selected object area. The overlapping object means that the object X and the object Y are the same (overlapping relationship) when the object X and the object Y include a set of the same key and the same value in common. In other words, unlike similar relationships, not only the key but also the value is the same among multiple objects. If Yes in S204, proceed to S205, and if No, proceed to S206.
As S205, the file editing unit 11 invalidates the operation of the icon for the duplicate object detected in S204. That is, since it is useless if the objects X and the objects Y having the same relationship exist in the same one area, one object X is enabled and the other object Y is invalidated. Since the object Y has been invalidated, it is not subject to the subsequent link expansion processing of S104 and S105.

S206として、ファイル編集部11は、S201で定義した類似関係にあるオブジェクトXとオブジェクトYとが同じ1つの領域内に登録されているか否かを判定する。S206でYesならS207へ進み、NoならS208へ進む。
S207として、ファイル編集部11は、同じ領域内に登録された複数の類似関係にあるオブジェクトそれぞれに、類似関係を示すメタ情報を付与する。なお、S204の重複関係とは異なり、同じ領域内に複数の類似関係にあるオブジェクトは、ともに有効である。
As S206, the file editing unit 11 determines whether or not the object X and the object Y having a similar relationship defined in S201 are registered in the same one area. If Yes in S206, proceed to S207, and if No, proceed to S208.
As S207, the file editing unit 11 assigns meta information indicating the similarity to each of the plurality of objects having a similarity relationship registered in the same area. Note that, unlike the overlapping relationship in S204, objects having a plurality of similar relationships in the same area are both valid.

S208として、ファイル編集部11は、選択中のオブジェクト領域に追加されたアイコンをポータル画面に表示する。ここで、S207で付与されたメタ情報をアイコンごとに表示することで、ユーザは、類似関係にあるオブジェクト集合がまとめて入力されたことを容易に把握できる。
S209として、ファイル編集部11は、選択中のオブジェクト領域に対して、さらに追加したいオブジェクトがあるか否かを判定する。S209でYesならS201に戻り、Noなら図11(S102)のサブルーチンを終了して、図10のメインルーチン(S103)に処理を進める。
As S208, the file editing unit 11 displays the icon added to the selected object area on the portal screen. Here, by displaying the meta information given in S207 for each icon, the user can easily grasp that a set of objects having a similar relationship has been input collectively.
As S209, the file editing unit 11 determines whether or not there is an object to be added to the selected object area. If Yes in S209, the process returns to S201. If No, the subroutine of FIG. 11 (S102) is terminated, and the process proceeds to the main routine (S103) of FIG.

図12は、図11で説明した類似関係にあるオブジェクトX(図12上側、C01行から始まる素材オブジェクト92−7)、オブジェクトY(図12下側、D01行から始まる素材オブジェクト92−8)の具体例を示す説明図である。このオブジェクトXに含まれるkey集合は、上から順に、「description、href、id、isRoot、lastUpdate、lifecycleStatus、name、version、validFor、endDateTime、startDateTime」である。
また、オブジェクトYに含まれるkey集合も、上から順に、「description、href、id、isRoot、lastUpdate、lifecycleStatus、name、version、validFor、endDateTime、startDateTime」となり、オブジェクトXに含まれるkey集合と同じである。しかし、それぞれのkeyに対応するvalueは、オブジェクトXとオブジェクトYとで異なる。
FIG. 12 shows objects X (upper side of FIG. 12, material object 92-7 starting from line C01) and object Y (lower side of FIG. 12, material object 92-8 starting from line D01) having a similar relationship described with reference to FIG. It is explanatory drawing which shows a specific example. The key set included in this object X is "description, href, id, isRoot, lastUpdate, lifecycleStatus, name, version, validFor, endDateTime, startDateTime" in order from the top.
Also, the key set included in object Y is "description, href, id, isRoot, lastUpdate, lifecycleStatus, name, version, validFor, endDateTime, startDateTime" in order from the top, which is the same as the key set included in object X. is there. However, the value corresponding to each key is different between the object X and the object Y.

図13は、類似関係にあるオブジェクトX、オブジェクトYをもとに、新規JSONファイル94を生成した結果を示す説明図である。行E04からは、図12に示すオブジェクトXの一部(素材オブジェクト92−71)のkey「href、id、name、version」がリンク展開されるとともに、行E10からは、オブジェクトYの一部(素材オブジェクト92−81)のkey「href、id、name、version」がリンク展開される。このように、類似する素材オブジェクト92を一括で新規JSONテンプレート93に入力することで、新規JSONファイル94を効率的に作成できる。 FIG. 13 is an explanatory diagram showing the result of generating a new JSON file 94 based on the objects X and Y that have a similar relationship. From line E04, the key "href, id, name, version" of a part of object X (material object 92-71) shown in FIG. 12 is linked and expanded, and from line E10, a part of object Y (material object 92-71) is expanded. The key "href, id, name, version" of the material object 92-81) is linked and expanded. In this way, the new JSON file 94 can be efficiently created by inputting similar material objects 92 into the new JSON template 93 at once.

以上説明した本実施形態では、事前に素材データベース13に登録しておいた素材オブジェクト92を、新たに新規JSONテンプレート内にドラッグ&ドロップする簡易的な編集操作を受け付けるファイル生成装置1を説明した。これにより、その編集操作で生成されたリンクから素材オブジェクト92の記述内容を含む新規JSONファイル94を効率的に作成できる。 In the present embodiment described above, the file generation device 1 that accepts a simple editing operation of newly dragging and dropping the material object 92 registered in the material database 13 into the new JSON template has been described. As a result, a new JSON file 94 including the description contents of the material object 92 can be efficiently created from the link generated by the editing operation.

なお、比較例として、JSONファイルとは別のデータ形式で記載された変換元ファイルを、JSONファイルにデータ変換するようなシステムも考えられる。変換元ファイルは、例えば、オブジェクトAのアイコンと、オブジェクトBのアイコンと、オブジェクト間を接続する矢印とを含む図形ファイルである。しかし、この比較例では、素材オブジェクト92の記述内容を再利用する仕組みは備えていないため、新規JSONファイル94の編集作業を効率化することはできない。 As a comparative example, a system that converts a conversion source file described in a data format different from the JSON file into a JSON file can be considered. The conversion source file is, for example, a graphic file including an icon of the object A, an icon of the object B, and an arrow connecting the objects. However, in this comparative example, since the mechanism for reusing the description contents of the material object 92 is not provided, the editing work of the new JSON file 94 cannot be made more efficient.

一方、このように新規JSONファイル94のテキスト内容を効率的に自動生成する本実施形態のファイル生成装置1は、素材オブジェクト92の記述内容を再利用する仕組みにより、新規JSONファイル94の編集作業の効率化に役立つものである。 On the other hand, the file generation device 1 of the present embodiment, which efficiently and automatically generates the text content of the new JSON file 94 in this way, edits the new JSON file 94 by a mechanism for reusing the description content of the material object 92. It helps to improve efficiency.

1 ファイル生成装置
11 ファイル編集部
12 素材登録部
13 素材データベース
14 素材提示部
15 新規ファイル作成部
91 素材JSONファイル
92 素材オブジェクト
93 新規JSONテンプレート
94 新規JSONファイル
1 File generator 11 File editing department 12 Material registration department 13 Material database 14 Material presentation department 15 New file creation department 91 Material JSON file 92 Material object 93 New JSON template 94 New JSON file

Claims (10)

新規生成ファイルの一部として使用される素材オブジェクトが格納される素材データベースと、
素材オブジェクトの記述内容を挿入する位置に、素材オブジェクトの識別情報がリンクとして記載された新規中間データを読み込み、前記新規中間データ内のリンクから読み取った素材オブジェクトの識別情報を検索キーとして、前記素材データベースから素材オブジェクトの記述内容を取得し、その取得した素材オブジェクトの記述内容を前記新規中間データのリンクに置き換えて挿入することで、前記新規生成ファイルを作成する新規ファイル作成部と、を有し、
前記素材データベースに登録されている素材オブジェクトごとのアイコンを画面表示し、そのアイコンを前記新規中間データ内の所定位置にドラッグ&ドロップする操作を受け付け、
ドラッグされたアイコンに対応する素材オブジェクトのリンクを、ドロップされた所定位置に追加することで、前記新規ファイル作成部に入力する前記新規中間データを作成させるファイル編集部を有し、
前記ファイル編集部は、前記ドラッグされたアイコンに対応する素材オブジェクトと類似するオブジェクトを前記素材データベースから読み取って、入力候補として提示することを特徴とする
ファイル生成装置。
A material database that stores material objects used as part of the newly generated file,
The new intermediate data in which the identification information of the material object is described as a link is read at the position where the description content of the material object is inserted, and the identification information of the material object read from the link in the new intermediate data is used as a search key to read the material. database to get the description content of the material object from, by inserting replace the description contents of the acquired material object to the link of the new intermediate data, have a, and the new file creating unit that creates the new generation file ,
The icon for each material object registered in the material database is displayed on the screen, and the operation of dragging and dropping the icon to a predetermined position in the new intermediate data is accepted.
It has a file editing unit that creates the new intermediate data to be input to the new file creation unit by adding a link of the material object corresponding to the dragged icon to the dropped predetermined position.
The file editing unit is a file generation device characterized in that an object similar to the material object corresponding to the dragged icon is read from the material database and presented as an input candidate .
前記ファイル編集部は、前記入力候補として提示された類似するオブジェクトのリンクを前記新規中間データに一括で入力することを特徴とする The file editing unit is characterized in that links of similar objects presented as input candidates are collectively input to the new intermediate data.
請求項1に記載のファイル生成装置。 The file generator according to claim 1.
前記ファイル編集部は、前記入力候補である前記類似するオブジェクトに付与されたメタ情報をアイコンごとに表示することを特徴とする The file editing unit is characterized in that meta information given to the similar object, which is an input candidate, is displayed for each icon.
請求項1に記載のファイル生成装置。 The file generator according to claim 1.
前記ファイル編集部は、前記ドラッグされたアイコンに対応する素材オブジェクトの集合の中に、重複するオブジェクトが存在する場合には、重複する素材オブジェクトの集合の中の1つの素材オブジェクトは有効化しつつ、他の素材オブジェクトは無効化することを特徴とする If there are duplicate objects in the set of material objects corresponding to the dragged icon, the file editorial unit enables one material object in the set of duplicate material objects while enabling it. Characterized by disabling other material objects
請求項1に記載のファイル生成装置。 The file generator according to claim 1.
入力された素材用ファイルから範囲指定で選択された複数の要素を含む一部の記述を抽出して、その抽出結果を含む素材オブジェクトに加えて、前記範囲指定された一部の記述と同じ抽出ルールに沿って抽出した別の抽出結果を含む素材オブジェクトを前記素材データベースに登録する素材登録部を有することを特徴とする
請求項1に記載のファイル生成装置。
Extract a part of the description including multiple elements selected by the range specification from the input material file, and in addition to the material object containing the extraction result, the same extraction as the part of the description specified in the range The file generation device according to claim 1, further comprising a material registration unit for registering a material object including another extraction result extracted according to a rule in the material database.
入力された素材用ファイルから素材オブジェクトを抽出して、その抽出結果の素材オブジェクトを前記素材データベースに登録する素材登録部を有し、
前記素材登録部は、前記素材用ファイルに記載されたオブジェクトを1つずつ別々の素材オブジェクトとして抽出することを特徴とする
請求項1に記載のファイル生成装置。
It has a material registration unit that extracts material objects from the input material file and registers the material objects of the extraction results in the material database.
The file generation device according to claim 1, wherein the material registration unit extracts the objects described in the material file one by one as separate material objects.
前記素材登録部は、前記素材用ファイルに記載された素材オブジェクトに含まれるオブジェクトをさらに別の素材オブジェクトとして抽出することを特徴とする
請求項6に記載のファイル生成装置。
The material registration unit is characterized in that an object included in the material object described in the material file is extracted as yet another material object.
The file generator according to claim 6 .
前記ファイル編集部は、素材オブジェクトごとのアイコンを画面表示するときに、第1の素材オブジェクトの内部に第2の素材オブジェクトが含まれているときには、前記第1の素材オブジェクトのアイコンを画面表示するとともに、前記第1の素材オブジェクトのアイコンがダブルクリックされたときには、前記第1の素材オブジェクトのアイコンからツリー表示される前記第2の素材オブジェクトのアイコンも画面表示することを特徴とする
請求項1に記載のファイル生成装置。
When the icon for each material object is displayed on the screen, the file editing unit displays the icon of the first material object on the screen when the second material object is included inside the first material object. At the same time, when the icon of the first material object is double-clicked, the icon of the second material object displayed as a tree from the icon of the first material object is also displayed on the screen.
The file generator according to claim 1 .
ファイル生成装置は、素材データベースと、新規ファイル作成部と、ファイル編集部とを有しており、
前記素材データベースには、新規生成ファイルの一部として使用される素材オブジェクトが格納され、
前記新規ファイル作成部は、素材オブジェクトの記述内容を挿入する位置に、素材オブジェクトの識別情報がリンクとして記載された新規中間データを読み込み、前記新規中間データ内のリンクから読み取った素材オブジェクトの識別情報を検索キーとして、前記素材データベースから素材オブジェクトの記述内容を取得し、その取得した素材オブジェクトの記述内容を前記新規中間データのリンクに置き換えて挿入することで、前記新規生成ファイルを作成し、
前記ファイル編集部は、
前記素材データベースに登録されている素材オブジェクトごとのアイコンを画面表示し、そのアイコンを前記新規中間データ内の所定位置にドラッグ&ドロップする操作を受け付け、
ドラッグされたアイコンに対応する素材オブジェクトのリンクを、ドロップされた所定位置に追加することで、前記新規ファイル作成部に入力する前記新規中間データを作成させ、
前記ドラッグされたアイコンに対応する素材オブジェクトと類似するオブジェクトを前記素材データベースから読み取って、入力候補として提示することを特徴とする
ファイル生成方法。
The file generation device has a material database, a new file creation unit, and a file editing unit .
The material database stores material objects used as part of the newly generated file.
The new file creation unit reads new intermediate data in which the identification information of the material object is described as a link at a position where the description content of the material object is inserted, and the identification information of the material object read from the link in the new intermediate data. Is used as a search key, the description content of the material object is acquired from the material database, and the description content of the acquired material object is replaced with the link of the new intermediate data and inserted to create the newly generated file .
The file editorial department
The icon for each material object registered in the material database is displayed on the screen, and the operation of dragging and dropping the icon to a predetermined position in the new intermediate data is accepted.
By adding the link of the material object corresponding to the dragged icon to the dropped predetermined position, the new intermediate data to be input to the new file creation unit is created.
A file generation method characterized in that an object similar to the material object corresponding to the dragged icon is read from the material database and presented as an input candidate .
新規生成ファイルの一部として使用される素材オブジェクトが格納される素材データベースを記憶するファイル生成装置としてのコンピュータを、
素材オブジェクトの記述内容を挿入する位置に、素材オブジェクトの識別情報がリンクとして記載された新規中間データを読み込み、前記新規中間データ内のリンクから読み取った素材オブジェクトの識別情報を検索キーとして、前記素材データベースから素材オブジェクトの記述内容を取得し、その取得した素材オブジェクトの記述内容を前記新規中間データのリンクに置き換えて挿入することで、前記新規生成ファイルを作成する新規ファイル作成手段と、
前記素材データベースに登録されている素材オブジェクトごとのアイコンを画面表示し、そのアイコンを前記新規中間データ内の所定位置にドラッグ&ドロップする操作を受け付け、
ドラッグされたアイコンに対応する素材オブジェクトのリンクを、ドロップされた所定位置に追加することで、前記新規ファイル作成手段に入力する前記新規中間データを作成させ、
前記ドラッグされたアイコンに対応する素材オブジェクトと類似するオブジェクトを前記素材データベースから読み取って、入力候補として提示するファイル編集手段として機能させるための
ファイル生成プログラム。
A computer as a file generator that stores a material database that stores material objects used as part of a newly generated file.
The new intermediate data in which the identification information of the material object is described as a link is read at the position where the description content of the material object is inserted, and the identification information of the material object read from the link in the new intermediate data is used as a search key to read the material. A new file creation means for creating the newly generated file by acquiring the description content of the material object from the database and replacing the acquired description content of the material object with the link of the new intermediate data and inserting it .
The icon for each material object registered in the material database is displayed on the screen, and the operation of dragging and dropping the icon to a predetermined position in the new intermediate data is accepted.
By adding the link of the material object corresponding to the dragged icon to the dropped predetermined position, the new intermediate data to be input to the new file creation means is created.
A file generation program for reading an object similar to the material object corresponding to the dragged icon from the material database and making it function as a file editing means presented as an input candidate .
JP2017152914A 2017-08-08 2017-08-08 File generator, file generator, and file generator Active JP6805096B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017152914A JP6805096B2 (en) 2017-08-08 2017-08-08 File generator, file generator, and file generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017152914A JP6805096B2 (en) 2017-08-08 2017-08-08 File generator, file generator, and file generator

Publications (2)

Publication Number Publication Date
JP2019032679A JP2019032679A (en) 2019-02-28
JP6805096B2 true JP6805096B2 (en) 2020-12-23

Family

ID=65523501

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017152914A Active JP6805096B2 (en) 2017-08-08 2017-08-08 File generator, file generator, and file generator

Country Status (1)

Country Link
JP (1) JP6805096B2 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002236584A (en) * 2001-02-08 2002-08-23 Hitachi Ltd Text display program
JP2003296113A (en) * 2002-03-29 2003-10-17 Toshiba Corp Device and method for supporting program development, program and recording medium
JP4919825B2 (en) * 2007-01-30 2012-04-18 株式会社東芝 Program development apparatus, program development method and program
JP5381284B2 (en) * 2008-05-20 2014-01-08 株式会社リコー Software development support apparatus, method, program, and computer-readable recording medium
JP6092686B2 (en) * 2013-03-29 2017-03-08 株式会社日立システムズ Operation workflow creation support method and operation workflow creation support system
JP2015099564A (en) * 2013-11-20 2015-05-28 キヤノン株式会社 Visual programming device and control method therefor

Also Published As

Publication number Publication date
JP2019032679A (en) 2019-02-28

Similar Documents

Publication Publication Date Title
JP2011128777A (en) Operation monitoring apparatus
JP2019040287A (en) Data analysis processing support device and data analysis processing support method
JP5675676B2 (en) Business analysis design support device, business analysis design support method, and business analysis design support program
JP2008310450A (en) Data management device and method
CN108228846A (en) Resource file management method and device
JP6223628B1 (en) Information management apparatus, information management method, and information management system
JP5268508B2 (en) Information processing apparatus and search method
JP2016151908A (en) Personal information anonymization support device
JP6168206B2 (en) Information processing apparatus, information processing apparatus control method, and program
JP6805096B2 (en) File generator, file generator, and file generator
CN108228161A (en) A kind of system and method for expansion structure order line
US20150339272A1 (en) Project-data creation apparatus
JP5230193B2 (en) Data search apparatus, data search method, and computer program
JP2020181516A (en) Template search system and template search method
JP6966710B2 (en) Information processing device, control method of information processing device, and program
JP7302146B2 (en) Information processing device, information processing system and program
JP2009157847A (en) Program development device, and program development program
JP2007080205A (en) Retrieval apparatus and retrieval method
JP2006277460A (en) Manual preparation management device
JP5593960B2 (en) Business management system, business management server, and business management program
JP5251288B2 (en) Document management apparatus, data operation method, data operation program, and recording medium recording data operation program
JP2022122766A (en) System for automating operation of automatic execution service, and method of displaying automatic execution service
JP4890584B2 (en) Ontology creation support device and program
JP5113303B2 (en) Information processing apparatus, program, storage medium, and display control method
JPH06243024A (en) Document structure expression system, network type document processor by the system and data structure display device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190826

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200817

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200908

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20201030

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20201201

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20201203

R150 Certificate of patent or registration of utility model

Ref document number: 6805096

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150