Method and system for search structured data from a natural language search request

Information

  • Patent Grant
  • 8762384
  • Patent Number
    8,762,384
  • Date Filed
    Thursday, August 19, 2010
    16 years ago
  • Date Issued
    Tuesday, June 24, 2014
    12 years ago
  • Inventors
  • Original Assignees
  • Examiners
    • Syed; Farhan
    Agents
    • Blakely, Sokoloff, Taylor & Zafman LLP
Abstract
A method and system for performing a semantic search on structured data. An unstructured search query is received from a requestor. The query is evaluated within a computer to identify a best structured request based on the unstructured search query. The selected structured request is applied to a set of structured data. The result of the application of the structured request is then returned to the requestor.
Description
FIELD

Embodiments of the invention relate to searching of structured data. More specifically, embodiments relate to performing an attributed semantic search on structured data.


BACKGROUND

With the vast amount of data, including business data retained for an enterprise, efficient searching techniques are required to render the data useable. Some search engines permit the searching of structured sources, such as business objects with different elements and groups. Other search engines are suitable for searching unstructured sources, such as documents in a file system or content on the Internet. To search structured sources, it is necessary to provide a recognized attribute and a corresponding attribute value. For example, “purchase order number” and a value may return business object instances having the attribute “purchase order number” and the specified value or range of values. The structure of the request required to form the search tends to be quite rigid and not conducive to the use of natural language, synonyms, acronyms, etc. This rigidity requires a particular skill to effectively search structured data to achieve meaningful results. It would be desirable to reduce this rigidity to enhance usability and reduce the skill required to manipulate and retrieve the desired data from structured sources.


SUMMARY

A method and system for performing a semantics search on structured data is disclosed. An unstructured search query is received from a requestor. The query is evaluated within a computer to identify a best structured request based on the unstructured search query. The selected structured request is applied to a set of structured data. The result of the application of the structured request is then returned to the requestor.


The above summary does not include an exhaustive list of all aspects of the present invention. It is contemplated that the invention includes all systems and methods that can be practiced from all suitable combinations of the various aspects summarized above, as well as those disclosed in the Detailed Description below and particularly pointed out in the claims filed with the application. Such combinations have particular advantages not specifically recited in the above summary.





BRIEF DESCRIPTION OF THE DRAWINGS

The embodiments of the invention are illustrated by way of example and not by way of limitation in the figures of the accompanying drawings in which like references indicate similar elements. It should be noted that references to an or “one” embodiment of the invention in this disclosure are not necessarily to the same embodiment, and they mean at least one.



FIG. 1 is a block diagram of a system of one embodiment of the invention.



FIG. 2A and 2B are flow diagrams of operation in one embodiment of the invention.





DETAILED DESCRIPTION

Several embodiments of the invention with reference to the appended drawings are now explained. Whenever the shapes, relative positions and other aspects of the parts described in the embodiments are not clearly defined, the scope of the invention is not limited only to the parts shown, which are meant merely for the purpose of illustration.



FIG. 1 is a block diagram of a system of one embodiment of the invention. A processor 102 is connected to a display 104 and a persistent storage unit, such as database 106. Database 106 includes an index 154 of input attributes and input attribute combinations may be used to form a structured search. Persistent storage 106 also includes a set of structured data 150 to be searched using a structured request. Persistent storage 106 may also include a map 152 which maps synonyms, acronyms, and semantically related terms to input attributes. Such terms are referred to here as semantic attributes. A mapper 112 in processor 102 may add relations between semantic attributes and input attributes to the map 152 in persistent storage 106. In some embodiments, map 152 may include contextual relations. For example, “order” may be mapped to an input attribute “purchase order number,” but if the request is from the sales department, “order number” may automatically map to, e.g., “sales order number.”


In one embodiment, the processor 102 generates a graphical user interface (GUI) including a search query window 140 on the display 104. In some embodiments, the query window may accept an unstructured query to be directed at structured data 150. Processor 102 receives the unstructured query via the query window 140 of the GUI.


