CN109101512B - Construction method of legal database, legal data query method and device - Google Patents

Construction method of legal database, legal data query method and device Download PDF

Info

Publication number
CN109101512B
CN109101512B CN201710475646.9A CN201710475646A CN109101512B CN 109101512 B CN109101512 B CN 109101512B CN 201710475646 A CN201710475646 A CN 201710475646A CN 109101512 B CN109101512 B CN 109101512B
Authority
CN
China
Prior art keywords
law
regulation
legal
text
database
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
CN201710475646.9A
Other languages
Chinese (zh)
Other versions
CN109101512A (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.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
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 Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201710475646.9A priority Critical patent/CN109101512B/en
Publication of CN109101512A publication Critical patent/CN109101512A/en
Application granted granted Critical
Publication of CN109101512B publication Critical patent/CN109101512B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/18Legal services

Landscapes

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

Abstract

The invention discloses a construction method and a device of a legal database and a legal data query method and a device, which achieve the purpose of improving the retrieval efficiency. The construction method of the legal database comprises the following steps: acquiring a first law and regulation object and a second law and regulation object, wherein the first law and regulation object and the second law and regulation object belong to the same law and regulation; and associating the first legal and legal regulation object with the second legal and regulation object, and storing the association relationship in a legal database.

Description

Construction method of legal database, legal data query method and device
Technical Field
The invention relates to the field of computers, in particular to a construction method of a legal database, a legal data query method and a legal data query device.
Background
In socialist countries, the law is the embodiment of the will of all the people and serves people, so the law has a great position in the field of judicial law. The law retrieval system is an application of applying the information retrieval system to law and regulation texts, and can help workers of law enforcement agencies such as various levels of large institutions, party and administration institutions, court houses, inspection centers and law firm to quickly find the required laws and regulations. Meanwhile, the legal retrieval system can also provide legal retrieval service for the public.
The legal database provided in the prior art includes independent full-text legal regulations, and when a user needs to find a version associated with a certain legal regulation, for example, to modify the version, the user often needs to search based on all the legal regulations in the legal database, so that the search time is long, the efficiency is low, and the user experience is affected.
Disclosure of Invention
In view of the above problems, the present invention is proposed to provide a method for constructing a legal database, a method for querying legal data, and an apparatus thereof, which overcome the above problems or at least partially solve the above problems, thereby saving the retrieval time and improving the retrieval efficiency.
The embodiment of the application provides a construction method of a legal database, which comprises the following steps:
acquiring a first law and regulation object and a second law and regulation object, wherein the first law and regulation object and the second law and regulation object belong to the same law and regulation;
and associating the first legal and legal regulation object with the second legal and regulation object, and storing the association relationship in a legal database.
Optionally, the first legal and legal objects and/or the second legal and legal objects include at least one of the following types of objects:
attribute information, chapter, section, bar, money, and item of law and regulation.
Optionally, the attribute information of the law and regulation includes at least one of the following:
the name, letter number, effective date, efficacy level, timeliness, revision date, release date, and release unit of the law and regulation.
Optionally, the method further includes:
acquiring a first law and regulation text and a second law and regulation text;
analyzing the first law and regulation text to obtain a first law and regulation object;
and analyzing the second law and regulation text to obtain the second law and regulation object.
Optionally, if the first legal object includes at least two different types, the method further includes:
associating the first legal and legal objects according to grades and/or contents, and storing the first legal and legal objects in the legal database;
and/or the presence of a gas in the gas,
if the second law object includes at least two different types, the method further includes:
and associating the second legal and legal objects according to grades and/or contents, and storing the second legal and legal objects in the legal database.
Optionally, the method further includes:
determining keywords in the first law and regulation text and/or the second law and regulation text, and constructing keyword objects according to the keywords;
if the first law and regulation object relates to the keyword, associating the first law and regulation object with the keyword object and storing the first law and regulation object in the law database;
and/or the presence of a gas in the gas,
and if the second law and regulation object relates to the keyword, associating the second law and regulation object with the keyword object and storing the second law and regulation object in the law database.
The embodiment of the application also provides a legal data query method, which is applied to the legal and legal regulation database constructed by the construction method of the legal database, and the legal database query method comprises the following steps:
acquiring search content input by a user;
inquiring from the legal database according to search content input by a user to obtain the first legal and legal object matched with the search content;
and obtaining the second law and regulation object according to the first law and regulation object and the incidence relation, and displaying the first law and regulation object and the second law and regulation object.
Optionally, the search content includes a target keyword, and the first law and regulation object relates to the target keyword, the querying from the law database according to the search content input by the user to obtain the first law and regulation object matching with the search content includes:
inquiring from the legal database according to the target keyword input by the user to obtain a target keyword object;
and obtaining the first law and regulation object according to the incidence relation between the target keyword object and the first law and regulation object.
The embodiment of the application provides a construction device of a legal database, the device includes: an object acquisition unit and a first association unit;
wherein the object acquiring unit is configured to acquire a first law and regulation object and a second law and regulation object, the first law and regulation object and the second law and regulation object belonging to the same law and regulation;
the first association unit is used for associating the first legal and legal regulation object with the second legal and legal regulation object and storing the association relationship in a legal database.
Optionally, the apparatus further comprises: a text acquisition unit and a parsing unit;
the text acquisition unit is used for acquiring a first legal regulation text and a second legal regulation text;
the analysis unit is used for analyzing the first law and regulation text to obtain the first law and regulation object; and analyzing the second law and regulation text to obtain the second law and regulation object.
Optionally, if the first legal and legal object includes at least two different types, the apparatus further includes:
the second association unit is used for associating the first legal and legal objects according to grades and/or contents and storing the first legal and legal objects in the legal database;
and/or the presence of a gas in the gas,
if the second law object includes at least two different types, the apparatus further includes:
and the third association unit is used for associating the second legal and legal objects according to grades and/or contents and storing the second legal and legal objects in the legal database.
Optionally, the apparatus further comprises:
a keyword object construction unit and a fourth association unit;
the keyword object construction unit is used for determining keywords in the first law and regulation text and/or the second law and regulation text and constructing a keyword object according to the keywords;
the fourth association unit is configured to, if the first law and regulation object relates to the keyword, associate the first law and regulation object with the keyword object and store the first law and regulation object in the law database; and/or, if the second law and regulation object relates to the keyword, associating the second law and regulation object with the keyword object and storing the second law and regulation object in the law database.
The embodiment of the present application further provides a legal data query device, where the device is applied to a legal and legal regulation database built by a construction device of the legal database, and the query device includes:
the system comprises a content acquisition unit, an inquiry unit and a display unit;
the content acquisition unit is used for acquiring search content input by a user;
the query unit is used for querying from the law database according to search content input by a user to obtain the first law and regulation object matched with the search content;
the display unit is used for obtaining the second law and regulation object according to the first law and regulation object and the incidence relation, and displaying the first law and regulation object and the second law and regulation object.
Optionally, the search content includes a target keyword, and the first legal and legal object relates to the target keyword, and the query unit is specifically configured to:
inquiring from the legal database according to the target keyword input by the user to obtain a target keyword object; and obtaining the first law and regulation object according to the incidence relation between the target keyword object and the first law and regulation object.
By means of the technical scheme, the construction method of the law database, the law data query method and the device provided by the invention have the advantages that the association is carried out on the laws and regulations belonging to one law and the association relation is stored in the law database, when a user searches for the first law and regulation object, the second law and regulation object can be quickly found according to the association relation between the first law and regulation object and the second law and regulation object, the whole law database does not need to be traversed for searching, and the searching efficiency is improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart illustrating a method for building a legal database according to an embodiment of the present application;
FIG. 2 is a diagram illustrating an association relationship between attributes and bars according to an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating a relationship network of laws and regulations of the same version according to an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating an embodiment of the present application in which legal and legal objects are associated with keyword objects;
FIG. 5 is a flow chart illustrating a legal data query method provided by an embodiment of the present application;
fig. 6 shows a block diagram of a construction device of a legal database provided in this embodiment;
fig. 7 shows a block diagram of a legal data query device provided in this embodiment.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Referring to fig. 1, the figure is a flowchart of a method for building a legal database according to an embodiment of the present application.
The construction method of the legal database provided by the embodiment comprises the following steps:
s101: a first law and regulation object and a second law and regulation object are obtained.
The laws and regulations refer to the laws, administrative laws, judicial explanations, local laws, local regulations, department regulations and other normative documents currently in force in the people's republic of China, and the occasional modification and supplement of the laws and regulations.
The first and second law and regulation objects refer to objects that exhibit part or all of laws and regulations. The type of the first law and regulation object and/or the second law and regulation object comprises one or more of attribute information, chapter, section, bar, section, item and the like of the law and regulation. The attribute information of the laws and regulations may include: one or more of the names of laws and regulations, letter number, effective date, effectiveness level, timeliness, revision date, release unit, etc.
Taking 2005 edition of trademark review rules as an example, the name of the law and regulation is trademark review rules, the issued letter number is No. 20 of the administration command for the administration of work and injury, the effective date is 26/10/2005, the efficacy grade is regulation, the timeliness is effective, the revision date is 26/9/2005, the release date is 26/9/2005, and the release unit is the administration of national work and business administration. The trademark review rule of 2005 has six chapters, sixty two chapters and several types and items.
In practical application, the first law and regulation text and the second law and regulation text can be obtained firstly, then the first law and regulation text is analyzed to obtain at least one first law and regulation object, and the second law and regulation text is analyzed to obtain at least one second law and regulation object.
The means for acquiring the first law and regulation texts and the second law and regulation texts can be crawling from a webpage, or obtaining by downloading, copying, pasting and the like. The first law and regulation text and the second law and regulation text belong to the same law and regulation, and have relevance. The associated meaning may be: the first and second law and regulation texts belong to the same law and regulation but are different in version. For example, the first law and regulation text is "the trade mark of the people's republic of China" in 2001 edition, and the second law and regulation text is "the trade mark of the people's republic of China" in 2013 edition. The associated meaning may also be: the first and second law and regulation texts belong to the same law and have the same version, but the first and second law and regulation texts are disclosed differently. Because different users have different viewpoints or different expression ways for reading the same law and regulation, when the first law and regulation text and the second law and regulation text are obtained by network crawling, the same version of the first law and regulation text as the first law and regulation text may be obtained, but the reading contents are different. Both of the above cases belong to the case where the first law text and the second law text are associated.
After the first law and regulation text and the second law and regulation text are obtained, the first law and regulation object can be obtained by analyzing the first law and regulation text; and analyzing the second law and regulation text to obtain a second law and regulation object. The association between texts needs to be embodied in the association between objects.
Since the first law and regulation object is parsed from the first law and regulation text and the second law and regulation object is parsed from the second law and regulation text, the first law and regulation object and the second law and regulation object also belong to the same law and regulation.
S102: and associating the first legal and legal regulation object with the second legal and regulation object, and storing the association relationship in a legal database.
In the embodiment, by associating the laws and regulations belonging to one law and regulation and storing the association relationship in the law database, when the user searches the first law and regulation object, the second law and regulation object can be quickly found according to the association relationship between the first law and regulation object and the second law and regulation object, the whole law database does not need to be traversed for searching, and the searching efficiency is improved.
In addition, several types of the first and second law objects are described above. The type of the first law object and the type of the second law object may be the same or different. But for ordering and ease of finding after association, it may be provided that the type of the first legal object and the type of the second legal object are the same and the content is substantially the same. For example, if the first law object is the name of a law, such as "the trademark of the people's republic of China", the second law object is also the name of a law, such as "the trademark of the people's republic of China". If the first law and regulation object is a bar, for example, the first bar of the 'trade mark of the people's republic of China '2001 edition, the second law and regulation object is also the bar, namely, the first bar of the' trade mark of the people's republic of China' 2013 edition, and the contents of the two bars are basically the same.
When there are a plurality of analyzed first and second law and regulation objects, for example, analysis is performed according to law and regulation attributes, chapters, sections, bars, types, and terms, all the first and second law and regulation objects may be respectively associated, or a part of the first and second law and regulation objects may be respectively associated, but it is necessary to ensure that at least one first and second law and regulation object establishing an association relationship is respectively provided.
The first law object and the second law object are in a one-to-one relationship in general, but may be in a many-to-one or many-to-many relationship in special cases. For example, the first law object is the tenth third clause of the 2001 edition of the trade mark of the people's republic of China, and in the 2013 edition, the corresponding content is changed into the tenth third clause and the tenth fourth clause, and the second law object is the tenth third clause and the fourth clause of the 2013 edition of the trade mark of the people's republic of China. For another example, the contents of the eighth first and sixth clauses of the 2001 edition of trademark laws of the people's republic of china are related to the eighth second clause and the eleventh third clause of the 2013 edition of trademark laws of the people's republic of china, so that the first legal and legal objects can be the eighth first and sixth clauses of the 2001 edition of trademark laws of the people's republic of china, and the second legal and legal objects can be the eighth second and eleventh third clauses of the 2013 edition of trademark laws of the people's republic of china.
It can be understood that the first law and regulation object and the second law and regulation object are any two law and regulation objects with association, and in practical application, a plurality of law and regulation objects with association can be associated with each other arbitrarily by adopting the technical scheme provided by the embodiment, or associated with each other in a time sequence. For example, assuming that a third law object exists, and the third law object belongs to the same law as the first law object and the second law object but is different from both the version of the first law object and the version of the second law object, the following association may be made: the first law and regulation object is associated with the second law and regulation object, the first law and regulation object is associated with the third law and regulation object, and the second law and regulation object is associated with the third law and regulation object; alternatively, if the revision times of the first law object, the second law object, and the third law object are near and far, the following association may be made: the first law object is associated with a second law object, and the second law object is associated with a third law object.
In addition to associating the legal objects belonging to different legal texts, in the present embodiment, it is also possible to associate a plurality of types of legal objects belonging to the same legal text, so that when a user retrieves one of the legal objects, the other legal objects of the same version can be quickly found.
Specifically, if the first law object includes at least two different types, the first law object may be associated by rank and/or content and stored in the law database. If the second law object includes at least two different types, the second law object may be associated by rank and/or content and stored in the law database.
For example, it is assumed that the 2005 edition of "trademark review rule" is analyzed to obtain the attributes corresponding to the laws and regulations, and each item and each style, the attributes may be used as one law and regulation object as a whole, and each item and each style may be used as one law and regulation object (in this example, the law and regulation object may be the first law and regulation object, or may be the second law and regulation object). The association between individual legal and legal objects may be: the attribute establishes an association relationship with each bar (for example, fig. 2, which is an association relationship established between the attribute and the bar), and each bar establishes an association relationship with each money. Finally, a relationship network is established for the law and regulation of the version, and the relationship network is shown in fig. 3, which is a schematic diagram of the relationship network.
Of course, associations may be made between multiple legal and legal objects of the same type. For example, there are sixteen items in 2005 edition of trademark review rules, and the items can be related in sequence.
Further, since the user generally searches based on a keyword when retrieving laws and regulations, in the present embodiment, a keyword object may be constructed from the keyword, and then a laws and regulations object related to the keyword may be associated with the keyword object. The keyword is a word that can embody a certain chapter, a certain section, a certain item or the central idea of the whole law and regulation in the law and regulation. For example, the fifty-seventh first provision of the 2013 version of the trade mark law of the people's republic of China: the same trademark as the registered trademark is used on the same kind of merchandise without permission of the trademark registrant. Then the keywords for the item may be: a trademark registrant and/or a registered trademark.
Specifically, first, a keyword in the first law and regulation text and/or the second law and regulation text is determined, and then a keyword object is constructed according to the keyword. And if the first law and regulation object relates to the keyword, associating the first law and regulation object with the keyword object and storing the first law and regulation object in the law database. And if the second law and regulation object relates to the keyword, associating the second law and regulation object with the keyword object and storing the second law and regulation object in the law database.
For example, referring to fig. 4, assuming that the forty-fourth and fifty-seventh items of 2013 version of the trademark law of the people's republic of china are both related to the exclusive rights for the trademark, the forty-fourth and fifty-seventh items may be respectively associated with the exclusive rights for the trademark as the legal and regulatory objects. Of course, if there is a legal and legal object relating to the exclusive right of trademark in 2001 edition "trademark law of the people's republic of China", it can be associated with the exclusive right of trademark object.
Of course, it is understood that the keyword object may be connected to not only the legal and legal objects belonging to the same department but having different versions, but also the legal and legal objects belonging to different departments.
The association between the keyword object and the legal object to which it relates may be stored in advance in a legal database before the user search. After a user inputs a target keyword, all keyword objects are searched in a legal regulation database, if the target keyword object is found, the legal regulation object related to the keyword is found according to the association relationship and displayed; when the keyword is not found, all other legal and legal objects except the keyword object in the legal and legal database can be traversed, the legal and legal objects related to the keyword are found out, the target keyword is processed into one object, and then the searched legal and legal objects are associated with the target keyword object, so that the legal and legal database is enriched and the next search by a user is facilitated.
Alternatively, in order to provide more detailed information to the user, some important keywords may be interpreted and explained, and these interpretations and explanations may also be associated with the keyword object as a legal and legal object, for example, in fig. 4, the following information is associated with the keyword object — trademark exclusive right: the foreign language is Trademark lights; the properties are as follows: the term of economics; the content is as follows: exclusive use rights, licensing rights, distribution rights. When the user inquires the keyword, the information related to the keyword object can be displayed according to the user selection or automatically, and the user experience is improved.
Referring to fig. 5, the figure is a flowchart of a legal data query method provided by the legal database constructed based on the construction method of the legal database according to the embodiment of the present application.
The legal data query method provided by the embodiment comprises the following steps:
s201: and acquiring search content input by a user.
In this embodiment, the search content may include a combination of one or more of a target keyword, a name of a law, a release time of the law, a release department, a specific provision, and the like. The target keyword refers to a keyword input by a user, and the meaning of the keyword is referred to above.
S202: and inquiring from the legal database according to the search content input by the user to obtain the first legal and legal object matched with the search content.
In this embodiment, when the search content includes a target keyword and the first law and regulation object relates to the target keyword, since the association relationship between the target keyword object and the first law and regulation object is stored in the law database, this step may be to first perform a query from the law database according to the target keyword input by the user to obtain the target keyword object, and then obtain the first law and regulation object according to the association relationship between the target keyword object and the first law and regulation object.
When the search content does not include the target keyword, the legal and legal objects in the legal database need to be traversed to find the first legal and legal object matching the search content.
S203: and obtaining the second law and regulation object according to the first law and regulation object and the incidence relation, and displaying the first law and regulation object and the second law and regulation object.
In this embodiment, since the association relationship between the first law and regulation objects and the second law and regulation object is stored in the law database, the second law and regulation object is obtained according to the association relationship and the first law and regulation object, and the first law and regulation object and the second law and regulation object are displayed.
In summary, in the embodiment, since the association relationship between the first law and second law objects belonging to one law and having different versions is stored in the law database, when the user searches for the first law, the second law can be quickly found according to the association relationship between the first law and second law objects, and the entire law database does not need to be traversed for searching, so that the searching efficiency is improved.
In addition, if the association relationship between the first law and regulation objects is stored in the law database, since the first law and regulation objects are all obtained from the first law and regulation text, in the display stage, all the first law and regulation objects can be displayed, and part of the first law and regulation objects directly related to the search content can also be displayed. For example, assume that the search content is: the forty th item of the 2013 trademark method can only display the content of the item, and can also display all the content of the 2013 trademark method.
Referring to fig. 6, this figure is a block diagram of a construction apparatus of a legal database according to this embodiment.
The construction device of the legal database provided by the embodiment comprises: an object acquisition unit 101 and a first association unit 102;
wherein the object acquiring unit is configured to acquire a first law and regulation object and a second law and regulation object, the first law and regulation object and the second law and regulation object belonging to the same law and regulation;
the first association unit is used for associating the first legal and legal regulation object with the second legal and legal regulation object and storing the association relationship in a legal database.
Optionally, the apparatus further comprises: a text acquisition unit and a parsing unit;
the text acquisition unit is used for acquiring a first legal regulation text and a second legal regulation text;
the analysis unit is used for analyzing the first law and regulation text to obtain the first law and regulation object; and analyzing the second law and regulation text to obtain the second law and regulation object.
Optionally, if the first legal and legal object includes at least two different types, the apparatus further includes:
the second association unit is used for associating the first legal and legal objects according to grades and/or contents and storing the first legal and legal objects in the legal database;
and/or the presence of a gas in the gas,
if the second law object includes at least two different types, the apparatus further includes:
and the third association unit is used for associating the second legal and legal objects according to grades and/or contents and storing the second legal and legal objects in the legal database.
Optionally, the apparatus further comprises:
a keyword object construction unit and a fourth association unit;
the keyword object construction unit is used for determining keywords in the first law and regulation text and/or the second law and regulation text and constructing a keyword object according to the keywords;
the fourth association unit is configured to, if the first law and regulation object relates to the keyword, associate the first law and regulation object with the keyword object and store the first law and regulation object in the law database; and/or, if the second law and regulation object relates to the keyword, associating the second law and regulation object with the keyword object and storing the second law and regulation object in the law database.
Referring to fig. 7, it is a block diagram of a legal data query device provided in this embodiment.
The legal data query provided by this embodiment is applied to the legal and legal regulation database constructed by the construction apparatus of the legal database described in the above embodiment, and the query apparatus includes:
a content acquisition unit 201, an inquiry unit 202, and a display unit 203;
the content acquiring unit 201 is used for acquiring search content input by a user;
the query unit 202 is configured to query the legal database according to search content input by a user, so as to obtain the first legal and legal object matched with the search content;
the display unit 203 is configured to obtain the second law and regulation object according to the first law and regulation object and the association relationship, and display the first law and regulation object and the second law and regulation object.
Optionally, the search content includes a target keyword, and the first legal and legal object relates to the target keyword, the querying unit 202 is specifically configured to:
inquiring from the legal database according to the target keyword input by the user to obtain a target keyword object; and obtaining the first law and regulation object according to the incidence relation between the target keyword object and the first law and regulation object.
The construction device of the legal database and the legal data inquiry device respectively comprise a processor and a memory, the object acquisition unit 101, the first association unit 102, the content acquisition unit 201, the inquiry unit 202 and the display unit 203 are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more, and the retrieval efficiency is improved by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
In the embodiment, by associating the laws and regulations belonging to one law and regulation and storing the association relationship in the law database, when the user searches the first law and regulation object, the second law and regulation object can be quickly found according to the association relationship between the first law and regulation object and the second law and regulation object, the whole law database does not need to be traversed for searching, and the searching efficiency is improved.
An embodiment of the application further provides a computer program product adapted to perform program code for initializing the following method steps when executed on a data processing device:
acquiring a first law and regulation object and a second law and regulation object, wherein the first law and regulation object and the second law and regulation object belong to the same law and regulation;
and associating the first legal and legal regulation object with the second legal and regulation object, and storing the association relationship in a legal database.
An embodiment of the application further provides a computer program product adapted to perform program code for initializing the following method steps when executed on a data processing device:
acquiring search content input by a user;
inquiring from the legal database according to search content input by a user to obtain the first legal and legal object matched with the search content;
and obtaining the second law and regulation object according to the first law and regulation object and the incidence relation, and displaying the first law and regulation object and the second law and regulation object.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method of construction of a legal database, the method comprising:
acquiring a first law and regulation object and a second law and regulation object, wherein the first law and regulation object and the second law and regulation object belong to the same law and regulation;
associating the first legal and legal regulation object with the second legal and regulation object, and storing the association relationship in a legal database;
the first law and regulation object is obtained according to a first law and regulation text, and the second law and regulation object is obtained according to a second law and regulation text;
the first law and regulation text and the second law and regulation text belong to the same law and are different in version; alternatively, the first and second electrodes may be,
the first and second law text belong to the same law, the versions of the first and second law text are the same, and the first and second law text are disclosed differently.
2. The method of claim 1, wherein the first and/or second law object includes at least one of the following types of objects:
attribute information, chapter, section, bar, money, and item of law and regulation.
3. The method of claim 2, wherein the attribute information of the legal regulations includes at least one of:
the name, letter number, effective date, efficacy level, timeliness, revision date, release date, and release unit of the law and regulation.
4. A method according to claim 2 or 3, characterized in that the method further comprises:
acquiring a first law and regulation text and a second law and regulation text;
analyzing the first law and regulation text to obtain a first law and regulation object;
and analyzing the second law and regulation text to obtain the second law and regulation object.
5. The method of claim 4, wherein if the first legal and legal object includes at least two different types, the method further comprises:
associating the first legal and legal objects according to grades and/or contents, and storing the first legal and legal objects in the legal database;
and/or the presence of a gas in the gas,
if the second law object includes at least two different types, the method further includes:
and associating the second legal and legal objects according to grades and/or contents, and storing the second legal and legal objects in the legal database.
6. The method of claim 4, further comprising:
determining keywords in the first law and regulation text and/or the second law and regulation text, and constructing keyword objects according to the keywords;
if the first law and regulation object relates to the keyword, associating the first law and regulation object with the keyword object and storing the first law and regulation object in the law database;
and/or the presence of a gas in the gas,
and if the second law and regulation object relates to the keyword, associating the second law and regulation object with the keyword object and storing the second law and regulation object in the law database.
7. A legal data query method applied to a legal database constructed by the construction method of a legal database according to any one of claims 1 to 6, the legal database query method comprising:
acquiring search content input by a user;
inquiring from the legal database according to search content input by a user to obtain the first legal and legal object matched with the search content;
and obtaining the second law and regulation object according to the first law and regulation object and the incidence relation, and displaying the first law and regulation object and the second law and regulation object.
8. The method of claim 7, wherein the search content includes a target keyword and the first legal object relates to the target keyword, wherein querying from the legal database according to the search content input by the user to obtain the first legal object matching the search content comprises:
inquiring from the legal database according to the target keyword input by the user to obtain a target keyword object;
and obtaining the first law and regulation object according to the incidence relation between the target keyword object and the first law and regulation object.
9. An apparatus for building a legal database, the apparatus comprising: an object acquisition unit and a first association unit;
wherein the object acquiring unit is configured to acquire a first law and regulation object and a second law and regulation object, the first law and regulation object and the second law and regulation object belonging to the same law and regulation;
the first association unit is used for associating the first legal and legal regulation object with the second legal and legal regulation object and storing the association relationship in a legal database;
the first law and regulation object is obtained according to a first law and regulation text, and the second law and regulation object is obtained according to a second law and regulation text;
the first law and regulation text and the second law and regulation text belong to the same law and are different in version; alternatively, the first and second electrodes may be,
the first and second law text belong to the same law, the versions of the first and second law text are the same, and the first and second law text are disclosed differently.
10. A legal data inquiry apparatus applied to the legal regulation database constructed by the legal database construction apparatus of claim 9, the inquiry apparatus comprising:
the system comprises a content acquisition unit, an inquiry unit and a display unit;
the content acquisition unit is used for acquiring search content input by a user;
the query unit is used for querying from the law database according to search content input by a user to obtain the first law and regulation object matched with the search content;
the display unit is used for obtaining the second law and regulation object according to the first law and regulation object and the incidence relation, and displaying the first law and regulation object and the second law and regulation object.
CN201710475646.9A 2017-06-21 2017-06-21 Construction method of legal database, legal data query method and device Active CN109101512B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710475646.9A CN109101512B (en) 2017-06-21 2017-06-21 Construction method of legal database, legal data query method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710475646.9A CN109101512B (en) 2017-06-21 2017-06-21 Construction method of legal database, legal data query method and device

Publications (2)

Publication Number Publication Date
CN109101512A CN109101512A (en) 2018-12-28
CN109101512B true CN109101512B (en) 2021-05-28

Family

ID=64796306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710475646.9A Active CN109101512B (en) 2017-06-21 2017-06-21 Construction method of legal database, legal data query method and device

Country Status (1)

Country Link
CN (1) CN109101512B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109376215A (en) * 2018-09-10 2019-02-22 王洪斌 A kind of legal provision searching method and system
CN109726215B (en) * 2018-12-29 2023-03-14 重庆工商大学融智学院 Legal knowledge intelligent query system for legal consultation service
CN110209914B (en) * 2019-06-13 2024-04-12 腾讯科技(成都)有限公司 Information query method and related device
CN112000790B (en) * 2020-08-24 2023-07-25 西华大学 Legal text accurate retrieval method, terminal system and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1452097A (en) * 2002-04-12 2003-10-29 白建军 Interdynamic search method
CN105335360A (en) * 2014-05-26 2016-02-17 国际商业机器公司 Method and apparatus for generating document structure
CN106815256A (en) * 2015-12-01 2017-06-09 北京国双科技有限公司 Set up the method and device of laws and regulations bar fund incidence relation

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5011129B2 (en) * 2005-01-28 2012-08-29 トムソン ルーターズ グローバル リソーシーズ Online legal research system and method
CN101436186B (en) * 2007-11-12 2012-09-05 北京搜狗科技发展有限公司 Method and system for providing related searches
CN103914487B (en) * 2013-01-08 2016-12-28 邓寅生 The collection of document, the system identifying and associating
CN105930546B (en) * 2016-07-08 2020-04-03 北京北大英华科技有限公司 File association display method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1452097A (en) * 2002-04-12 2003-10-29 白建军 Interdynamic search method
CN105335360A (en) * 2014-05-26 2016-02-17 国际商业机器公司 Method and apparatus for generating document structure
CN106815256A (en) * 2015-12-01 2017-06-09 北京国双科技有限公司 Set up the method and device of laws and regulations bar fund incidence relation

Also Published As

Publication number Publication date
CN109101512A (en) 2018-12-28

Similar Documents

Publication Publication Date Title
CN111008265B (en) Enterprise information searching method and device
CN109101512B (en) Construction method of legal database, legal data query method and device
US8775442B2 (en) Semantic search using a single-source semantic model
CN103177075B (en) The detection of Knowledge based engineering entity and disambiguation
CN109522480B (en) Information recommendation method and device, electronic equipment and storage medium
US20130013616A1 (en) Systems and Methods for Natural Language Searching of Structured Data
US20110288956A1 (en) Using model information groups in searching
US8977625B2 (en) Inference indexing
TWI710917B (en) Data processing method and device
WO2018121153A1 (en) Written judgment retrieval method and device
TW201546633A (en) Method and Apparatus of Matching Text Information and Pushing a Business Object
US10127304B1 (en) Analysis and visualization tool with combined processing of structured and unstructured service event data
CN110795524B (en) Main data mapping processing method and device, computer equipment and storage medium
CN111125086B (en) Method, device, storage medium and processor for acquiring data resources
US20130339369A1 (en) Search Method and Apparatus
US20240070209A1 (en) Method and system for providing alternative result for an online search previously with no result
CN116737915B (en) Semantic retrieval method, device, equipment and storage medium based on knowledge graph
CN104239570B (en) The searching method and device of paper
US20190213208A1 (en) Interactive patent visualization systems and methods
US20180260473A1 (en) Full text retrieving and matching method and system based on lucene custom lexicon
WO2015084757A1 (en) Systems and methods for processing data stored in a database
CN101836209A (en) System and method for managing information map
US9336311B1 (en) Determining the relevancy of entities
Göb Discussion of “Reliability Meets Big Data: Opportunities and Challenges”
CN108121712B (en) Keyword storage method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100080 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant