# Patent

## Title
Cross-model filtering

## Abstract

Presenting data from different data providers in a correlated fashion. The method includes performing a first query on a first data set controlled by a first entity to capture a first set of data results. The method further includes performing a second query on a second data set controlled by a second entity to capture a second set of data results. The method includes receiving a selection of one or more results from the first data set. The method further includes using the one or more selected results, consulting a relationship ontology that correlates data stored in different data stores controlled by different entities, to identify one or more relationships between data in the selected results set and the second data set.

## Background
BACKGROUND
Background and Relevant Art
Computers and computing systems have affected nearly every aspect of modern living. Computers are generally involved in work, recreation, healthcare, transportation, entertainment, household management, etc.
Further, computing system functionality can be enhanced by a computing systems ability to be interconnected to other computing systems via network connections. Network connections may include, but are not limited to, connections via wired or wireless Ethernet, cellular connections, or even computer to computer connections through serial, parallel, USB, or other connections. The connections allow a computing system to access services at other computing systems and to quickly and efficiently receive application data from other computing system.
Many computers are intended to be used by direct user interaction with the computer. As such, computers have input hardware and software user interfaces to facilitate user interaction. For example, a modern general purpose computer may include a keyboard, mouse, touchpad, camera, etc. for allowing a user to input data into the computer. In addition, various software user interfaces may be available. Examples of software user interfaces include graphical user interfaces, text command line based user interface, function key or hot key user interfaces, and the like.
Due to the interconnected nature of computing systems and the richness of display options currently available on computing systems, computer users have many choices from which to obtain data, and many ways to display the obtained data. When data is obtained from a single source under control of a single entity, it is quite simple to interrelate the data and to provide different views of interrelated data in ways that can highlight the interrelationships by using known database operations and functionalities that use data keys to interrelate the data. However, when data is obtained from different sources under the control of different entities, it is difficult to interrelate the data and to show the interrelationships without gathering the data into a single database controlled by a single entity.
The subject matter claimed herein is not limited to embodiments that solve any disadvantages or that operate only in environments such as those described above. Rather, this background is only provided to illustrate one exemplary technology area where some embodiments described herein may be practiced.
BRIEF SUMMARY
One embodiment illustrated herein includes a method that may be practiced in a distributed computing environment. The method includes acts for presenting data from different data providers in a correlated fashion. The method includes performing a first query on a first data set controlled by a first entity to capture a first set of data results. The method further includes performing a second query on a second data set controlled by a second entity to capture a second set of data results. The method includes receiving a selection of one or more results from the first data set. The method further includes using the one or more selected results, consulting a relationship ontology that correlates data stored in different data stores controlled by different entities, to identify one or more relationships between data in the selected results set and the second data set.
This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
Additional features and advantages will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the teachings herein. Features and advantages of the invention may be realized and obtained by means of the instruments and combinations particularly pointed out in the appended claims. Features of the present invention will become more fully apparent from the following description and appended claims, or may be learned by the practice of the invention as set forth hereinafter.



BRIEF DESCRIPTION OF THE DRAWINGS
In order to describe the manner in which the above-recited and other advantages and features can be obtained, a more particular description of the subject matter briefly described above will be rendered by reference to specific embodiments which are illustrated in the appended drawings. Understanding that these drawings depict only typical embodiments and are not therefore to be considered to be limiting in scope, embodiments will be described and explained with additional specificity and detail through the use of the accompanying drawings in which:
FIG. 1A illustrates database queries from a client machine on different database models and displaying visualizations based on the queries;
FIG. 1B illustrates cross model filtering of the different database queries from the client machine on the different database models;
FIG. 1C illustrates an additional example of cross model filtering of the different database queries from the client machine on the different database models; and
FIG. 2 illustrates a method of presenting data from different data providers in a correlated fashion.