As previously noted, to search structured sources, it is necessary to provide a recognized attribute and a corresponding attribute value. Structured requests have a rigid format and are not conducive to the use of natural language, synonyms, acronyms, etc. To permit the searching of structured data using an unstructured search query, processor 102 includes a query analyzer 110. An unstructured search query received in the processor 102 is passed to query analyzer 110. Query analyzer 110 parses the query in semantic layer 120 to identify the individual search terms entered in the unstructured query. Semantic layer 120 includes a comparison engine 132 which compares the individual search terms identified with the possible input attributes associated with the structured data 150. To the extent that one or more input attributes are found, those attributes may be passed to the indexer 122 which will create a value to use in accessing index 154 as described in more detail below.


For those search terms, which are not input attributes, a lookup table (LUT) 134 is provided in semantic layer 120 to permit input attributes corresponding to the semantic attributes to be found. LUT 134 includes information from map 152 to allow the rapid translation of semantic attributes to input attributes without directly accessing the map 152. In an alternative embodiment, semantic layer 120 may query the map 152 directly for each of the semantic attributes, to identify corresponding input attributes.


The corresponding input attributes are passed to indexer 122. In one embodiment, indexer 122 includes a hash engine 136, which individually hashes each input attribute existing in or derived from the search query by semantic layer 120. The individual hash values of each of the individual input attributes are then added by adder 138 within indexer 122. This sum of the hash value is then used to search the index 154 to identify the best structured search request corresponding to the unstructured search query received through query window 140. By using the sum of the hash values as the index value, dependence on order of the search terms is eliminated. The request found through index 154 may then be applied to the structured data 150, and the results returned for display on display 104.


However, to the extent that it is not possible to resolve one or more search terms or other ambiguities that exist in identification of the structured query, suggestion engine 114 may generate a window 142 on display 104 requesting the user clarify a desired term attribute or a complete query. Based on the response to the suggestion, mapper 112 may add additional relations to map 152. These relations may also be propagated to LUT 134. This effectively allows the system to learn additional semantic attributes over time. In some embodiments, a user may be permitted to change the mapping of a semantic attribute. For example, if order is mapped purchase order a user may be allowed to remap it to, e.g., sales order. Such remapping may be made user specific or global depending on the rights of the requesting user.



FIG. 2A is a flow diagram of index creation in one embodiment of the invention. At block 202, the possible input attributes for the structured data are individually hashed. At block 204 the hash values for each of the input attributes are stored in an index. At block 206, for all combinations of possible input attributes, the sum of the hash values of the constituents are stored in the index. Thus, for example, in a system with three possible structured input attributes the index would include the hash value for the three attributes individually, the sum of hash values for each combination of pairs of attributes, and the sum of the hash values of all three attributes. In this simple example there would be seven values in the index corresponding to seven different structured requests. Because the sum of the hash values is used rather than hashing the string, the order of the appearance of the search terms has no effect on the index value. At block 208, semantic equivalents of the input attributes are mapped to the corresponding attribute and a lookup table is created to facilitate rapid evaluation of semantic attributes. In one embodiment, indexing and semantic mapping occurs primarily at design/customization time. Further indexing and mapping may occur if request definitions or semantic definitions are expanded or modified on an organizational level. Additionally, as described below with reference to FIG. 2B, additional mappings may be done at an individual basis during run time.



FIG. 2B is a flow diagram of runtime operation in one embodiment of the invention. At block 210, a determination is made if the query has been received. If a query has been received it is evaluated to identify if it contains input attributes at decision block 212. If input attributes are contained, those attributes are hashed at block 214.


If there are no input attributes or once input attributes have been identified and hashed, a determination is made at decision block 216 whether semantic attributes exist within the search query. If semantic attributes are identified within the search query, these attributes are applied to a lookup table to identify the underlying input attributes corresponding to the semantic attributes at block 218. At decision block 220 a determination is made whether corresponding input attributes have been found. If no corresponding input attribute has been found, possible input attributes may be suggested to the user at block 222. A determination is made at block 224 whether the user has accepted the proposed match, if the match has been accepted mapping of that suggested match to that semantic attribute is stored and the LUT may be updated at block 226. If the proposed match is not accepted, that term may be ignored.


