JP6805096B2 - File generator, file generator, and file generator - Google Patents
File generator, file generator, and file generator Download PDFInfo
- 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
Links
Images
Landscapes
- Devices For Executing Special Programs (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Stored Programmes (AREA)
- User Interface Of Digital Computer (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
プログラマは、既存のプログラムのソースコードの一部を切り取って、新たなソースコードに貼り付ける転記型のコーディングを行いたいことがある。そのときには、既存ファイルの一部は、素材として参照される。以下、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
図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.
以下、本発明の一実施形態について、図面を参照して詳細に説明する。まず、図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
図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
As the
Each object is independently extracted as a
図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
As the
The
新規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
図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
First, since the
In the
図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
The material registration unit 12 (FIG. 6) inputs from the user the range specification data of lines A07 and A08 in the
素材オブジェクト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
In this way, not only the parent object (first layer) included in the
素材オブジェクト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
As the
次に、新規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
As a result, one
図6は、ファイル生成装置1の構成図である。
ファイル生成装置1は、CPU(Central Processing Unit)と、メモリと、ハードディスクなどの記憶手段(記憶部)と、ネットワークインタフェースとを有するコンピュータとして構成される。
このコンピュータは、CPUが、メモリ上に読み込んだプログラム(アプリケーションや、その略のアプリとも呼ばれる)を実行することにより、各処理部により構成される制御部(制御手段)を動作させる。つまり、本発明では、一般的なコンピュータのハードウェア資源を、ファイル生成装置1の各手段として動作させるファイル生成プログラムによって実現することができる。また、このプログラムは、通信回線を介して配布したり、CD−ROM等の記録媒体に記録して配布したりすることも可能である。
FIG. 6 is a configuration diagram of the
The
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
ファイル生成装置1は、ファイル編集部11と、素材登録部12と、素材データベース13と、素材提示部14と、新規ファイル作成部15とを有する。
以下、ファイル生成装置1の各構成要素間の信号の流れを示すステップ(図6のS11〜S25)を用いて、各構成要素の詳細を説明する。
The
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
ファイル編集部11は、新規JSONファイル94を生成するためのポータル画面を、ユーザに提供する。ポータル画面を介して、ファイル編集部11は、図1で示した素材JSONファイル91の入力をユーザから受け付ける(S11)。さらに、ユーザの入力によりファイル編集部11は、その素材JSONファイル91から素材オブジェクト92を抽出させるための追加入力を受け付ける。追加入力とは、例えば、抽出対象の素材オブジェクト92を指定する情報の入力や、抽出対象の素材オブジェクト92となる素材JSONファイル91の一部を範囲指定する情報の入力である。
The
素材登録部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
(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
In the
図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
The
The new
図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
The icons (drag sources) of the
On the right side of the portal screen, the description content (drop destination) of the
図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
Similarly, the user adds a link to the material object 92 (1-1-2) in the area R2 of the
図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
As S101 to S107, the new
As S102, the
In S103 to S106, the new
As S104, the new
As S105, the new
As S108, the new
図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
As S201, the new
As S202, the
As S203, the
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
As S205, the
S206として、ファイル編集部11は、S201で定義した類似関係にあるオブジェクトXとオブジェクトYとが同じ1つの領域内に登録されているか否かを判定する。S206でYesならS207へ進み、NoならS208へ進む。
S207として、ファイル編集部11は、同じ領域内に登録された複数の類似関係にあるオブジェクトそれぞれに、類似関係を示すメタ情報を付与する。なお、S204の重複関係とは異なり、同じ領域内に複数の類似関係にあるオブジェクトは、ともに有効である。
As S206, the
As S207, the
S208として、ファイル編集部11は、選択中のオブジェクト領域に追加されたアイコンをポータル画面に表示する。ここで、S207で付与されたメタ情報をアイコンごとに表示することで、ユーザは、類似関係にあるオブジェクト集合がまとめて入力されたことを容易に把握できる。
S209として、ファイル編集部11は、選択中のオブジェクト領域に対して、さらに追加したいオブジェクトがあるか否かを判定する。S209でYesならS201に戻り、Noなら図11(S102)のサブルーチンを終了して、図10のメインルーチン(S103)に処理を進める。
As S208, the
As S209, the
図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
以上説明した本実施形態では、事前に素材データベース13に登録しておいた素材オブジェクト92を、新たに新規JSONテンプレート内にドラッグ&ドロップする簡易的な編集操作を受け付けるファイル生成装置1を説明した。これにより、その編集操作で生成されたリンクから素材オブジェクト92の記述内容を含む新規JSONファイル94を効率的に作成できる。
In the present embodiment described above, the
なお、比較例として、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
一方、このように新規JSONファイル94のテキスト内容を効率的に自動生成する本実施形態のファイル生成装置1は、素材オブジェクト92の記述内容を再利用する仕組みにより、新規JSONファイル94の編集作業の効率化に役立つものである。
On the other hand, the
1 ファイル生成装置
11 ファイル編集部
12 素材登録部
13 素材データベース
14 素材提示部
15 新規ファイル作成部
91 素材JSONファイル
92 素材オブジェクト
93 新規JSONテンプレート
94 新規JSONファイル
1
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 .
請求項1に記載のファイル生成装置。 The file generator according to claim 1.
請求項1に記載のファイル生成装置。 The file generator according to claim 1.
請求項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に記載のファイル生成装置。 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 .
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) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113778602A (en) * | 2021-09-13 | 2021-12-10 | 维沃移动通信有限公司 | Information processing method and device |
Family Cites Families (6)
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 |
-
2017
- 2017-08-08 JP JP2017152914A patent/JP6805096B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2019032679A (en) | 2019-02-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2009123022A (en) | Document management apparatus, document management method, program and storage medium | |
KR100759269B1 (en) | Multipolygon Generation System Using Attribute Information of Digital Map Object and Its Method | |
CN108228846A (en) | Resource file management method and device | |
JP5675676B2 (en) | Business analysis design support device, business analysis design support method, and business analysis design support program | |
JP2019040287A (en) | Data analysis processing support apparatus and data analysis processing support method | |
JP2008310450A (en) | Data management device and method | |
JP2007188144A (en) | Work flow management system | |
JP5268508B2 (en) | Information processing apparatus and search method | |
JP6805096B2 (en) | File generator, file generator, and file generator | |
CN108228161A (en) | A kind of system and method for expansion structure order line | |
JP2016151908A (en) | Personal information anonymization support device | |
JP6168206B2 (en) | Information processing apparatus, information processing apparatus control method, and program | |
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 | |
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 | |
JPH09223134A (en) | Document processor | |
JP4890584B2 (en) | Ontology creation support device and program | |
JP5113303B2 (en) | Information processing apparatus, program, storage medium, and display control method | |
JP2011107757A (en) | Data processor, data processing method and program | |
JP2007080205A (en) | Retrieval apparatus and retrieval 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 |