DETAILED DESCRIPTION
As will be illustrated herein, embodiments may include functionality for performing filtering, slicing, and dicing of data across multiple different data models (e.g. databases) where the data models are separate. In particular, different data models may be controlled by different entities, and thus are not natively interrelated within the particular data models themselves. This can be accomplished using various mechanisms. An initial inference of relationships across models can be established based on reference data and a set of rules and heuristics. Also, manual definition of relationships or adjustment of the inferred relationships can be performed by a user. Cross filtering across models based on relationship information that is inferred automatically and/or explicitly defined between models can then be performed.
Referring now to FIGS. 1A-1C, an example system is illustrated. In particular, FIG. 1A illustrates a first data store 102, referred to herein as the Music model and a second data store 104 referred to herein as the Music Sales model. While only two data stores are shown, it should be appreciated that embodiments can be implemented with virtually any number of data stores, but two are shown for convenience.
The illustrated example shows that if there exists inferable or definable relationships between multiple data models, filtering one visualization bound to a particular model based on selection of a value from another model may be performed. For example, in some embodiments, a filter may be applied to a query to a first model for the first visualization based on selection of a value or element from a second visualization for a second model. Additionally or alternatively, embodiments may highlight or otherwise ornament a portion of the first visualization based on selection of an element of the second visualization. The filter may be generated based on the definition of the relationship between the source and the target of the relationship. In the illustrated example, this relationship can be maintained by a relationship ontology illustrated at 106. The following illustrates the functionality.
In the example illustrated in FIG. 1A, there are two visuals shown on the screen of a client machine 100: The first is a column chart 108 showing the total number of albums per music genre (e.g.: total number of albums for Pop, Rock, etc.). The information in the column chart 108 is sourced by sending a query 110 to the Music model 102 which returns the information displayed in the column chart 108. In particular, the information is sourced from the Albums table 109 in the Music model 102. The second visualization shows the total sales per music genre as a bar chart 112. This data is obtained by sending a query 114 to the Music Sales model 104 to query the Sales table 116 in the Music Sales model.
Referring now to FIGS. 1A and 1B, when a user selects the Pop genre (as shown in FIG. 1B) in the column chart 108, embodiments may attempt to locate a relationship between the Music model 102 and the Music Sales model 104 based on the genre information. This may be formed, for example, by looking up a relationship between the Genre column in the Albums table 109 in the Music model 102 and the Genre column in the Sales table 116 in the Music Sales model 104. In the example illustrated, this lookup may be against a relationship ontology 106. For example, this information lookup may be performed against relationship metadata that is inferred automatically and stored in the relationship ontology 106. Additionally or alternatively, this information lookup may be performed against relationship metadata that is explicitly defined by the model designer and stored in the relationship ontology 106.
Relationships in the relationship ontology can be discovered or manually defined in a number of different ways. For example, in some embodiments, automatic discovery can be made by comparing column names in different tables. Columns with the same or very similar names from different models may be used to create a correlating ontology. For example, in the example illustrated in FIG. 1A, the Albums table 109 of the Music model 102 may have a column titles “Genre”. Similarly, the Sales table 116 of the Music Sales model 104 may have a “genre” column. An inference engine at the relationship ontology 106 could determine that the different columns from the different data models stored entries for the same or substantially the same data items or data vales.
It should be appreciated that relationships could be discovered in other ways as well. For example, different models may be defined in different cultural languages. Thus, columns named with substantially equivalent labels, but in different cultural languages may be correlated in the ontology 106. Similarly, labels with similar meanings may be correlated. For example, one model may include a column with a label “artist” where another model includes a column with a label “singer”. In some embodiments, these columns may be correlated in an ontology 106.
Based on relationships discovered between the tables 109 and 116 various action may be performed. For example, as illustrated in FIG. 1B, a filter for Genre=Pop is appended to the query 114 for the Sales table 116 such that the second visual, i.e. the bar chart 112 is filtered to only show the total sales for the Pop genre. Alternatively or additionally, a filter for Genre=Pop is appended to the query 114 for the Sales table 116 so therefore the second visual, i.e. the bar chart 112, is filtered only to show the total sales for the Pop genre, perhaps broken down by another measure to show the distribution within a particular category. In yet another alternative or additional embodiment, as illustrated in FIG. 1C, the explicit bar 118 representing the value for total sales for the Pop genre is highlighted in bar chart 112.
The above filtering and highlighting can be applied to multiple visuals from multiple models at the same time so embodiments are not limited to two visuals from two models. Embodiments can use similar functionality to filter, highlight, slice, or drill in between one source visual/value and multiple other visualizations/queries.
The following discussion now refers to a number of methods and method acts that may be performed. Although the method acts may be discussed in a certain order or illustrated in a flow chart as occurring in a particular order, no particular ordering is required unless specifically stated, or required because an act is dependent on another act being completed prior to the act being performed.
Referring now to FIG. 2, a method 200 is illustrated. The method 200 may be practiced in a distributed computing environment. The method 200 includes acts for presenting data from different data providers in a correlated fashion. The method 200 includes performing a first query on a first data set controlled by a first entity to capture a first set of data results (act 202). For example, FIG. 1A illustrates a query 110 being sent to a data model 102 to obtain data for the column chart 108 visualization.
The method 200 further includes performing a second query on a second data set controlled by a second entity to capture a second set of data results (act 204). For example, FIG. 1A illustrates a query 114 being sent to a model 104 to obtain data for the bar chart 112 visualization.
The method 200 further includes receiving a selection of one or more results from the first data set (act 206). For example, as illustrated in FIGS. 1B and 1C, a user may select the “pop” entry in the column chart 108. Note however, that embodiments are not limited to “user selection” as illustrated, but rather selection may include any of a number of different activities. For example, a software application may select a result for further processing.
The method 200 further includes using the one or more selected results, consulting a relationship ontology that correlates data stored in different data stores controlled by different entities, to identify one or more relationships between data in the selected results set and the second data set (act 208). For example, as illustrated in FIGS. 1B and 1C, the client machine 100 may consult the ontology 106 to determine relationships between data from the first query to the data model 102 and data from the second query to the data model 104. These relationships may be used in various ways to manipulate visualizations, perform operations on data, etc.
The method 200 may further include constructing a new query over the second data set based on identifying one or more relationships between data in the selected results set and the second data set, and performing the new query on the second data set such that results from the new query are correlated with the selection of the one or more results. For example, a new query could be issued on the Sales table 116 limiting results to those where the Genre is Pop. This would affect the data returned from the data model 104 and the visualization displayed.
The method 200 may further include performing additional operations on the second set of data results based on the relationships between data in the selected results set and the second data set. For example, performing additional operations on the second set of data results may include highlighting element in the second data set. Alternatively or additionally, performing additional operations on the second set of data results may include analyzing results in the second data set. Alternatively, performing additional operations on the second set of data results may include categorizing results in the second data set. Alternatively or additionally, performing additional operations on the second set of data results may include sorting results in the second data set. Alternatively or additionally, performing additional operations on the second set of data results comprises filtering results in the second data set.
The method 200 may further include displaying a correlation between the first data set and the second data set. For example, selection of elements in the first data set may result in displaying the second data set with correlating data highlighted.
Further, the methods may be practiced by a computer system including one or more processors and computer readable media such as computer memory. In particular, the computer memory may store computer executable instructions that when executed by one or more processors cause various functions to be performed, such as the acts recited in the embodiments.
Embodiments of the present invention may comprise or utilize a special purpose or general-purpose computer including computer hardware, as discussed in greater detail below. Embodiments within the scope of the present invention also include physical and other computer-readable media for carrying or storing computer-executable instructions and/or data structures. Such computer-readable media can be any available media that can be accessed by a general purpose or special purpose computer system. Computer-readable media that store computer-executable instructions are physical storage media. Computer-readable media that carry computer-executable instructions are transmission media. Thus, by way of example, and not limitation, embodiments of the invention can comprise at least two distinctly different kinds of computer-readable media: physical computer readable storage media and transmission computer readable media.
Physical computer readable storage media includes RAM, ROM, EEPROM, CD-ROM or other optical disk storage (such as CDs, DVDs, etc), magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store desired program code means in the form of computer-executable instructions or data structures and which can be accessed by a general purpose or special purpose computer.
A “network” is defined as one or more data links that enable the transport of electronic data between computer systems and/or modules and/or other electronic devices. When information is transferred or provided over a network or another communications connection (either hardwired, wireless, or a combination of hardwired or wireless) to a computer, the computer properly views the connection as a transmission medium. Transmissions media can include a network and/or data links which can be used to carry or desired program code means in the form of computer-executable instructions or data structures and which can be accessed by a general purpose or special purpose computer. Combinations of the above are also included within the scope of computer-readable media.
Further, upon reaching various computer system components, program code means in the form of computer-executable instructions or data structures can be transferred automatically from transmission computer readable media to physical computer readable storage media (or vice versa). For example, computer-executable instructions or data structures received over a network or data link can be buffered in RAM within a network interface module (e.g., a “NIC”), and then eventually transferred to computer system RAM and/or to less volatile computer readable physical storage media at a computer system. Thus, computer readable physical storage media can be included in computer system components that also (or even primarily) utilize transmission media.
Computer-executable instructions comprise, for example, instructions and data which cause a general purpose computer, special purpose computer, or special purpose processing device to perform a certain function or group of functions. The computer executable instructions may be, for example, binaries, intermediate format instructions such as assembly language, or even source code. Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the described features or acts described above. Rather, the described features and acts are disclosed as example forms of implementing the claims.
Those skilled in the art will appreciate that the invention may be practiced in network computing environments with many types of computer system configurations, including, personal computers, desktop computers, laptop computers, message processors, hand-held devices, multi-processor systems, microprocessor-based or programmable consumer electronics, network PCs, minicomputers, mainframe computers, mobile telephones, PDAs, pagers, routers, switches, and the like. The invention may also be practiced in distributed system environments where local and remote computer systems, which are linked (either by hardwired data links, wireless data links, or by a combination of hardwired and wireless data links) through a network, both perform tasks. In a distributed system environment, program modules may be located in both local and remote memory storage devices.
Alternatively, or in addition, the functionally described herein can be performed, at least in part, by one or more hardware logic components. For example, and without limitation, illustrative types of hardware logic components that can be used include Field-programmable Gate Arrays (FPGAs), Program-specific Integrated Circuits (ASICs), Program-specific Standard Products (ASSPs), System-on-a-chip systems (SOCs), Complex Programmable Logic Devices (CPLDs), etc.
The present invention may be embodied in other specific forms without departing from its spirit or characteristics. The described embodiments are to be considered in all respects only as illustrative and not restrictive. The scope of the invention is, therefore, indicated by the appended claims rather than by the foregoing description. All changes which come within the meaning and range of equivalency of the claims are to be embraced within their scope.

