Document bibliographic format conversion method

文档序号:1556934 发布日期:2020-01-21 浏览:21次 中文

阅读说明:本技术 一种文献著录格式转换方法 (Document bibliographic format conversion method ) 是由 张金龙 于 2019-10-17 设计创作,主要内容包括:本发明公开了一种文献著录格式转换方法,包括:S1、获取待转换文献列表及目标著录格式;S2、识别待转换文献列表中每条待转换文献的原始格式;S3、基于目标著录格式将待转换文献由原始格式转换为目标格式得到目标文献;S4、基于目标文献生成目标文献列表。通过本发明的方法,能够实现文献格式的自动转换,提高了转换效率,避免了人工转换容易出错的问题。(The invention discloses a document bibliographic format conversion method, which comprises the following steps: s1, acquiring a document list to be converted and a target bibliographic format; s2, identifying the original format of each document to be converted in the document list to be converted; s3, converting the document to be converted from the original format to the target format based on the target bibliographic format to obtain a target document; and S4, generating a target document list based on the target document. The method of the invention can realize automatic conversion of literature formats, improve conversion efficiency and avoid the problem that manual conversion is easy to make mistakes.)

1. A method for converting a bibliographic format, comprising:

s1, acquiring a document list to be converted and a target bibliographic format;

s2, identifying the original format of each document to be converted in the document list to be converted;

s3, converting the document to be converted from the original format to the target format based on the target bibliographic format to obtain a target document;

and S4, generating a target document list based on the target document.

2. The method for converting bibliographic formats of claim 1, wherein step S3 comprises:

and when the original format of the document to be converted is the same as the target bibliographic format, taking the document to be converted as the target document, otherwise, decomposing the document to be converted into metadata based on the original format of the document to be converted, and combining the metadata based on the target bibliographic format to obtain the target document.

3. The method for converting bibliographic formats of claims 1 or 2, wherein steps S2 through S4 specifically comprise:

s1001, identifying the number of documents to be converted in the document list to be converted, and executing a step S1002 if the number of documents to be converted is greater than 0, otherwise, executing a step S1005;

s1002, identifying the original format of a first document to be converted in the document list to be converted, and executing a step S1003;

s1003, when the original format of the first document to be converted is the same as the target bibliographic format, taking the first document to be converted as a target document, marking the first document to be converted as converted, returning to the step S1001, otherwise, decomposing the first document to be converted into metadata based on the original format of the first document to be converted, and executing the step S1005;

s1004, combining metadata based on a target bibliographic format to obtain a target document corresponding to the first document to be converted, marking the first document to be converted as converted, and returning to execute the step S1001;

and S1005, generating a target document list by all the target documents according to the sequence in the document list to be converted.

4. The method of converting bibliographic formats of claim 1, wherein the step of identifying the original format of the document to be converted comprises:

acquiring a document format rule;

and matching the document format rule with the document to be converted and determining the original format of the document to be converted.

5. The document bibliographic format conversion method of claim 4 wherein the document format rules include identifying characteristics of various document formats, and when the document to be converted has identifying characteristics of a certain document format, the document format is determined to be the original format of the document to be converted.

6. The method of converting a bibliographic format of claim 1, wherein the metadata includes any one or more of author, title of document, name of publication, year of publication, volume, period, and page number.

Technical Field

The invention relates to data processing, in particular to a document bibliographic format conversion method.

Background

The citation and writing of professional literature usually need to comply with certain bibliographic standards of literature citation, such as national bibliographic rules, APA (American Psychological Association) format, Chicago format, MLA (modern Language Association) format, Harvard format, Vancouver format, and the like. Different versions are often made using different standards. This presents certain difficulties to the literature citation: firstly, references with different formats need to be edited according to the same standard; secondly, when the paper needs to be put into publications adopting different bibliographic formats, the original reference documents need to be edited again.

Disclosure of Invention

Aiming at the defects in the prior art, the problems to be solved by the invention are as follows: how to realize the automatic conversion of the literature bibliographic format.

The invention adopts the following technical scheme:

a method for converting bibliographic formats, comprising:

s1, acquiring a document list to be converted and a target bibliographic format;

s2, identifying the original format of each document to be converted in the document list to be converted;

s3, converting the document to be converted from the original format to the target format based on the target bibliographic format to obtain a target document;

and S4, generating a target document list based on the target document.

Preferably, step S3 includes:

and when the original format of the document to be converted is the same as the target bibliographic format, taking the document to be converted as the target document, otherwise, decomposing the document to be converted into metadata based on the original format of the document to be converted, and combining the metadata based on the target bibliographic format to obtain the target document.

Preferably, steps S2 to S4 specifically include:

s1001, identifying the number of documents to be converted in the document list to be converted, and executing a step S1002 if the number of documents to be converted is greater than 0, otherwise, executing a step S1005;

s1002, identifying the original format of a first document to be converted in the document list to be converted, and executing a step S1003;

s1003, when the original format of the first document to be converted is the same as the target bibliographic format, taking the first document to be converted as a target document, marking the first document to be converted as converted, returning to the step S1001, otherwise, decomposing the first document to be converted into metadata based on the original format of the first document to be converted, and executing the step S1005;

s1004, combining metadata based on a target bibliographic format to obtain a target document corresponding to the first document to be converted, marking the first document to be converted as converted, and returning to execute the step S1001;

and S1005, generating a target document list by all the target documents according to the sequence in the document list to be converted.

Preferably, the method for identifying the original format of the document to be converted comprises the following steps:

acquiring a document format rule;

and matching the document format rule with the document to be converted and determining the original format of the document to be converted.

Preferably, the document format rule includes identification features of various document formats, and when the document to be converted has the identification features of a certain document format, the document format is determined to be the original format of the document to be converted.

Preferably, the metadata includes any one or more of author, document title, publication name, year of publication, volume, period, and page number.

In summary, the present invention discloses a method for converting a bibliographic format, which comprises: s1, acquiring a document list to be converted and a target bibliographic format; s2, identifying the original format of each document to be converted in the document list to be converted; s3, converting the document to be converted from the original format to the target format based on the target bibliographic format to obtain a target document; and S4, generating a target document list based on the target document. The method of the invention can realize automatic conversion of literature formats, improve conversion efficiency and avoid the problem that manual conversion is easy to make mistakes.

Drawings

FIG. 1 is a flow diagram of one embodiment of a document authoring format conversion method of the present invention;

fig. 2 is a flow chart of another embodiment of a method for converting a bibliographic format in accordance with the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings.

As shown in fig. 1, the present invention discloses a document bibliographic format conversion method, which comprises:

s1, acquiring a document list to be converted and a target bibliographic format;

s2, identifying the original format of each document to be converted in the document list to be converted;

s3, converting the document to be converted from the original format to the target format based on the target bibliographic format to obtain a target document;

and S4, generating a target document list based on the target document.

The method of the invention can realize automatic conversion of literature formats, improve conversion efficiency and avoid the problem that manual conversion is easy to make mistakes.

8页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:系统数据批量修改方法、装置、存储介质及电子设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!