After storing the mapping or if the underlying input attribute is found in the initial case, the underlying attribute is hashed at block 228. At block 230 the hash value of all identified underlying attributes and input attributes are summed. The sum of the hash values is used to identify the closest structured request from the index at block 232. In one embodiment, the search of the index may be limited by the number of input attributes found from the search query. For example, if three attributes are present, searching of requests having two or one attribute is avoided. Where no exact match is found, additional iterations may be performed by subtraction term has values of one or more attributes until a suitable match is found. By way of example, if five input attributes exist or are derived from the unstructured query, but the sum of the hash values of those five attributes is not found in the index, the system will search for each of the sums of four attributes. To the extent that more than one request is identified thereby, in some embodiments, the system will apply both requests and return the union or the intersection of those requests. In one embodiment, where no exact match is found, the search request with the greatest number total search terms is deemed the closest.


Once the structure of the search request has been identified, that request is then applied to the structured data at block 234. At block 236 the results are then returned to the user.


While embodiments of the invention are discussed above in the context of flow diagrams reflecting a particular linear order, this is for convenience only. In some cases, various operations may be performed in a different order than shown or various operations may occur in parallel. It should also be recognized that some operations described with respect to one embodiment may be advantageously incorporated into another embodiment. Such incorporation is expressly contemplated.