## Claims

1. A method of constructing data from different data providers in a correlated fashion, the method being performed by one or more processors of a computer system, the method comprising:
performing a first query on a first data set controlled by a first entity to capture a first set of data results;
performing a second query on a second data set controlled by a second entity to capture a second set of data results, wherein the second query is generated independently from the first query such that the second query is distinct from, and not dependent on, the first query;
receiving a selection of one or more results from the first set of data results;
using the selection from the first set of data results to consult a relationship ontology that correlates data stored in different data stores controlled by different entities and further to identify one or more relationships between data in the selection from the first set of data results and the second set of data results subsequent to performing both the first query and the second query, wherein the identified one or more relationships between the data in the selection from the first set of data results and the second set of data results are stored in the relationship ontology, and wherein at least one of the identified one or more relationships stored in the relationship ontology is manually defined;
constructing a new query over the second data set based on identifying the one or more relationships between the data in the selection from the first set of data results and the second set of data results; and
performing the new query on the second data set such that results from the new query are correlated with the selection from the first set of data results.

2. The method of claim 1 further comprising:
performing additional operations on the second set of data results based on the identified one or more relationships between the data in the selection from the first set of data results and the second set of data results.

3. The method of claim 2, wherein performing the additional operations on the second set of data results comprises highlighting an element in the second set of data results.

