Facility database, facility data generation device, facility data generation method, facility data generation program, search device, search method, and search program
The graph database model for facility information management addresses the inefficiencies of RDB by enabling easy updates and accurate search results through a structure of facility identifiers and attribute nodes, ensuring consistent and relevant information provision.
Patent Information
- Application Number
- JP2023046490
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-23
- Publication Date
- 2024-10-04
AI Technical Summary
Conventional RDB format databases for facilities require time-consuming updates due to changes in business hours, addresses, and name changes, and struggle with inconsistent information from multiple sources, making it difficult to provide accurate and relevant search results.
A facility database structure using a graph database model with first nodes for facility identifiers and second nodes for attributes, connected by edges, allowing easy addition, deletion, and updating of information, along with source information association to manage consistency and relevance.
Facility data can be easily updated and searched, providing accurate and user-relevant information by simplifying the process of adding, modifying, or deleting data, and ensuring consistency across multiple information sources.
Smart Images

Figure 2024135684000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a facility database containing facility information, an apparatus, method and program for generating the same, and a search apparatus, method and program for using the facility database. [Background technology]
[0002] Conventionally, databases relating to facilities have been created using a database called an RDB (Relational Database), which manages a plurality of data in a table format in association with each other. Such databases are used, for example, in navigation devices and the like when searching for a facility desired by a user. Such facility databases are created, for example, by extraction from various information relating to facilities. Patent Document 1 discloses a facility search system that presents search results that are as close to user expectations as possible. Specifically, the search system according to Patent Document 1 discloses a technique for calculating a score based on genre information of the searched facility and an evaluation value of a source disclosing information on the genre indicated by the genre information, and displaying the facilities in the order of the calculated scores. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2017-182170 A Summary of the Invention [Problem to be solved by the invention]
[0004] Incidentally, the database relating to the above-mentioned facilities needs to be updated as appropriate. For example, updates are required when the business hours, address, name, or closure of a facility change, but the above-mentioned RDB-format database has a problem in that such updates are time-consuming. In addition, changes may be temporary, and the process of restoring the information after a certain period of time is also time-consuming. In addition, when there are multiple sources for information about the same facility, the content of the information may differ or deviate from the information for each source. In such cases, the system may not be able to identify which information to present to the user performing a search.
[0005] Therefore, the present invention has been made in consideration of the above problems, and aims to provide a facility database that allows data to be updated relatively easily and can provide the user with information appropriate to the user searching even when the content of the information differs depending on the source at the time of the search, as well as a method of using the same in searches and a method of generating a facility database. [Means for solving the problem]
[0006] In order to solve the above problems, a database according to one embodiment of the present invention is used in a computer having a control unit and a memory unit, and has a data structure of a facility database stored in the memory unit, and for each facility, has a first node indicating a facility identifier that uniquely identifies the facility, a second node individually indicating each attribute of the facility, and a structure in which the first node and each of the second nodes are connected by edges, and the control unit is used in a process of identifying a second node corresponding to information input to the computer, and identifying and outputting at least one of the edge connected to the identified second node and another second node connected via the first node connected to the edge.
[0007] In the facility database, the second node may be associated with property information that describes attributes of the facility indicated by the second node, and the property information may be referred to when identifying the facility by the control unit.
[0008] In the facility database, when attribute information of a facility is acquired by the control unit, the attribute information may be added as a new second node by connecting it to the first node via an edge.
[0009] In the facility database, when a new second node has attributes that overlap with attributes of any one of the existing second nodes, the control unit may be capable of invalidating either one of the second nodes.
[0010] In the facility database, an edge may be associated with information indicating a valid date and time of a second node to which the edge is connected, and the control unit may specify a second node connected to the edge within the valid date and time.
[0011] In order to solve the above problems, a facility data generation device according to one embodiment of the present invention may include an acquisition unit that acquires facility listing information including facility information, an extraction unit that extracts attributes related to the facility from the facility listing information, a generation unit that assigns a facility identifier to the facility to make it a first node, and for each attribute extracted by the extraction unit, makes a second node, connects the first node and the second node with an edge, thereby generating facility data indicating the facility, and a registration unit that registers the facility data in a facility database.
[0012] In addition, in order to solve the above problem, a facility data generating method according to one embodiment of the present invention may include a computer executing an acquisition step of acquiring facility listing information including facility information, an extraction step of extracting attributes related to the facility from the facility listing information, a generation step of assigning a facility identifier to the facility to make it a first node, making a second node for each attribute extracted in the extraction step, connecting the first node and the second node with an edge to generate facility data indicating the facility, and a registration step of registering the facility data in a facility database.
[0013] In addition, in order to solve the above problems, a facility data generation program according to one embodiment of the present invention may be configured to cause a computer to realize an acquisition function for acquiring facility listing information including facility information, an extraction function for extracting attributes related to the facility from the facility listing information, a generation function for assigning a facility identifier to the facility to make it a first node, and for each attribute extracted by the extraction function to make a second node, by connecting the first node and the second node with an edge, thereby generating facility data indicating the facility, and a registration function for registering the facility data in a facility database.
[0014] In addition, in the above facility data generation device, the facility listing information may include source information indicating a source, and the generation unit may generate facility data by associating the source of the facility listing information, from which attributes indicated by the second node have been extracted, with the second node as property information.
[0015] In addition, in the above-mentioned facility data generation device, the facility listing information includes source information indicating a source, and the extraction unit may extract, for the same facility, from multiple different facility listing information, overlapping attributes related to the facility from the facility listing information including the more reliable source information, depending on the reliability of the source information.
[0016] The facility data generating device may further include a receiving unit that receives use information indicating a use for which the facility database is to be used, and the extracting unit may extract attributes from the facility information according to the use.
[0017] In addition, in order to solve the above problem, a search device according to one embodiment of the present invention may include, for each facility, a first node indicating a facility identifier that uniquely identifies the facility, a second node indicating each attribute of the facility individually and holding source information indicating at least the source of the information indicating the attribute as property information, a memory unit that stores a facility database including facility data having a structure in which the first node and each of the second nodes are connected by edges, a first reception unit that receives a query, a second reception unit that receives usage information indicating a usage, an attribute of the facility data corresponding to the query, and when there are multiple second nodes having the same attribute type but different content, a search unit that searches for a second node according to the usage information, and an output unit that outputs information of the second node searched by the search unit.
[0018] In addition, in order to solve the above problem, a search method according to one embodiment of the present invention may include a computer that can access a memory unit that stores a facility database including a first node indicating, for each facility, a facility identifier that uniquely identifies the facility, a second node that indicates each attribute of the facility individually and holds source information indicating at least the source of the information indicating the attribute as property information, and facility data having a structure in which the first node and each of the second nodes are connected by edges, and the computer may execute the following steps: a first reception step of receiving a query, a second reception step of receiving purpose information indicating a purpose, a search step of searching for a second node according to the purpose information when there are multiple second nodes having the same attribute type but different content, which are attributes of the facility data corresponding to the query, and an output step of outputting information of the second node searched for in the search step.
[0019] In addition, in order to solve the above problem, a search program according to one embodiment of the present invention may be implemented in a computer that can access a memory unit that stores a facility database including facility data having a structure in which the first and second nodes are connected by edges, the computer having the following capabilities: a first reception function for receiving a query; a second reception function for receiving usage information indicating a usage; an attribute of the facility data corresponding to the query, and when there are multiple second nodes having the same attribute type but different content, the second reception function for receiving a query; and an output function for outputting information of the second node searched for by the search function. Effect of the Invention
[0020] A facility database according to one embodiment of the present invention has a facility identifier indicating a facility as a first node, and attribute information of the facility is set as a second node in the first node, and the first and second nodes are connected by edges to form a database.This allows facility data to be updated simply by adding a second node, and unnecessary information can be prevented from being searched by simply deleting or disabling unnecessary second nodes, thereby providing an easily updated facility database. [Brief description of the drawings]
[0021] [Figure 1] FIG. 2 is a block diagram showing an example of the configuration of a search device. [Diagram 2] FIG. 2 is a data conceptual diagram showing an example of a data structure of a facility database. [Diagram 3] 1 is a first flowchart showing a search process by a search device using a facility database. [Figure 4] 11 is a second flowchart showing a search process by the search device using the facility database. [Diagram 5] FIG. 2 is a block diagram showing an example of the configuration of a generating device. [Figure 6]1 is a first flowchart showing a facility database generation process. [Figure 7] 13 is a second flowchart showing the facility database generation process. [Figure 8] 13 is a third flowchart showing the facility database generation process. [Figure 9] 13A is a block diagram showing another example of the configuration of a search device, and FIG. 13B is a block diagram showing another example of the configuration of a generation device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0022] Hereinafter, a search device according to an embodiment of the present invention will be described in detail with reference to the drawings.
[0023] <Embodiment 1> <Configuration> A facility database according to one embodiment of the present invention is used in a computer (see FIG. 1) equipped with a control unit (see 105 in FIG. 1) and a memory unit (see 104 in FIG. 1), and has a data structure of the facility database stored in the memory unit, and has a structure in which, for each facility, a first node (see 201 in FIG. 2) indicating a facility identifier that uniquely identifies the facility, second nodes (202a to 202h in FIG. 2) individually indicating each attribute of the facility, and each of the first and second nodes is connected by an edge (204a to 204h in FIG. 2), and the control unit is used in a process of identifying a second node corresponding to information input to the computer, and identifying and outputting at least one of the edge connected to the identified second node and another second node connected via the first node connected to the edge.
[0024] In the present embodiment 1, a facility database and a search by a search device using the facility database will be described below.
[0025] 1 is a block diagram showing an example of the configuration of a search device 100. As shown in FIG. 1, the search device 100 includes a communication unit 101, an input unit 102, an output unit 103, a storage unit 104, and a CPU 105.
[0026] The search device 100 is a computer system realized by a server device, a PC, etc., but is not limited thereto, and may be realized by a mobile terminal such as a smartphone, a tablet terminal, etc. As an example, the search device 100 is an information processing device that receives a query indicating the content to be searched from a user, refers to a facility database, and provides a search result.
[0027] The communication unit 101 has a function of transmitting and receiving information to and from other devices through wired or wireless communication. The communication unit 101 may receive, for example, information indicating a query to be searched from an external device (for example, a user's terminal) and transmit it to the CPU 105. Alternatively, the communication unit 101 may receive, for example, a query to be searched and purpose information indicating the purpose of the search from an external device (for example, a user's terminal) and transmit it to the CPU 105. Here, the purpose information is information indicating the purpose of the search and the criteria for the search results to be obtained, and may be information on a preferred source, for example. Here, the information on the preferred source may specify the name of the source or the type of source (for example, newspaper, magazine, web, etc.). The use information may be, for example, information indicating that the information is for a person requiring care, information specialized for a specific company, individual, group, or corporation, information excluding a specific company, individual, group, or corporation, information indicating whether the information is for an electric vehicle or a normal vehicle, information indicating a specific period, etc. In other words, the use information may be information indicating detailed conditions related to the search.
[0028] The input unit 102 has a function of accepting input from a user of the search device 100 and transmitting it to the CPU 105. The input unit 102 can be realized, for example, by hardware keys provided in the search device 100, or soft keys such as a touch panel or touch keys. Note that the input to the input unit 102 may be a voice input, in which case the input unit 102 is realized by a microphone. The input unit 102 may, for example, accept input of information related to a query and transmit it to the CPU 105. Alternatively, the input unit 102 may, for example, accept input of usage information and transmit it to the CPU 105.
[0029] The output unit 103 has a function of outputting instructed data according to an instruction from the CPU 105. The output unit 103 may output, for example, a search result searched by the CPU 105 in response to a query from a user. The output of information by the output unit 103 may be output in the form of characters or images on a monitor (display device) or the like that is attached to or connected to the search device 100, may be output as sound from a speaker that is attached to or connected to the search device 100, or may be output by communication to an external device via the communication unit 110.
[0030] The storage unit 104 is a recording medium that stores various programs and various data required for the operation of the search device 100. The storage unit 104 is realized by, for example, a hard disc drive (HDD), a solid state drive (SSD), a flash memory, or the like.
[0031] The storage unit 104 stores a facility database 141. Here, the facility database 141 will be described. Fig. 2 is a conceptual data diagram showing a data structure for one facility included in the facility database 141. Therefore, the facility database 141 is a collection of facility data shown in Fig. 2.
[0032] 2, the facility data is data in a form in which a first node 201 and a second node 202 are connected by an edge 204. The facility database may be a database in a form called a graph database.
[0033] The first node 201 has information on a facility ID, which is an identifier uniquely assigned to each facility. The facility ID may have any configuration, and may be a combination of letters and numbers.
[0034] The second nodes 202 (202a to 202h in FIG. 2; when no distinction is made, simply referred to as second nodes 202) have information indicating the attributes of the facility to which the facility ID of the first node 201 is assigned. Here, the facility attribute means information indicating one of the characteristics of the facility, and may be, for example, the facility name, address, telephone number, location coordinates, business hours, facility type, profile, etc., but is not limited to these. There may be multiple nodes with the same type of attribute in the second node 202. That is, for example, there may be multiple second nodes 202 for addresses. This may occur when the sources from which the information of each second node 202 is extracted are different.
[0035] The first node 201 and each second node 202 are connected by edges 204 (204a to 204h. When no distinction is made, they will be simply referred to as edges 204). Being connected by edges 204 indicates that information of each second node is associated with the first node 201.
[0036] Each second node 202 is associated with property information 203 (203a to 203h). The property information 203 is information related to the corresponding second node, and in FIG. 2, may include a node ID for uniquely identifying the second node 202 and source information indicating the information source from which the second node 202 was extracted. The property information 203 may include information other than the node ID and source information, and as an example, may include flag information indicating whether the information of the corresponding second node 202 is still valid or not, and may be set to be a search target if it is valid and not a search target if it is not valid. The property information 203 may also include information indicating the validity period of the information indicated by the corresponding second node 202, and may be set to be a search target if the date and time of the search is included in the validity period, and to be not a search target for the corresponding second information if the date and time of the search is outside the validity period. The property information 203 may also include date and time information indicating when the information of the corresponding second node was registered as facility data. In Fig. 2, the source information is indicated by a source ID, but this may be a source name. When a source ID is registered as shown in Fig. 2, a table in which source IDs and source names are associated with each other may be separately held in the storage unit 104.
[0037] 2, second nodes 202a to 202h are connected by edges 204a to 204h, respectively, to a first node 201. Furthermore, property information 203a to 203h are associated with the second nodes 202a to 202h, respectively.
[0038] The facility database 141 holds facility data with the configuration shown in FIG. 2 for each facility.
[0039] The above is an example of the configuration of the facility database 141. Since each piece of facility data has the structure shown in Fig. 2, it is easy to modify or add facility data. That is, when modifying part of the facility data, it is only necessary to modify the second node 202 that holds the target information, and when adding new information, it is possible to add the information simply by adding a new second node 202 and connecting it to the first node 201 with a new edge 204. Also, when deleting information, it is only necessary to delete or invalidate only the corresponding second node 202, making it very simple and easy to update the facility data.
[0040] Although not shown, the storage unit 104 shown in FIG. 1 stores a search program that refers to the facility database 141 based on a received query, performs a search, and outputs search results.
[0041] CPU 105 is a processor that executes processes to be executed by search device 100, using various programs and various data stored in storage unit 104. That is, CPU 105 executes a search and outputs search results based on a query received by communication unit 101 or input unit 102. At this time, if the search results cannot be uniquely identified, CPU 105 may search for required information based on usage information.
[0042] The CPU 105 may function as a first reception section, a second reception section, a search section, and an output section.
[0043] The first reception unit receives a search query from a user, the query being received by the communication unit 101 or the query being received by the input unit 102.
[0044] The second reception unit receives input of purpose information for a search from a user. The second reception unit receives the purpose information received by the communication unit 101 or the purpose information received by the input unit .
[0045] The search unit searches the facility database 141 based on the query received by the first reception unit. In addition, the search unit narrows down or prioritizes search results using the purpose information as necessary. The search unit transmits the search results obtained by the search to the output unit.
[0046] The output unit causes the output unit 103 to output the transmitted search results.
[0047] The above is an example of the configuration of the search device 100.
[0048] <Example of search device operation> Now, the search process performed by the search device 100 using the facility database 141 will be described.
[0049] FIG. 3 is a flowchart showing an example of a basic operation of the search process by the search device 100. As shown in FIG.
[0050] 3, the first reception unit of the CPU 105 receives a query (step S301). The first reception unit transmits the received query to the search unit.
[0051] The search unit searches the facility database 141 for facility data having the second node 202 corresponding to the received query. Then, the search unit identifies the first node 201 to which the edge 204 to which the searched and identified second node 202 is connected is connected (step S303).
[0052] Then, the search unit identifies other second nodes 202 connected to the identified first node 201 (step S304). This allows the user to identify a facility having an attribute indicated by the query desired by the user, and also allows the search unit to search for other attributes of the facility. The search unit transmits the search results to the output unit.
[0053] The output unit outputs the search results transmitted from the search unit to the output unit 103 (step S305), and ends the process.
[0054] In this way, the search device 100 can refer to the facility database 141, identify a second node corresponding to the query, identify a first node connected to the second node and another second node connected via the first node, and provide information desired by the user.
[0055] The above is an example of the basic search process performed by the search device 100 using the facility database 141.
[0056] Next, a further example of the search process will be described with reference to FIG.
[0057] Fig. 4 is a second flowchart showing another operation example of the search device 100. The flowchart shown in Fig. 4 differs from the first flowchart shown in Fig. 3 in that when there are multiple attributes of the same type for a facility searched for in the facility database 141, it narrows down which one to provide to the user.
[0058] 4, the first reception unit of the CPU 105 receives a query (step S401). The first reception unit transmits the received query to the search unit.
[0059] Next, the second reception unit of CPU 105 receives the purpose information (step S402).
[0060] The search unit searches the facility database 141 for facility data having the second node 202 corresponding to the received query (step S403), and then identifies the first node 201 to which the edge 204 to which the searched and identified second node 202 is connected is connected (step S404).
[0061] Then, the search unit identifies another second node 202 connected to the identified first node 201 (step S405).
[0062] The search unit determines whether or not there are multiple second nodes 202 with the same attribute type among the identified other second nodes 202 (step S406). For example, there may be multiple address nodes or multiple business hours nodes.
[0063] When there are multiple second nodes 202 with the same attribute type (YES in step S406), one second node 202 may be identified from among the second nodes 202 with the same attribute types according to the usage information accepted by the second accepting unit (step S407). More specifically, when there are multiple second nodes 202 of the same type, the property information 203 associated with the second node 202 is referenced to identify the second node 202 having the property information 203 that corresponds to the usage information.
[0064] If there are not multiple second nodes 202 with the same attribute type (NO in step S406), the process proceeds to step S408 in a state where one second node 202 is identified for one type.
[0065] Then, the search section transmits the obtained search results to the output section, and the output section outputs the search results (step S408), and the process ends.
[0066] <Summary> As described above, in the facility database according to the first embodiment, when part of the facility data is modified, only the second node 202 that holds the target information needs to be modified, and when new information is added, the information can be added simply by adding a new second node 202 and connecting it to the first node 201 with a new edge 204. In addition, when information is deleted, only the corresponding second node 202 needs to be deleted or disabled, so that updating of facility data is very simple and easy. That is, in the case of the conventional RFB format, it is necessary to update the entire table in order to modify facility data, which requires time and effort, whereas the facility database according to the first embodiment does not require such time and effort. That is, the facility database according to the first embodiment allows processing such as adding, updating, modifying, and deleting data to be performed more easily than a database in the RDB format.
[0067] In addition, the search device 100 can provide search results for a user's query by identifying a second node corresponding to the query, identifying a first node connected to the second node, and identifying other second nodes connected to the identified first node via edges.
[0068] <Embodiment 2> In the above-mentioned embodiment 1, there has been described the facility database 141 and the search process using the facility database 141. In the present embodiment 2, a method for generating the facility database 141 and a generating device for generating the facility database 141 will be described.
[0069] FIG. 5 is a block diagram showing an example of the configuration of the generating device 200. As shown in FIG.
[0070] As shown in FIG. 5, the generating device 200 includes a communication unit 211, an input unit 212, an output unit 213, a storage unit 214, and a CPU 215.
[0071] The generating device 200 is a computer system realized by a server device, a PC, etc., but is not limited thereto, and may be realized by a smartphone, a tablet terminal, a mobile terminal, etc. As an example, the generating device 200 is an information processing device that extracts information related to a facility from facility listing information including information related to the facility, and generates the facility database 141 shown in the first embodiment.
[0072] The communication unit 211 has a function of transmitting and receiving information to and from other devices through wired or wireless communication. The communication unit 211 may receive facility listing information from an external device (e.g., a user's terminal) and transmit it to the CPU 215. Alternatively, the communication unit 211 may receive, for example, from an external device (e.g., a user's terminal) purpose information indicating the purpose of use of the facility database 141 generated when the facility database 141 is generated, and transmit it to the CPU 215.
[0073] The input unit 212 has a function of accepting input from a user of the generating device 200 and transmitting it to the CPU 215. The input unit 212 can be realized, for example, by hardware keys provided in the generating device 200, or soft keys such as a touch panel or touch keys. Note that the input to the input unit 212 may be input by voice, in which case the input unit 212 is realized by a microphone. The input unit 212 may accept input of facility listing information and transmit it to the CPU 105.
[0074] The output unit 213 has a function of outputting instructed data in accordance with an instruction from the CPU 215. The output unit 213 may transmit, for example, the facility database 141 generated by the CPU 215 to an external device.
[0075] The storage unit 214 is a recording medium that stores various programs and various data required for the operation of the generating device 200. The storage unit 214 is realized by, for example, a hard disc drive (HDD), a solid state drive (SSD), a flash memory, or the like.
[0076] The storage unit 214 may store the generated facility database 141. The structure of the facility database 141 is similar to that of the facility database 141 described in the first embodiment.
[0077] Although not shown, the memory unit 214 shown in FIG. 5 stores a generation program for extracting information indicating attributes related to the facility from the received facility listing information, generating facility data with each of the extracted information as a second node 202, and generating the facility database 141 or updating the facility database 141.
[0078] The CPU 215 is a processor that executes the processes to be executed by the generating device 200 using the various programs and various data stored in the storage unit 214 .
[0079] The CPU 215 may function as an acquisition unit, an extraction unit, a generation unit, and a registration unit.
[0080] The acquisition unit acquires facility posting information in which information about facilities is posted. For example, the acquisition unit acquires facility posting information received via the communication unit 211 or facility posting information input via the input unit 212. The acquisition unit transmits the acquired facility posting information to the extraction unit. In addition, when generating the facility database 141, the acquisition unit may acquire use information indicating the use of the facility database 141 and transmit it to the generation unit. Here, as in the first embodiment, the use information may be, for example, information indicating that the facility is for a person requiring care, information specialized for a specific company, individual, group, or corporation, information excluding a specific company, individual, group, or corporation, information indicating whether the facility is for an electric vehicle or a normal vehicle, or information indicating a specific period. In the case of use information for a person requiring care, the generation device 200 can build the facility database 141 by giving priority to facility information suitable for a person requiring care. In addition, in the case of an electric vehicle, for example, the facility database 141 can be built by giving priority to facilities having charging equipment over gas stations. Also, in the case of a specific period, for example, the facility database 141 can be constructed by giving priority to facility listing information describing the specific period.
[0081] Alternatively, the use information may be information indicating a device in which the facility database 141 is operated, for example, information indicating that the facility database 141 is for local use or for a center. Here, the term "local use" indicates that the search using the facility database is for a device alone, that is, for a device that is performed in a stand-alone type. In contrast, the term "center use" indicates that the search using the facility database is performed in a specific device (for example, a center device) that can communicate with the device in which the user performs the search and receives only a query. For example, in a navigation device, the facility database 141 may be mounted on the navigation device and may be specified to perform a search on the navigation device alone, or may be specified to transmit the query to a center device that holds the facility database 141 via communication when a query is input to the navigation device, and to perform a search in the center device, and to transmit the search results to the navigation device and display the search results. The facility database 141 for the center can be updated frequently, whereas the facility database 141 for local use tends to be updated less frequently than the center device. Therefore, the local facility database 141 can be constructed with a priority on permanent information as facility information, while the center database can be constructed with a priority on the latest information. For example, if there is facility information indicating that a facility has temporarily moved for interior construction work, this is temporary and not permanent information, and therefore is not suitable for use in the local facility database 141, which is updated infrequently, whereas the facility database 141 can be constructed with the information being suitable for use in the center facility database 141, which is updated more frequently.
[0082] That is, the use information may be information indicating environmental conditions searched for using the facility database 141.
[0083] The extraction unit extracts attributes (information) related to the facility from the facility listing information acquired by the acquisition unit. The extraction unit may analyze the facility listing information using morphological analysis or the like to extract the attributes related to the facility. The extraction unit transmits the extracted facility-related attributes to the generation unit. The extraction unit may also transmit source information indicating the source as property information associated with the attributes to the generation unit together with the attributes. The source information may be the type of medium providing the facility listing information, a unique name of the medium, or, if the facility listing information is aimed at a specific readership, information indicating the characteristics of the readership.
[0084] The generating unit generates facility data based on the attributes related to the facility transmitted from the extracting unit. Specifically, the generating unit assigns a facility identifier to the facility shown in the facility listing information. The facility identifier may be composed of a combination of numbers and letters, and is assigned in a predetermined format that is unused at the time of assignment. The generating unit sets the facility identifier to the first node. The generating unit also sets each of the attributes related to the facility transmitted from the extracting unit to the second node. At this time, the generating unit may associate the source information transmitted from the extracting unit with the second node as property information, and may further include a second node identifier that can uniquely identify the second node in the property information. Then, the generating unit connects the generated first node and each of the second nodes with an edge to generate facility data. At this time, if facility data for the facility corresponding to the facility listing information is registered in the constructed facility database 141, the generating unit does not generate a facility identifier, but identifies and extracts the facility identifier (first node) of the facility data registered in the facility database 141. Then, each attribute extracted from the facility listing information is set to a second node, and the set second node is connected to the extracted first node by an edge. Furthermore, when the generation unit receives use information from the acquisition unit, the generation unit may select facility listing information to be used for generating facility database 141 according to the use information, generate facility data by prioritizing the attributes extracted from the selected facility listing information, and register the facility data in facility database 141. For this purpose, the generation unit or storage unit 214 may hold priority information that sets a priority of the source for each use information to be considered, and the attributes to be used for the facility data may be determined according to the priority corresponding to the use information, and the second node of the facility data may be set.
[0085] The registration unit registers in the facility database 141 the facility data generated by the generation unit, or the facility data to which a second node has been newly added.
[0086] <Example of the generator operation> 6 to 8 are flowcharts showing an example of the operation of the generating device. Fig. 6 is a first flowchart showing the basic operation of the generating device in generating facility data.
[0087] 6, the acquisition unit of the CPU 215 acquires facility listing information via the communication unit 211 or the input unit 212 (step S601). The acquisition unit transmits the acquired facility listing information to the extraction unit.
[0088] The extraction unit extracts attributes related to the facility from the transmitted facility listing information (step S602). The extraction unit transmits each of the extracted attributes to the generation unit.
[0089] The generating unit assigns a facility identifier to the facility listed in the facility listing information, and sets it in the first node (step S603).
[0090] The generating unit sets, in the second node, each piece of information indicating the attributes extracted from the facility listing information transmitted from the extracting unit (step S604).
[0091] Then, the generation unit connects the set first node and each of the second nodes with edges to generate facility data (step S605).
[0092] The registration unit registers the facility data generated by the generation unit in the facility database 141 (step S606), and ends the process. This makes it possible to generate a database of facilities from scratch using the facility listing information.
[0093] Fig. 7 is a second flowchart showing an example of operation including an operation performed by the generating unit when adding facility information to the facility database 141. The flowchart shown in Fig. 7 differs from the flowchart shown in Fig. 6 in that a process is added for the case where the facility shown in the facility listing information has already been registered.
[0094] In FIG. 7, the processes in steps S601 to S606 are similar to those shown in FIG. 6, and therefore the description thereof will be omitted.
[0095] In step S602, after the extraction unit extracts attributes related to the facility from the facility listing information, the generation unit judges whether facility data for the facility has already been registered (step S701). This judgment can be made, for example, based on whether facility data having a second node including an attribute that correlates with the attribute extracted by the extraction unit has been registered. In other words, the judgment may be made based on whether facility data having a second node that correlates with a predetermined number or more of attributes extracted by the extraction unit is present, and it may be determined that facility data for the facility in the facility listing information has already been registered in the facility database 141 when the facility names match or are correlated to a certain degree or more.
[0096] If the facility indicated by the facility listing information has not yet been registered in the facility database 141 (NO in step S701), the process proceeds to step S603, and as described with reference to FIG. 6, the CPU 215 generates facility data and registers it in the facility database 141 (steps S603 to S606).
[0097] If the facility indicated by the facility listing information has already been registered in the facility database 141 (YES in step S701), the generation unit sets each of the attributes extracted by the extraction unit to the second node (step S702). The generation unit then updates the facility data by connecting each of the generated second nodes to the first node of the facility ID assigned to the facility indicated by the facility listing information with an edge (step S703). At this time, the generation unit may associate information indicating the source of the facility listing information as property information with each second node. The updated facility data is then registered (updated) in the facility database 141, and the process ends (step S703).
[0098] FIG. 8 is a third flowchart showing a method for generating a facility database by the generating device 200, and is a flowchart showing a method for generating a facility database according to an application.
[0099] 8, the acquisition unit of the CPU 215 acquires a plurality of different facility listing information for the same facility (step S801). The acquisition unit transmits the acquired facility listing information to the extraction unit.
[0100] The acquisition unit also receives use information indicating the use of the facility database 141 (step S802). The acquisition unit transmits the acquired use information to the generation unit.
[0101] The extraction unit extracts facility-related attributes from each of the transmitted facility listings so that the source of each can be determined, that is, in a manner in which the source information is associated with each of the facility listings as property information (step S803).
[0102] The generating unit assigns a facility identifier to the facility and sets it in the first node (step S804).
[0103] The generating unit determines whether there is overlap in the attribute type for the attributes (information) extracted from the multiple facility listings (step S805). For example, when facility telephone numbers are extracted, if a first telephone number is extracted from a first facility listing and a second telephone number is extracted from a second facility listing different from the first facility listing, it is determined that there is overlap in the attribute type. In this case, the first telephone number may be the same as the second telephone number or may be different.
[0104] If there is no overlap in the attribute types (NO in step S805), the generation unit executes the processes in steps S604 to S606. The processes in steps S604 to S606 are the same as those described with reference to FIG.
[0105] On the other hand, if there is an overlap in the attribute types (YES in step S805), the generation unit selects one of the overlapping attribute types from the use information and the source of the facility listing information (step S806). The generation unit sets a priority to the source according to the use information, and selects one attribute to be registered as facility data according to the set priority. The priority of the source according to the use may be set in advance as a table and stored in the storage unit 214.
[0106] The generation unit sets the selected attribute to the second node (step S807), and generates facility data by connecting the set first node and each second node with an edge (step S808).
[0107] Then, the facility data is registered in the facility database 141 (step S809), and the process ends. The generating device 200 executes the process shown in Fig. 8 for a plurality of facilities to construct the facility database 141. Note that the facility database 141 generated or updated by the generating device 200 may be transmitted to an external device via the communication unit 211.
[0108] The generating device 200 constructs the facility database 141 according to the purpose information designated by the user, thereby generating and providing a facility database that can obtain search results that are favorable to the user.
[0109] If one wishes to delete any of the facility data in the facility database 141, one may specify the name or identifier of the facility and the information to be deleted, thereby deleting or invalidating the desired data.
[0110] <Summary> According to the generating device 200 of the second embodiment, facility attributes can be extracted from facility listing information, facility data can be generated, and the data can be registered in the facility database. Unlike data in RDB format, the facility database 141 does not need to be organized in a table format, and can be easily constructed. Furthermore, the generating device 200 can also construct a facility database with a structure suited to a user according to conditions that the user who uses the facility database places importance on. A facility database with a structure suited to a user means that it is easy to provide information that the user prefers in response to the user's search query, and it can be said that a personalized database can be provided.
[0111] <Supplementary Information> The search device and the generation device according to the above-described embodiment are not limited to the above-described embodiment, and may be realized by other methods. Various modifications will be described below.
[0112] (1) In the above embodiment, the search device 100 may be realized as a navigation device provided in a vehicle. That is, the search device 100 may be built into a navigation device mounted on a vehicle or the like, and when it is estimated that a road is closed, route guidance to a destination may be provided without using the road. Also, when the road closure is lifted, a route may be formulated with the unclosed road as one of the candidate roads to be used for route guidance.
[0113] Alternatively, the search device 100 may be a device that notifies a navigation device installed in a vehicle of the occurrence and lifting of a road closure through communication.
[0114] (2) In the above embodiment, the method of presenting the search result in response to the query in the search device and the method of generating or updating the facility database in the generating device are specified by the processor of the search device or the generating device executing a predetermined program or the like. However, this may be realized by a logic circuit (hardware) or a dedicated circuit formed in an integrated circuit (IC (Integrated Circuit) chip, LSI (Large Scale Integration)) in the device. Moreover, these circuits may be realized by one or more integrated circuits, and the functions of the multiple functional units shown in the above embodiment may be realized by one integrated circuit. The LSI may be called a VLSI, a super LSI, an ultra LSI, or the like depending on the degree of integration. That is, as shown in FIG. 9(a), the search device 100 may be composed of a communication circuit 101a, an input circuit 102a, an output circuit 103a, a memory circuit 104a, and a control circuit 105a, which correspond to the communication unit 101, the input unit 102, the output unit 103, the memory unit 104, and the CPU 105, respectively. Also, as shown in FIG. 9(b), the generating device 200 may be composed of a communication circuit 211a, an input circuit 212a, an output circuit 213a, a memory circuit 214a, and a control circuit 215a, which correspond to the communication unit 211, the input unit 212, the output unit 213, the memory unit 214, and the CPU 215, respectively.
[0115] The program may be recorded on a processor-readable recording medium, and the recording medium may be a "non-transient tangible medium" such as a tape, a disk, a card, a semiconductor memory, or a programmable logic circuit. The program may be supplied to the processor via any transmission medium capable of transmitting the program (such as a communication network or a broadcast wave). That is, for example, the program may be downloaded from a network and executed using an information processing device such as a smartphone. The present invention may also be realized in the form of a data signal embedded in a carrier wave, in which the program is embodied by electronic transmission.
[0116] The above program can be implemented using, for example, scripting languages such as ActionScript and JavaScript (registered trademark), and object-oriented programming languages such as Objective-C, Java (registered trademark), C++, Python, and R, but these languages are just examples.
[0117] (3) The various examples shown in the above embodiment may be combined as appropriate. Furthermore, the execution order of each operation shown in the flowchart may be changed or the operations may be executed in parallel as long as there is no contradiction in the result. [Explanation of symbols]
[0118] 100 Search device 101 Communications Department 102 Input section 103 Output section 104 Storage section 105 CPU (first reception unit, second reception unit, search unit, output unit) 141 Facility Database 200 generator 211 Communications Department 212 Input section 213 Output section 214 Storage section 215 CPU (acquisition unit, extraction unit, generation unit, registration unit)
Claims
1. Used in a computer having a control unit and a storage unit, A data structure of a facility database stored in the storage unit, For each facility, A first node indicating a facility identifier that uniquely identifies a facility; A second node individually indicating each attribute of the facility; The first node and the second node are connected to each other by an edge, The control unit is used in a process of identifying the second node corresponding to information input to the computer, and identifying and outputting at least one of an edge connected to the identified second node and another second node connected via a first node connected to the edge. Facility database.
2. The second node is associated with property information that describes an attribute of the facility indicated by the second node; The property information is referred to when the control unit specifies the property information.
2. The facility database of claim 1.
3. 2. The facility database according to claim 1, wherein when attribute information of the facility is acquired by the control unit, the attribute information is added as a new second node by connecting it to the first node via an edge.
4. The facility database according to claim 3 , wherein, when the new second node has an attribute that overlaps with any of the existing second nodes, the control unit is capable of invalidating any one of the second nodes.
5. The edge is associated with information indicating the effective date and time of the second node to which the edge is connected; The control unit identifies a second node connected to an edge within the validity date and time.
2. The facility database of claim 1.
6. An acquisition unit that acquires facility listing information including facility information; an extraction unit that extracts attributes related to the facility from the facility listing information; a generation unit that generates facility data indicating the facility by assigning a facility identifier to the facility to generate a first node, and a second node for each attribute extracted by the extraction unit, and connects the first node and the second node with an edge; a registration unit that registers the facility data in a facility database; A facility data generation device comprising:
7. The facility listing information includes source information indicating a source, The generating unit generates the facility data by associating, with the second node, a source of facility listing information from which an attribute indicated by the second node is extracted, as property information.
7. The facility data generating device according to claim 6.
8. The facility listing information includes source information indicating a source, The extraction unit extracts overlapping attributes among attributes related to the facility from a plurality of different facility listing information for the same facility according to the reliability of the source information from the facility listing information including the source information with a high reliability.
7. The facility data generating device according to claim 6.
9. a reception unit that receives use information indicating a use for which the facility database is to be used, The extraction unit extracts the attributes from the facility listing information according to the purpose.
7. The facility data generating device according to claim 6.
10. The computer An acquisition step of acquiring facility listing information including facility information; An extraction step of extracting attributes related to the facility from the facility listing information; a generating step of generating facility data indicating the facility by assigning a facility identifier to the facility to generate a first node, generating a second node for each attribute extracted in the extracting step, and connecting the first node and the second node with an edge; a registration step of registering the facility data in a facility database; A facility data generation method that performs the above.
11. On the computer, A function to obtain facility listing information including facility information; an extraction function for extracting attributes related to the facility from the facility listing information; a generation function that assigns a facility identifier to the facility to create a first node, creates a second node for each attribute extracted by the extraction function, and connects the first node and the second node with an edge to generate facility data indicating the facility; a registration function for registering the facility data in a facility database; A facility data generation program that makes this possible.
12. For each facility, A first node indicating a facility identifier that uniquely identifies a facility; a second node that indicates each of the attributes of the facility individually and holds, as property information, source information that indicates a source of information indicating at least the attributes; a storage unit configured to store a facility database including facility data having a structure in which the first node and each of the second nodes are connected by an edge; a first reception unit that receives a query; A second reception unit that receives purpose information indicating a purpose; a search unit that searches for a second node according to the usage information when there are a plurality of second nodes having the same attribute type but different contents, the second nodes being attributes of facility data corresponding to the query; an output unit that outputs information on the second node searched for by the search unit; A search device comprising:
13. a computer that can access a storage unit that stores a facility database including facility data having a structure in which a first node indicates, for each facility, a facility identifier that uniquely identifies the facility, a second node that indicates each attribute of the facility individually and holds source information indicating the source of at least the information indicating the attribute as property information, and the first node and each of the second nodes are connected by an edge; a first reception step of receiving a query; A second reception step of receiving purpose information indicating a purpose; a search step of searching for a second node according to the usage information when there are a plurality of second nodes having the same attribute type but different contents, the second nodes being attributes of facility data corresponding to the query; an output step of outputting information on the second node searched for in the search step; The search method to perform.
14. a computer that can access a storage unit that stores a facility database including facility data having a structure in which a first node indicates, for each facility, a facility identifier that uniquely identifies the facility, a second node that indicates each attribute of the facility individually and holds source information that indicates the source of at least the information indicating the attribute as property information, and the first node and each of the second nodes are connected by an edge; a first reception function for receiving a query; A second reception function that receives purpose information indicating a purpose; a search function for searching for a second node according to the usage information when there are a plurality of second nodes having the same attribute type but different contents, the second nodes being attributes of facility data corresponding to the query; an output function that outputs information on the second node searched by the search function; A search program that makes this possible.
Citation Information
Patent Citations
Search system, search method, search program, and recording medium
JP2017182170A