Elements of embodiments of the present invention may also be provided as a machine-readable medium for storing the machine-executable instructions. The machine-readable medium may include, but is not limited to, flash memory, optical disks, compact disks read only memory (CD-ROM), digital versatile/video disks (DVD) ROM, random access memory (RAM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic or optical cards.


In the foregoing specification, the invention has been described with reference to the specific embodiments thereof. It will, however, be evident that various modifications and changes can be made thereto without departing from the broader spirit and scope of the invention as set forth in the appended claims. The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense.

Claims
  • 1. A computer implemented method comprising: creating an index of structured input attributes to a unique value for each attribute and each combination of attributes;mapping a set of semantic attributes to the input attributesaccepting an unstructured search query from a requester;analyzing the query in a computer to identify a best structured request, wherein analyzing includes hashing any input attribute in the search query, transforming any semantic attribute in the search query to an underlying input attribute, hashing any underlying input attribute, summing hash values of all input attributes and underlying input attributes, and searching the index based on the sum of the hash values;applying the structured request to a set of structured data;returning, to the requester, results of the application of the structured request to the set of structured data;suggesting, to the requester, an input attribute for a semantic attribute for which no mapping exists; andmapping the semantic attribute to an input attribute corresponding to an accepted suggestion.
  • 2. The method of claim 1 wherein the creating comprises: hashing each attribute; andsumming the hashes of each constituent attribute of a combination.
  • 3. The method of claim 1, further comprising restricting the search by the number of total attributes in the search query.
  • 4. The method of claim 1 further comprising accepting a remapping of a semantic attribute to a different input attribute.
  • 5. A system comprising: a processor;an electronic display;a graphical user interface (GUI) to accept an unstructured search query in a search window;a persistent storage unit retaining at least one set of structured data;an indexer to create an index of structured input attributes to a unique value for each attribute and each combination of attributes; anda query analyzer to convert the unstructured query into a best structured request by hashing any input attribute in the search query, transforming any semantic attribute in the search query to an underlying input attribute; hashing any underlying input attribute, summing hash values of all input attributes and underlying input attributes and searching the index based on the sum of the hash values to find a closest match;a mapper to map semantic attributes to input attributes; anda suggestion engine to suggest, through the GUI, possible mappings between semantic attributes and input attributes.
  • 6. The system of claim 5 wherein the query analyzer comprises: a semantic layer; andan attribute indexer.
  • 7. The system of claim 6 wherein the attribute indexer comprises: a hash engine; andan adder.
  • 8. The system of claim 5 wherein the semantic layer comprises: a lookup table; anda comparison engine.
  • 9. A non-transitory computer readable medium having instructions stored therein which when executed by a processor cause the processor to: create an index of structured input attributes to a unique value for each attribute and each combination of attributes;map a set of semantic attributes to the input attributes;accept an unstructured search query from a requester;analyze the query in a computer to identify a best structured request, the analysis including hashing any input attribute in the search query, transforming any semantic attribute in the search query to an underlying input attribute; hashing any underlying input attribute, summing hash values of all input attributes and underlying input attributes and searching the index based on the sum of the hash values;apply the structured request to a set of structured data;return, to the requester, results of the application of the structured request to the set of structured data;suggest, to the requester, an input attribute for a semantic attribute for which no mapping exists; andmap the semantic attribute to an input attribute corresponding to an accepted suggestion.
  • 10. The computer readable medium of claim 9 wherein the instructions causing the computer to create comprise instructions causing the processor to: hash each attribute; andsum the hashes of each constituent attribute of a combination.
  • 11. The computer readable medium of claim 9 having further instructions thereon that cause the processor to: restrict the search by the number of total attributes in the search query.
  • 12. The computer readable medium of claim 9 having further instructions thereon that cause the processor to: accept a remapping of a semantic attribute to a different input attribute.
US Referenced Citations (51)
Number Name Date Kind
5666210 Yanai et al. Sep 1997 A
5732216 Logan et al. Mar 1998 A
5777989 McGarvey Jul 1998 A
5826025 Gramlich Oct 1998 A
5867665 Butman et al. Feb 1999 A
5870562 Butman et al. Feb 1999 A
5874960 Mairs et al. Feb 1999 A
6016508 Chu et al. Jan 2000 A
6043898 Jacobs Mar 2000 A
6052784 Day Apr 2000 A
6081829 Sidana Jun 2000 A
6163807 Hodgkinson et al. Dec 2000 A
6167402 Yeager Dec 2000 A
6178160 Bolton et al. Jan 2001 B1
6212565 Gupta Apr 2001 B1
6381627 Kwan et al. Apr 2002 B1
6393456 Ambler et al. May 2002 B1
6411966 Kwan et al. Jun 2002 B1
6438580 Mears et al. Aug 2002 B1
6525747 Bezos Feb 2003 B1
7068384 Hou Jun 2006 B1
7092870 Chen et al. Aug 2006 B1
7370285 Nickerson et al. May 2008 B1
7500221 Baumann Mar 2009 B2
7735101 Lanza et al. Jun 2010 B2
7793211 Brenner Sep 2010 B2
7870480 Oswald et al. Jan 2011 B1
7908312 Kang et al. Mar 2011 B2
7921026 O'Cull et al. Apr 2011 B2
7996774 Sidenur et al. Aug 2011 B1
8099673 Parkinson Jan 2012 B2
20020078152 Boone Jun 2002 A1
20030097410 Atkins et al. May 2003 A1
20040049534 Nickerson et al. Mar 2004 A1
20050027589 Jenkins et al. Feb 2005 A1
20050114271 Sindambiwe May 2005 A1
20050267792 Mehrotra et al. Dec 2005 A1
20060242139 Butterfield et al. Oct 2006 A1
20070043617 Stein et al. Feb 2007 A1
20070156622 Akkiraju et al. Jul 2007 A1
20070250791 Halliday et al. Oct 2007 A1
20080016091 Chandra Jan 2008 A1
20080281803 Gentric Nov 2008 A1
20100070448 Omoigui Mar 2010 A1
20100095211 Kenvin et al. Apr 2010 A1
20100153403 Chang et al. Jun 2010 A1
20110047148 Omoigui Feb 2011 A1
20110154192 Yang et al. Jun 2011 A1
20110208847 Lim et al. Aug 2011 A1
20110246222 Kroon et al. Oct 2011 A1
20110270815 Li Nov 2011 A1
Non-Patent Literature Citations (6)
Entry
Cohen, Sara, “XSEarch: A Semantic Search Engine for XML,” ACM Proceedings of the 29th VLDB Conference, Berlin, Germany, 2003, pp. 1-12.
Li, Quanzhong et al., “Indexing and Querying XML Data for Regular Path Expressions,” Proceedings of the 27th VLDB Conference, Roma, Italy 2001, pp. 1-10.
Mcllraith, Sheila, et al., “Semantic Web Services,” 2001, IEEE Inteligent Systems, pp. 46-53.
Koutsomitropoulos, Dimitrios, et al., “A Structured Semantic Query Interface for Reasoning-Based Search and Retrieval,” May 2005, University of Patras, Greece—Computer Engineering and Informatics Dept., School of Engineering, pp. 1-15.
Volkel, Max., et al., “Semantic Wikipedia,” Jun. 11-14, 2006, ACM 3rd European Semantic Web Conference (ESWC 2006), pp. 1-2.
Weikum, Gerhard, et al., “Towards a Statistically Semantic Web,” 2004, Springer-Verlag Berlin Heidelberg, pp. 3-17 (15 total pages).
Related Publications (1)
Number Date Country
20120047145 A1 Feb 2012 US