4. The method of claim 2, wherein performing the additional operations on the second set of data results comprises analyzing results in the second set of data results.

5. The method of claim 2, wherein performing the additional operations on the second set of data results comprises categorizing results in the second set of data results.

6. The method of claim 2, wherein performing the additional operations on the second set of data results comprises sorting results in the second set of data results.

7. The method of claim 2, wherein performing the additional operations on the second set of data results comprises filtering results in the second set of data results.

8. The method of claim 1, further comprising:
displaying a correlation between the first set of data results and the second set of data results.

9. The method of claim 1, wherein the second query is performed prior to receiving the selection of the one or more results from the first set of data results.

10. The method of claim 1, wherein the second set of data results is displayed in a bar chart.

11. A system for constructing data from different data providers in a correlated fashion, the system comprising:
one or more processors; and
one or more computer readable hardware storage devices having stored thereon computer executable instructions that are executable by at least one of the one or more processors to cause the system to:
perform a first query on a first data set controlled by a first entity to capture a first set of data results;
perform a second query on a second data set controlled by a second entity to capture a second set of data results, wherein the second query is generated independently from the first query such that the second query is distinct from, and not dependent on, the first query;
receive a selection of one or more results from the first set of data results;
use the selection from the first set of data results to consult a relationship ontology that correlates data stored in different data stores controlled by different entities and further to identify one or more relationships between data in the selection from the first set of data results and the second set of data results subsequent to performing both the first query and the second query, wherein the identified one or more relationships between the data in the selection from the first set of data results and the second set of data results are stored in the relationship ontology, and wherein at least one of the identified one or more relationships stored in the relationship ontology is manually defined;
construct a new query over the second data set based on identifying the one or more relationships between the data in the selection from the first set of data results and the second set of data results; and
perform the new query on the second data set such that results from the new query are correlated with the selection from the first set of data results.

12. The system of claim 11, wherein the computer executable instructions further cause the system to perform additional operations on the second set of data results based on the identified one or more relationships between the data in the selection from the first set of data results and the second set of data results.

13. The system of claim 12, wherein performing the additional operations on the second set of data results comprises highlighting an element in the second set of data results.

14. The system of claim 12, wherein performing the additional operations on the second set of data results comprises categorizing results in the second set of data results.

15. The system of claim 12, wherein performing the additional operations on the second set of data results comprises sorting results in the second set of data results.

16. The system of claim 12, wherein performing the additional operations on the second set of data results comprises filtering results in the second set of data results.

17. The system of claim 11, wherein the computer executable instructions further cause the system to display a correlation between the first set of data results and the second set of data results.

18. The system of claim 11, wherein the first data set is stored in a first table that includes column labels and the second data set is stored in a second table that also includes column labels, and wherein the computer executable instructions further cause the system to:
identify a first column of information in the first table, the first column including substantially similar information as a second column of information in the second table;
identify a first column label corresponding to the first column, the first column label being named differently than a second column label corresponding to the second column; and
in the relationship ontology, correlate the first column of information in the first table with the second column of information in the second table even though the first column label is named differently than the second column label.

19. The system of claim 18, wherein the first column label is expressed using a first language while the second column label is expressed using a second language.

20. A physical computer readable hardware storage device comprising computer executable instructions that are executable by one or more processors to cause the one or more processors to:
perform a plurality of queries on a plurality of data sets controlled by different entities, wherein a second query is generated independently from a first query such that the second query is distinct from, and not dependent on, the first query;
identify a result from one of the plurality of queries;
use a relationship ontology that correlates data stored in different data stores controlled by different entities to identify one or more relationships between data in the identified result and results from other queries in the plurality of queries subsequent to performing both the first query and the second query, wherein the identified one or more relationships between the data in the identified result and the results from the other queries in the plurality of queries are stored in the relationship ontology, and wherein at least one of the identified one or more relationships stored in the relationship ontology is manually defined;
construct a new query over the plurality of data sets based on identifying the one or more relationships between the data in the identified result and results from other queries; and
perform the new query such that results from the new query are correlated with the identified result.

21. The physical computer readable hardware storage device of claim 20, wherein identifying the result from the one of the plurality of queries comprises receiving a user selection.