This invention is a system for integrating data sets organized in one organization type with data sets organized in a second organization type so that data queries submitted to be processed in the manner of the first organization type can be translated into queries usable by the data set in the second data organization type and the results returned to satisfy the first query.

Patent
   10860653
Priority
Oct 22 2010
Filed
Jan 18 2019
Issued
Dec 08 2020
Expiry
Feb 09 2032

TERM.DISCL.
Extension
111 days
Assg.orig
Entity
Small
0
217
currently ok
1. A system comprised of one or more computers for executing a digitally encoded first query that is expressed in a query language operable on a first type of data organization, on the data contents of a pre-existing data set in a second type of data organization comprised of a corresponding data organization schema encoded in a schema data file, said system comprising:
a computer memory comprised of stored data encoding the first query;
a translating module comprised of logic configured to automatically translate the stored first query into a digitally encoded second query expressed in a query language compatible with the second data organization type by using a mapping data structure stored in a computer memory comprising said system, said data structure embodying a synthetic domain model representation of the second data organization schema derived from the schema data file, in order to create the second query; and
a system comprised of the pre-existing data set of the second organization type configured by logic to execute the second query on the pre-existing data set.
2. A method executed by a computer system comprised of one or more computers, for executing a digitally encoded first query that is expressed in a query language operable on a first type of data organization, on the data contents of a pre-existing data set in a second type of data organization comprised of a corresponding data organization schema encoded in a schema data file, said method comprising:
retrieving from a data storage device data encoding the first query, said first query being expressed in a query language operable on the first type of data organization;
automatically translating the first query into a second digitally encoded translated query expressed in a query language compatible with the second type of data organization by using a mapping data structure stored in a computer memory comprising said computer system, said data structure embodying a synthetic domain model representation of the second type of data organization in order to create a data object representing the second translated query; and
executing the second query on the pre-existing data set of the second type of data organization.
3. A computer readable storage device comprised of data representing computer instructions that when executed perform the steps of:
executing a digitally encoded first query that is expressed in a query language operable on a first type of data organization, on the data contents of a pre-existing data set in a second type of data organization comprised of a corresponding data organization schema encoded in a schema data file, by:
retrieving from a data storage device data encoding the first query, said first query being expressed in a query language operable on the first type of data organization; automatically translating the first query into a second digitally encoded translated query expressed in a query language compatible with the second type of data organization by using a mapping data structure stored in a computer memory comprising said computer system, said data structure embodying a synthetic domain model representation of the second type of data organization in order to create a data object representing the second translated query; and
executing the second query on the pre-existing data set of the second type of data organization.

This application claims priority as a continuation of U.S. patent application Ser. No. 15/165,775, filed on May 26, 2016, which is a continuation of U.S. patent application Ser. No. 14/220,526 filed on Mar. 20, 2014, now issued as U.S. Pat. No. 9,396,283, issued on Jul. 19, 2016, which is a continuation of U.S. patent application Ser. No. 13/278,907 filed on Oct. 21, 2011, now issued as U.S. Pat. No. 8,719,252 issued on May 6, 2014 which is a nonprovisional application that claims the benefit of U.S. Provisional Patent Application No. 61/406,021, filed on Oct. 22, 2010, all of which are hereby incorporated by reference for all that they teach.

This invention was supported in part by a grant from the National Science Foundation, Grant No. 1018554 and portions of this invention may be subject to a paid-up license to the U.S. Government.

The goals of Semantic Web technology include creating a structurally uniform representation of heterogeneous data, data models, and application domain models in a stack of computer languages, RDF (Resource Description Framework), RDFS (RDF Schema), OWL (Web Ontology Language) and SPARQL (SPARQL Protocol and RDF Query Language), also known as the Semantic Web stack. The Semantic Web as a computing process, architecture and form of organizing data has been described and implemented in various ways by the W3C (World Wide Web Consortium), which is the industry group that maintains Internet protocol and data formatting standards. For more information on the semantic web, see “Semantic Web in Action”, Scientific American, December 2007, Feigenbaum et. al., incorporated herein by reference. RDF is a graph representation of data. SPARQL is an SQL-like language for querying RDF data sources. RDFS and OWL provide richer means to encode structure and domain models and logic. The entire system is object-oriented where RDFS and OWL inherit from RDF. The entire stack is well grounded to integrate knowledge-based, and logic-based solutions to data integration, mining and analysis problems.

Relational database management systems support a wide range of applications. Relational databases comprise data stored as records in tables, (synonymously rows in relations). Each table defines a record structure comprising a set of named columns. SQL is a standardized language used to define and query relational databases.

This invention is a system and method for integrating relational databases into a semantic web framework utilizing a simple mapping process and the SQL query optimizer present in the SQL database engine. Functionally this means, a domain model for the relational database is made available in a Semantic Web language and the database contents is made available for retrieval through standard SPARQL query and linked-data end-points.

The invention is comprised of four primary components. Two components comprise a compile time aspect. These compile time components may be integrated 103 or accomplished separately.

A first component 103 algorithmically transforms the relational databases SQL schema, to an equivalent representation in one or more Semantic Web languages, including, but not limited to RDF (Resource Description Framework), RDFS, OWL or RIF. The transformation is made consistent with the semantic web schema. The result is called the synthesized domain model. In one embodiment, the transformation includes the relational constraints. The synthesized domain model acts as a mapping of the relational schema to the semantic web schema. The mapping can be used to map the semantic web schema back to the relational schema.

In one embodiment the URIs (Uniform Resource Identifier) that identify the elements in the synthesized domain model may be replaced with different URIs. The replacement URIs may come from an existing domain model. The replacement URIs may also be defined so the results are more fitting for the consumption of the output of the system. In one embodiment, URIs are the standard RDF method for representing labels in an ontology. In other embodiments the label representation of any formalized ontology system may be used.

For example, the RDF of the relation data can be represented as a relation with three columns: subject, predicate and object. The SQL schema may identify tables, for example, if the database is storing employee information, a table for “EMPLOYEES”, where there is a column denoting “NAME”. The RDF representation of the relational data stored in this SQL schema consists of a triple where the subject is the URI that identifies a row of the “EMPLOYEE” table, the predicate is the URI that identifies the “NAME” attribute and the object is the value of “NAME” for the row.

A second component 103 that creates a relational database representation of the relational data as RDF triples that can respond to SQL queries. The precise content of the RDF triples is determined by and is consistent with the synthesized domain model. The content and structure of the RDF triples is determined by one or more queries. The queries may be embedded in a SQL CREATE VIEW command or may be used directly to materialize the RDF triples. Materialize means that the resulting data is produced, rather than relying on a logical rule that has to be executed. It is common for relational database systems to offer configuration options such that a VIEW command is implemented as a logical construct or by materializing and storing the results of the embedded SQL query.

Two additional components comprise a runtime aspect that executes SPARQL queries.

A third component 105 that translates a SPARQL query to an equivalent SQL query that operates on the relational representation of its contents as triples. The arguments of the SQL query include the RDF representations of the relational database data contents. Those values are derived from the mapping from the relational database to the RDF, that is, the synthesized domain model. The system and method does not require materializing the RDF triples. Instead, a logical definition using the CREATE VIEW command can be used to either logically create a triple table or to materialize one. In one embodiment, an incoming SPARQL query is translated into a syntactically equivalent SQL query that can operate on the relational database engine by using the VIEW logically, or can act on the triples materialized from the relational database using the VIEW or replace the VIEW in the FROM clause with the results of the VIEW command in SQL. The VIEW logically defines a three column view (subject, property and object), containing one data value per triple. It is common that the column names of the relational database become property IRI (Internationalized Resource Identifiers) in the synthesized domain model. The translation module will parse the SPARQL query using typical computer cross compiling processing and computer language grammar. Property IRIs in the SPARQL query are translated into SQL as equality tests on the property column of the view. In one embodiment, the primary keys are used explicitly in the synthesized domain model. In another embodiment an unlabeled RDF node, a blank node, is used to represent the association of data, values. The SPARQL query translation to SQL includes database JOINs and OUTERJOINs on the three column view such that the resulting SQL query can represents the assembly of separate RDF data nodes into values in the same relational database record. The SQL query may include formatting commands such that the final output is a structured SQL representation or any accepted serialized format for SPARQL queries, including XML. In another embodiment, the SQL output is sent to a separate module that re-formats the data to conform with the requirements of the SPARQL query.

A fourth component is the relational database engine itself. The relational database engine contains a SQL query optimizer 111. Typical relational databases contain a SQL query optimizer that will re-organize a SQL query into one or more steps in order to run the actual database table and record searches more quickly. These steps may be re-ordered or manipulated to make the data access process more efficient. For example, a selection condition that is in the query can be broken up into a combination of simpler conditions. Other manipulations using relational algebra may be used to optimize the SQL query. The optimizer is used for rewriting triple based queries and effecting execution of a SQL on the relational representation. As a result of the SQL query, the output of the data is equivalent to the execution of the SPARQL query directly on the RDF representation of the data. The SQL optimizer does all of the rewrites to fetch the data automatically. Therefore, no specialized software is required to perform the translation.

In another embodiment, the runtime aspect may be organized such that the SPARQL to SQL translator 105 does not organize the final output, but rather derives only a SQL query that produces results in a representation common to relational databases 205 and the final formatting is accomplished by another software component 206.

It is understood that what is referred to as “triple” may in other embodiments also be a table, a logical view definition or a materialized view. It is understood what is referred to as a “triple” may be represented with more than 3 columns where in addition to the subject, property and relation columns, index columns or other ancillary information may be included. There may be more than one triple table where a given table would be for a particular datatype. Therefore a “triple” table may refer to a table with more than three columns and there may be more than one triple table used to process a query, so that the query can be applied to more than one datatype.

There are a number of acceptable printable formats for the results of SPARQL queries, including RDF. See “SPARQL Query Language for RDF”, W3C Recommendation, January 2008, by Eric Prud'hommeaux and Andy Seaborne which is incorporated herein by reference. RDF itself has a number of acceptable printable formats including RDF/XML see “RDF/XML Syntax Specification (Revised)” by Dave Beckett, “Turtle—Terse RDF Triple Language” by Dave Beckett and Tim Berners-Lee and “Notation 3” by Tim Berners-Lee.

Alternately the runtime aspect may provide data according to Linked Data protocols. Given a URI, it executes a SPARQL query and the RDF result is returned over HTTP. For more information on Linked Data see “Linked Data” by Tim Berners-Lee, incorporated herein by reference

FIG. 1: Diagram of the relation between components of the invention

FIG. 2: Diagram of alternate organization for more general output formatting

FIG. 3: An example relational schema and its synthesized domain model

FIG. 4: An example relational schema in SQL-DDL and its synthesized domain model in OWL using RDF/XML syntax

FIG. 5: An example relational schema in SQL-DDL and its synthesized domain model in RDFS using RDF/XML syntax

FIG. 6: Algorithm to create a relational triple representation given the SQL-DDL of the relational schema

FIG. 7: Example relational schema with instances and the relational triple representation with the same instances

FIG. 8: Example SPARQL query and a semantically equivalent SQL query on the relational triple representation

FIG. 9: Example DB2 query plan for query in FIG. 8

FIG. 10: Example of Tripleview before and after the label substitution

FIG. 11: Components of the Invention including optimization transform.

FIG. 12. Initial logical query plan.

FIG. 13. Logical query plan after Detection of Unsatisfiable Conditions optimization.

FIG. 14. Logical query plan for BSBM6 after Self-join Elimination optimization.

FIG. 15. Example BSBM relational schema.

FIG. 16. Resulting transform to an OWL Putautive Ontology.

FIG. 17. Resulting transform to an OWL Putautive Ontology.

FIG. 18. Example system embodiment.

The component 103 algorithmically transforms the relational databases SQL schema, possibly including constraints, to an equivalent representation in one or more Semantic Web languages, including, but not limited to RDF, RDFS, OWL or RIF. The result is called the synthesized domain model. FIG. 3 contains a figurative example of such a translation. FIGS. 4 and 5 show examples of SQL schema definition statements and corresponding representation as OWL and RDFS, respectively. For detailed translation rules see “Translating SQL Applications to the Semantic Web”, by Syed H. Tirmizi, Juan F. Sequeda, and Daniel P. Miranker, Proceedings of the 19th International Databases and Expert Systems Application Conference (DEXA2008), Turin, Italy. 2008, incorporated herein by reference.

FIG. 6 details a process to create a relational representation of the relational database as RDF triples in a single relation. FIG. 7 illustrates an example relational database and the RDF triples resulting from the process. The query may be embedded in a SQL CREATE VIEW statement, thus creating a logical definition of the relational database as RDF.

In particular, the create view can be materialized instead of being maintained as a run-time rule. Alternatively, the query generated by the algorithm in FIG. 6 may be used to query the database. The results may be stored in the local database, in another relational database or in a conventional triple-store such as Virtuoso or Jena, or some other RDF database management system. The embodiment detailed in FIG. 6 casts all data into a string data type. In another embodiment, the process may produce a number of tables, one for each SQL data type.

The SPARQL to SQL translator, 105 205, substitutes SPARQL strings for SQL strings. For substitutions see, “The Expressive Power of SPARQL.” Proceedings of the 7th International Semantic Web Conference (2008) R. Angles, C. Guituerrez and See “SPARQL Query Language for RDF”. W3C Recommendation. January 2008, by Eric Prud′hommeaux and Andy Seaborne both of which are incorporated herein by reference. An example of the substitution is illustrated in FIG. 8. The resulting SQL query is executed by the SQL engine. FIG. 9 shows the query plan produced by IBM's DB2 relational database system for the query in FIG. 8.

Prior art approaches for management of the semantic web are either based on RDBMS or are native database management systems for triples. Jena, Oracle, Sesame and 3 store are some examples of triple stores that use RDBMS. These approaches center on a single triple table and a look up table. Others consider a property table approach. The previous approaches mentioned are focused on storing Semantic Web data. The prior art does not address what happens in the frequent situation where legacy relational database data needs to be exposed in the Semantic Web. The problem can be recast as: how can RDF and Linked Data be created from legacy relational data. There are two options: have a static dump of the data in RDF or dynamically generate RDF and being able to query a relational database with SPARQL. Relational data can be transformed into RDF through existing ETL methods. However these static approaches have a drawback when it comes to consistency with the relational data. Furthermore, it is not possible to query the relational data with SPARQL through these methods.

Dynamic approaches map the relational database schema with existing ontologies and vocabularies used on the Semantic Web. When a SPARQL query is issued, the mapping between the relational schema and ontology allows the query to be translated into a SQL query that is executed over the relational database. The prior art include manually creating mappings between the two regimes. A manually created mapping between the ontology and the relational schema with the SQL language and not a view of triples is difficult and not efficient and automatic.

In the preferred embodiment, the invention is a compiled system. During initialization the database is examined by querying the data catalog. Relational representations are compiled to Semantic Web representations. Reading the catalog and creating views commonly requires administrative permissions, which must be enabled. At runtime, SPARQL queries are naively translated to SQL.

These four components are divided into an initialization and query evaluation phase. The initialization phase is composed of the first two components. By deriving automatically the ontology, the relational data can be represented in triples. The creation of the intentional triples eliminates the problem of consistency between a triple store and the relational database by never creating a physical copy of the triples. The last two components are part of the query evaluation phase. SPARQL queries are naively translated to SQL queries that operate on the triples. The query engine automatically performs to implement the intricate rewrites from a triple-based evaluation to a relational evaluation.

To create the OWL description of the legacy database the invention maps one schema to the other. In one embodiment, the mapping of Tirmizi et. al. is used. Whether the results of a purely syntax driven translation of a SQL schema to OWL will result in an OWL file with all the properties necessary for an axiom system to be an ontology is controversial. Thus, we call the resulting OWL an example of a putative ontology (PO). A putative ontology would be any syntactic transformation of a data source schema to an ontology. Tirmizi et al's mapping includes translations for all SQL table and constraints, including enumerations. Further the system includes mappings for each association created by every possible combination of primary and foreign keys.

The first data description language (DDL) specified in the first SQL standard offered little more expressive power beyond that of relational algebra. Clearly legacy databases dating back to that first SQL standard will have few, if any, explicit, application domain detail. The OWL ontology generated from that representation will have dubious value as an ontology. However the current SQL standard includes a rich constraint system. Modern data modeling efforts provide for the inclusion of application-based constraints.

In another embodiment, the first step is to generate a putative ontology based on the SQL-DDL of the input schema. In one embodiment, the BSBM schema (FIG. 15) is used as the input. The result of transforming the relational schema to an OWL PO following the rules of Tirmizi et al. is shown in FIG. 17.

Relational Database as RDF Triples

The invention utilizes a synthetic domain model, (also referred to as putative ontology or “PO”), as the basis for a user to develop SPARQL queries. As ontology matching systems are integrated into the Semantic Web to provide seamless webs of linked data, we anticipate that for many systems synthetic domain models, or putative ontologies will be sufficient for the purpose. Consequently, the details of the triple or RDF representation of the database contents must be consistent with the synthetic domain model.

In one embodiment, the definition of the triple representation is intentionally presented as a SQL view. This view consists of the union of all the queries that define all the triples based on the PO. In other words, the view logically defines a three column view (subject, predicate and object), containing one row per triple.

For example, consider the table Product from the relational schema (See FIG. 15). The invention translates the table Product into the ontological concept Product. Afterwards, SQL queries need to be generated that defines the triple statements for each translation. For example, it is necessary to define in triple statements that there is a Product that has a label “ABC”, a numerical property of 1 and 2. An example of this query is shown in Table 1. Finally, the union of all these queries defines the final triple view, as shown in Table 2.

TABLE 1
Example of Product relation from the relational schema.
Id Label propNum1 propNum1
1 ABC 1 2
2 XYZ 3 3

SELECT “Product”+Product.id as s, “rdf:type” as p “Product” as o FROM Product
SELECT “Product”+Product.id as s, “product#label” as p “ABC” as o FROM Product.  (1)

TABLE 2
SQL Triple View of the Product relation from BSBM schema.
S P O
Product1 rdf:type Product
Product1 label ABC
Product1 propNum1 1
Product1 propNum2 2

In this example, we only take in account the generation of owl:Class, owl:ObjectProperty and owl:DatatypeProperty. Therefore given the PO, the relational data can be mapped to a SQL view with the following process:

For a Database D

Most triple stores implemented as triple tables do not store strings in the triple table. Instead, they store keys or hash values in the triple. These keys are then mapped to a look up table, like a dictionary. However, this invention creates a view over the strings. The objective is to assure real-time consistency between the relational and RDF presentation of the data. Therefore, if the relational data is updated, the RDF should be consistent in real-time. Another embodiment is to implement the triple and dictionary table like other approaches. This may be costly to maintain the dictionary table consistent in real-time with the relation data. Furthermore, current triple stores in the art typically hash values because they are storing URIs. In another embodiment of the invention, URI's are not stored, therefore the size of the strings are much smaller. For that reason, it is valuable to create a view over the strings.

The query evaluation phase is the second stage of the invention's methods. This phase gets executed when a SPARQL query is issued. The first part is to translate the SPARQL query to an equivalent SQL query that gets executed over the SQL view. The final step is in which the SQL query optimizer, rewrites the triple based SQL query to a SQL query that executes on the extensional relational data.

SPARQL to SQL

The SPARQL to SQL component of the invention naively translates a SPARQL query to a SQL query that is issued to operate on TripleView as the FROM. For example, the SPARQL query in (2) is translated to the SQL query in (3).
SELECT ?product ?label
WHERE {
?product label ?label.
?product propNum1 1.
?product propNum2 2.}.  (2)
SELECT t1.s as product, t1.o as label FROM tripleview t1, t2, t3
WHERE and t1.p=‘label’ and t2.s=t1.s and t2.p=‘propNum1’
and t3.s=t1.s and t3.p=‘propNum2’.  (3)

In another embodiment, the query optimizer of the database engine is used to rewrite the query to the native SQL query on the relational schema. Consider a datalog syntax to represent the TripleView in Table 2 from the relation table in Table 1.
Triple(1, label, ABC):—Product(1,ABC,_, _)
Triple(1, propNum1, 1):—Product(1,_, 1,_)
Triple(1, propNum1, 2):—Product(1,_,_, 2).  (4)
Now consider the query in (2). In a datalog syntax, this would be represented:
Answer(X, Y): —Triple(X, label, Y),
Triple(X, propNum1, 1),
Triple(X, propNum2, 2)   (5)
The native SQL query on the relational table would be:
SELECT id, label FROM product WHERE propNum1=1 and propNum2=2   (6)

In datalog syntax, this query would be represented:
Answer(X, Y):—Product(X, Y, 1, 2)  (7)

Now if the SPARQL query (2) is substitute with the definition of the view (4), we have the following:
Answer(X, Y):—Product(X,Y, 1, _), Product(X,Y, _, 2)   (8)

Finally, by unifying both predicates, we get the same result as (7), which is the same native SQL query on the relation schema.

The SQL schema of a relational database can be automatically translated into an OWL putative ontology or synthetic domain model, by applying transformation rules.

Finally, due to its syntactic transformation, the putative ontology takes the terminology derived from the SQL DDL.

Given the SQL query to operate over the tripleView, the SQL optimizer is able to generate a query plan that will rewrite the query that is to be executed on the relational data. Consider the relational table shown in Table 1. Generating the triples from this relational table would yield the triple table shown in Table 2. Now consider the SPARQL query shown above at (2). The SQL query on the relational table would be:
SELECT label FROM product WHERE propNum1=1 and propNum2=2  (9)

Without any index support, the SQL query on the relational table would execute in O(n), where n is the number of rows. However, in the case of a triple table, for each triple pattern in the SPARQL query, there needs to be a self-join. For native triple stores that are represented in triple tables, there is not a way to avoid the self-join, because the query optimizer is only aware of one table: the triple table. Hence, in triple-tables, the self-joins are not compiled out. The triple version of a relational table will contain c*n rows where c is the number of columns and n is the number of rows. Therefore, the worst case complexity when executing a SPARQL query on a triple table is O(nc), where c is the amount of columns that are being queried. Nevertheless, the invention can avoid the O(nc) complexity and bring it down to linear O(n). The SPARQL query gets translated into a SQL query that is posed on the tripleView. However, this tripleView is not alone, like in the case of triple stores implemented as triple-tables. The invention has the advantage that the relational schema exists, and the query optimizer generates queries that are executed on the relational schema. The advantage of the query optimizer generating queries is that it would be compiling out the self joins.

Simple URI Substitution:

The concept of globally unique identifiers is fundamental to OWL ontologies and that these take the form of URIs is required by RDF standard specification. Per the standard, a URI acts as a web-wide unique key for a string or concept. Each class or property in the ontology must have a unique identifier, or URI. While it is possible to use the names from the relational schema to label the concepts in the ontology, it is necessary to resolve any duplications, either by producing URIs based on fully qualified names of schema elements, or by producing them randomly. In addition for human readability, RDFS labels should be produced for each ontology element containing names of corresponding relational schema elements. In one embodiment the transformation rules combine with a set of URI creation rules. Further, the URI creation rules may integrate a dictionary of fixed strings. In one embodiment the fixed strings may be specified by a user and, for example, comprise the domain name of the database server. In another embodiment a user may use a GUI (graphical user interface) or a process may methodically examine each string derived from the database schema, determine its uniqueness and/or replace it from a list of unique strings defined a priori. In yet another embodiment, these methods may be combined by applying each one and concatenating the results.

For example, the SPARQL query and the corresponding SQL query in FIG. 8 are presented using human friendly strings. In one embodiment the domain model generator 103 may place strings and concatenation operators to create URIs in the tripleView and the SQL query engine itself will produce the correct SPARQL RDF result 106. FIG. 10(a) illustrates a fragment of a SQL create view command where the embodiment relies on SQL post-processing 206 to form URIs. FIG. 10(b) illustrates a fragment of a SQL create view command embodying the SQL query engine implements the creation of the required RDF, URI syntax.

Another embodiment of SQL post-processing 206 to form URIs, may be used. Most triple stores implemented as triple tables do not store strings in the triple table. Instead, they store keys or hash values in the triple. These keys are then mapped to a look up table, like a dictionary. In this other embodiment, the dictionary of replacement strings that is defined concomitant with the synthesized domain model, is used by the post-processor to emit the correct URI. In a further extension of this embodiment, if the user is not satisfied with the judgment to fill in the gap between the domain semantics captured, it is still possible to add missing semantics using techniques based on other wrapper-based approaches.

Optimizations:

Upon succeeding in wrapping a database and reviewing query plans, two relational database optimizations are important for effective execution of SPARQL queries: (1) detection of unsatisfiable conditions and (2) self-join elimination. These two optimizations are among semantic query optimization (SQO) methods known in the art. In SQO, the objective is to leverage the semantics, represented in integrity constraints, for query optimization. The basic idea is to use integrity constraints to rewrite a query into a semantically equivalent one and eliminate contradictions.

Consider the following SPARQL query:

SELECT ?label ?pnum1

WHERE{?x label ?label.

FIG. 12 shows the logical query plan. In this query plan, for each of the triple patterns in the query, the TripleView is accessed which is consequently a union of all the SFW statements.

Detection of Unsatisfiable Conditions

The idea of this optimization is to determine that the query result will be empty if the existence of another answer would violate some integrity constraint in the database. This would imply that the answer to the query is null and therefore the database does not need to be accessed. The invention benefits from this optimization by two different transformations, which are referred to as elimination by contradiction and unnecessary union sub-tree pruning.

Elimination by Contradiction: In the inventions TripleView, the constant value of a SFW statement acts as the integrity constraint. Consider the following TripleView:

CREATE VIEW TripleView_varchar(s,spk,p,o,opk) AS

SELECT ‘Person’+id as s, id as spk, ‘name’ as p, name as o, null as opk FROM Person WHERE name IS NOT NULL

UNION ALL

SELECT ‘Product’+id as s, id as spk, ‘label’ as p, label as o, null as opk FROM Product WHERE label IS NOT NULL

The first SFW statement has a constant predicate value name while the second SFW statement has a constant predicate value label. Now consider the following query “return all labels of Products”:

SELECT o FROM TripleView_varchar WHERE p=‘label’

The first SFW statement defines p=name to every single query while the query contains p=label. With this contradiction, this particular SFW statement can be substituted by the empty set. The transformation is as follows:

T and contradiction(T) □ { }

Unnecessary Union Sub-tree Pruning: Since the TripleView definitions include all possible columns, any specific SPARQL query will only need a small subset of the statements defined in the view. Once the elimination by contradiction transformation happens, all the unnecessary UNION ALL conditions are removed. For example:

UNION ALL ({ }, T)=T

UNION ALL ({ }, S, T)=UNION ALL (S, T)

When these two transformations are combined, the unreferenced portions of each view definition can reduce the TripleView to the specific subset of referenced columns in a manner that is very similar to standard On-Line Transaction Processing (OLTP) queries. These queries are well supported by existing commercial optimizers. With this optimization, the query plan in FIG. 12 is optimized from having the entire TripleView to just the exact SFW statements that are needed, as shown in FIG. 13.

Self-Join Elimination

Join elimination is one of the several SQO techniques, where integrity constraints are used to eliminate a literal clause in the query. This implies that a join could also be eliminated if the table that is being dropped does not contribute any attributes in the results. The type of join elimination that is desired is the self-join elimination, where a join occurs between the same tables. There are two different cases: self-join elimination of attributes and self-join elimination of selections.

Self-join elimination of projection: This occurs when attributes from the same table are projected individually and then joined together. For example, the following un-optimized query projects the attributes label and pnum1 from the table product where id=1, however each attribute projection is done separately and then joined:

SELECT p1.label, p2.pnum1 FROM product p1, product p2 WHERE p1.id=1 and p1.id=p2.id Given a self-join elimination optimization, the previous query should be rewritten to:

SELECT label, pnum1 FROM product WHERE id=1

Self-join elimination of selection: This occurs when a selection on attributes from the same table are done individually and then joined together. For example, the following un-optimized query selects on pnum1>100 and pnum2<500 separately and then joined:

SELECT p1.id FROM product p1, product p2 WHERE p1.pnum1>100 and p2.pnum2<500 and p1.id=p2. id

Given a self-join elimination optimization, the previous query should be rewritten to:

SELECT id FROM product WHERE pnum1>100 and pnum2<500

FIG. 14 shows the final query plan after the self-joins are removed.

Operating Environment:

The system is typically comprised of a central server that is connected by a data network to a user's computer. The central server may be comprised of one or more computers connected to one or more mass storage devices. The precise architecture of the central server does not limit the claimed invention. In addition, the data network may operate with several levels, such that the user's computer is connected through a fire wall to one server, which routes communications to another server that executes the disclosed methods. The precise details of the data network architecture does not limit the claimed invention. Further, the user's computer may be a laptop or desktop type of personal computer. It can also be a cell phone, smart phone or other handheld device. The precise form factor of the user's computer does not limit the claimed invention. In one embodiment, the user's computer is omitted, and instead a separate computing functionality provided that works with the central server. This may be housed in the central server or operatively connected to it. In this case, an operator can take a telephone call from a customer and input into the computing system the customer's data in accordance with the disclosed method. Further, the user may receive from and transmit data to the central server by means of the Internet, whereby the user accesses an account using an Internet web-browser and browser displays an interactive web page operatively connected to the central server. The central server transmits and receives data in response to data and commands transmitted from the browser in response to the customer's actuation of the browser user interface. Some steps of the invention may be performed on the user's computer and interim results transmitted to a server. These interim results may be processed at the server and final results passed back to the user.

The invention may also be entirely executed on one or more servers. A server may be a computer comprised of a central processing unit with a mass storage device and a network connection. In addition a server can include multiple of such computers connected together with a data network or other data transfer connection, or, multiple computers on a network with network accessed storage, in a manner that provides such functionality as a group. Practitioners of ordinary skill will recognize that functions that are accomplished on one server may be partitioned and accomplished on multiple servers that are operatively connected by a computer network by means of appropriate inter process communication. In addition, the access of the web site can be by means of an Internet browser accessing a secure or public page or by means of a client program running on a local computer that is connected over a computer network to the server. A data message and data upload or download can be delivered over the Internet using typical protocols, including TCP/IP, HTTP, SMTP, RPC, FTP or other kinds of data communication protocols that permit processes running on two remote computers to exchange information by means of digital network communication. As a result a data message can be a data packet transmitted from or received by a computer containing a destination network address, a destination process or application identifier, and data values that can be parsed at the destination computer located at the destination network address by the destination application in order that the relevant data values are extracted and used by the destination application.

It should be noted that the flow diagrams are used herein to demonstrate various aspects of the invention, and should not be construed to limit the present invention to any particular logic flow or logic implementation. The described logic may be partitioned into different logic blocks (e.g., programs, modules, functions, or subroutines) without changing the overall results or otherwise departing from the true scope of the invention. Oftentimes, logic elements may be added, modified, omitted, performed in a different order, or implemented using different logic constructs (e.g., logic gates, looping primitives, conditional logic, and other logic constructs) without changing the overall results or otherwise departing from the true scope of the invention.

The method described herein can be executed on a computer system, generally comprised of a central processing unit (CPU) that is operatively connected to a memory device, data input and output circuitry (IO) and computer data network communication circuitry. Computer code executed by the CPU can take data received by the data communication circuitry and store it in the memory device. In addition, the CPU can take data from the I/O circuitry and store it in the memory device. Further, the CPU can take data from a memory device and output it through the IO circuitry or the data communication circuitry. The data stored in memory may be further recalled from the memory device, further processed or modified by the CPU in the manner described herein and restored in the same memory device or a different memory device operatively connected to the CPU including by means of the data network circuitry. The memory device can be any kind of data storage circuit or magnetic storage or optical device, including a hard disk, optical disk or solid state memory. The IO devices can include a display screen, loudspeakers, microphone and a movable mouse that indicate to the computer the relative location of a cursor position on the display and one or more buttons that can be actuated to indicate a command.

Examples of well known computing systems, environments, and/or configurations that may be suitable for use with the invention include, but are not limited to, personal computers, server computers, hand-held, laptop or mobile computer or communications devices such as cell phones and PDA's, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like. The computer can operate a program that receives from a remote server a data file that is passed to a program that interprets the data in the data file and commands the display device to present particular text, images, video, audio and other objects. The program can detect the relative location of the cursor when the mouse button is actuated, and interpret a command to be executed based on location on the indicated relative location on the display when the button was pressed. The data file may be an HTML document, the program a web-browser program and the command a hyper-link that causes the browser to request a new HTML document from another remote data network address location.

The Internet is a computer network that permits customers operating a personal computer to interact with computer servers located remotely and to view content that is delivered from the servers to the personal computer as data files over the network. In one kind of protocol, the servers present webpages that are rendered on the customer's personal computer using a local program known as a browser. The browser receives one or more data files from the server that are displayed on the customer's personal computer screen. The browser seeks those data files from a specific address, which is represented by an alphanumeric string called a Universal Resource Locator (URL). However, the webpage may contain components that are downloaded from a variety of URL's or IP addresses. A website is a collection of related URL's, typically all sharing the same root address or under the control of some entity.

Computer program logic implementing all or part of the functionality previously described herein may be embodied in various forms, including, but in no way limited to, a source code form, a computer executable form, and various intermediate forms (e.g., forms generated by an assembler, compiler, linker, or locator.) Source code may include a series of computer program instructions implemented in any of various programming languages (e.g., an object code, an assembly language, or a high-level language such as FORTRAN, C, C++, JAVA, or HTML) for use with various operating systems or operating environments. The source code may define and use various data structures and communication messages. The source code may be in a computer executable form (e.g., via an interpreter), or the source code may be converted (e.g., via a translator, assembler, or compiler) into a computer executable form.

The invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform particular tasks or implement particular abstract data types. The computer program and data may be fixed in any form (e.g., source code form, computer executable form, or an intermediate form) either permanently or transitorily in a tangible storage medium, such as a semiconductor memory device (e.g., a RAM, ROM, PROM, EEPROM, or Flash-Programmable RAM), a magnetic memory device (e.g., a diskette or fixed hard disk), an optical memory device (e.g., a CD-ROM or DVD), a PC card (e.g., PCMCIA card), or other memory device. The computer program and data may be fixed in any form in a signal that is transmittable to a computer using any of various communication technologies, including, but in no way limited to, analog technologies, digital technologies, optical technologies, wireless technologies, networking technologies, and internetworking technologies. The computer program and data may be distributed in any form as a removable storage medium with accompanying printed or electronic documentation (e.g., shrink wrapped software or a magnetic tape), preloaded with a computer system (e.g., on system ROM or fixed disk), or distributed from a server or electronic bulletin board over the communication system (e.g., the Internet or World Wide Web.)

The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices. Practitioners of ordinary skill will recognize that the invention may be executed on one or more computer processors that are linked using a data network, including, for example, the Internet. In another embodiment, different steps of the process can be executed by one or more computers and storage devices geographically separated by connected by a data network in a manner so that they operate together to execute the process steps. In one embodiment, a user's computer can run an application that causes the user's computer to transmit a stream of one or more data packets across a data network to a second computer, referred to here as a server. The server, in turn, may be connected to one or more mass data storage devices where the database is stored. The server can execute a program that receives the transmitted packet and interpret the transmitted data packets in order to extract database query information. The server can then execute the remaining steps of the invention by means of accessing the mass storage devices to derive the desired result of the query. Alternatively, the server can transmit the query information to another computer that is connected to the mass storage devices, and that computer can execute the invention to derive the desired result. The result can then be transmitted back to the user's computer by means of another stream of one or more data packets appropriately addressed to the user's computer. In one embodiment, the relational database may be housed in one or more operatively connected servers operatively connected to computer memory, for example, disk drives. The invention may be executed on another computer that is presenting a user a semantic web representation of available data. That second computer can execute the invention by communicating with the set of servers that house the relational database. In yet another embodiment, the initialization of the relational database may be prepared on the set of servers and the interaction with the user's computer occur at a different place in the overall process.

The described embodiments of the invention are intended to be exemplary and numerous variations and modifications will be apparent to those skilled in the art. All such variations and modifications are intended to be within the scope of the present invention as defined in the appended claims. Although the present invention has been described and illustrated in detail, it is to be clearly understood that the same is by way of illustration and example only, and is not to be taken by way of limitation. It is appreciated that various features of the invention which are, for clarity, described in the context of separate embodiments may also be provided in combination in a single embodiment. Conversely, various features of the invention which are, for brevity, described in the context of a single embodiment may also be provided separately or in any suitable combination. It is appreciated that the particular embodiment described in the Appendices is intended only to provide an extremely detailed disclosure of the present invention and is not intended to be limiting.

The foregoing description discloses only exemplary embodiments of the invention. Modifications of the above disclosed apparatus and methods which fall within the scope of the invention will be readily apparent to those of ordinary skill in the art. Accordingly, while the present invention has been disclosed in connection with exemplary embodiments thereof, it should be understood that other embodiments may fall within the spirit and scope of the invention as defined by the following claims.

Miranker, Daniel Paul, Sequeda, Juan Federico

Patent Priority Assignee Title
Patent Priority Assignee Title
10102258, Jun 19 2016 DATA WORLD, INC Collaborative dataset consolidation via distributed computer networks
10176234, Nov 05 2014 Ab Initio Technology LLC; Ab Initio Software LLC; AB INITIO ORIGINAL WORKS LLC Impact analysis
10216860, Oct 22 2010 DATA WORLD, INC System for accessing a relational database using semantic queries
10324925, Jun 19 2016 DATA WORLD, INC Query generation for collaborative datasets
10346429, Jun 19 2016 DATA WORLD, INC Management of collaborative datasets via distributed computer networks
10353911, Jun 19 2016 DATA WORLD, INC Computerized tools to discover, form, and analyze dataset interrelations among a system of networked collaborative datasets
10438013, Jun 19 2016 DATA WORLD, INC Platform management of integrated access of public and privately-accessible datasets utilizing federated query generation and query schema rewriting optimization
10452677, Jun 19 2016 DATA WORLD, INC Dataset analysis and dataset attribute inferencing to form collaborative datasets
10452975, Jun 19 2016 DATA WORLD, INC Platform management of integrated access of public and privately-accessible datasets utilizing federated query generation and query schema rewriting optimization
6144962, Oct 15 1996 MICRO FOCUS LLC Visualization of web sites and hierarchical data structures
6317752, Dec 09 1998 International Business Machines Corporation Version testing in database mining
6529909, Aug 31 1999 Accenture Global Services Limited Method for translating an object attribute converter in an information services patterns environment
6768986, Apr 03 2000 Business Objects Software Ltd Mapping of an RDBMS schema onto a multidimensional data model
6961728, Nov 28 2000 SYNCORDANT LLC System and methods for highly distributed wide-area data management of a network of data sources through a database interface
7080090, Apr 27 2000 Oracle International Corporation Allocation measures and metric calculations in star schema multi-dimensional data warehouse
7146375, Jan 25 2002 DECODE GENETICS CHF Inference control method in a data cube
7680862, Apr 18 2005 Oracle International Corporation Rewriting table functions as SQL strings
7761407, Oct 10 2006 MEDALLIA, INC Use of primary and secondary indexes to facilitate aggregation of records of an OLAP data cube
7836063, Dec 15 2003 LinkedIn Corporation Customizable data translation method and system
7853081, Apr 02 2007 British Telecommunications public limited company Identifying data patterns
7856416, Apr 22 2008 LinkedIn Corporation Automated latent star schema discovery tool
7877350, Jun 27 2005 Ab Initio Software LLC; Architecture LLC; Ab Initio Technology LLC Managing metadata for graph-based computations
7953695, Jun 06 2000 Fair Isaac Corporation System and method for integrated data mart defining start schema model processing business contact data from multiple contact channels
7987179, Nov 16 2007 International Business Machines Corporation Method and apparatus for optimizing queries over vertically stored database
8037108, Jul 22 2009 Adobe Inc Conversion of relational databases into triplestores
8060472, Mar 10 2009 Canon Kabushiki Kaisha Information processing system, information processing method, and computer-readable storage medium
8099382, Apr 13 2007 International Business Machines Corporation Method and system for mapping multi-dimensional model to data warehouse schema
8170981, Dec 08 2010 DASSAULT SYSTEMES AMERICAS CORP Computer method and system for combining OLTP database and OLAP database environments
8275784, Mar 31 2009 International Business Machines Corporation Translation system and method for SPARQL queries
8429179, Dec 16 2009 Board of Regents Method and system for ontology driven data collection and processing
8521565, Feb 22 2008 Epic Systems Corporation Electronic health record system utilizing disparate record sources
8538985, Mar 11 2008 International Business Machines Corporation Efficient processing of queries in federated database systems
8583631, Jan 31 2013 SPLUNK Inc.; SPLUNK INC Metadata tracking for a pipelined search language (data modeling for fields)
8616443, May 28 2010 SECURITYMETRICS, INC Systems and methods employing delimiter searches to identify sensitive information in data
8719252, Oct 22 2010 DATA WORLD, INC Accessing relational databases as resource description framework databases
8762160, Mar 23 2005 Amadeus S.A.S. Purchaser value optimization system
8799240, Jun 23 2011 WELLS FARGO BANK, N A System and method for investigating large amounts of data
8831070, Jun 24 2010 STICHTING IMEC NEDERLAND Method and apparatus for start of frame delimiter detection
8843502, Jun 24 2011 Microsoft Technology Licensing, LLC Sorting a dataset of incrementally received data
8892513, Oct 31 2011 U9T Inc Method, process and system to atomically structure varied data and transform into context associated data
8935272, Mar 17 2013 ALATION, INC Curated answers community automatically populated through user query monitoring
8943313, Jul 19 2011 RPX Corporation Fine-grained security in federated data sets
8965915, Mar 17 2013 ALATION, INC Assisted query formation, validation, and result previewing in a database having a complex schema
8990236, Oct 09 2009 QRATIVE LTD Method, computer product program and system for analysis of data
8996559, Mar 17 2013 ALATION, INC Assisted query formation, validation, and result previewing in a database having a complex schema
9002860, Feb 06 2012 GOOGLE LLC Associating summaries with pointers in persistent data structures
9218365, Dec 15 2011 Yeda Research and Development Co. Ltd. Device, system, and method of visual inference by collaborative composition
9244952, Mar 17 2013 ALATION, INC Editable and searchable markup pages automatically populated through user query monitoring
9396283, Oct 22 2010 DATA WORLD, INC System for accessing a relational database using semantic queries
9495429, Jul 09 2010 Automatic synthesis and presentation of OLAP cubes from semantically enriched data sources
9607042, Sep 16 2013 MasterCard International Incorporated Systems and methods for optimizing database queries
9690792, Aug 26 2014 Edison Vault, LLC Access control for unprotected data storage system endpoints
9696981, Apr 27 2011 ALTAIR ENGINEERING, INC Incremental deployment of computer software program logic
9710526, Jun 25 2014 Microsoft Technology Licensing, LLC Data set preview technology
9710568, Jan 29 2013 Oracle International Corporation Publishing RDF quads as relational views
9720958, Oct 24 2014 KYNDRYL, INC User driven business data aggregation and cross mapping framework
9798737, Jul 12 2012 Open Text SA ULC Systems and methods for in-place records management and content lifecycle management
20020143755,
20030093597,
20030120681,
20030208506,
20040064456,
20050010550,
20050010566,
20050234957,
20050246357,
20050278139,
20060129605,
20060168002,
20060218024,
20060235837,
20070027904,
20070179760,
20070203933,
20080046427,
20080091634,
20080162550,
20080162999,
20080216060,
20080240566,
20080256026,
20080294996,
20080319829,
20090006156,
20090018996,
20090106734,
20090132474,
20090132503,
20090138437,
20090150313,
20090157630,
20090182710,
20090234799,
20090300054,
20100114885,
20100235384,
20100241644,
20100250576,
20100250577,
20110202560,
20120016895,
20120036162,
20120102022,
20120154633,
20120179644,
20120254192,
20120278902,
20120284301,
20120310674,
20120330908,
20120330979,
20130031208,
20130031364,
20130110775,
20130114645,
20130138681,
20130156348,
20130238667,
20130262443,
20140006448,
20140019426,
20140067762,
20140198097,
20140214857,
20140279640,
20140279845,
20140280067,
20140280286,
20140280287,
20140337331,
20150052125,
20150081666,
20150095391,
20150120643,
20150142829,
20150186653,
20150213109,
20150234884,
20150269223,
20160055184,
20160063017,
20160092090,
20160092474,
20160092475,
20160117362,
20160132572,
20160147837,
20160232457,
20160275204,
20160283551,
20160292206,
20160314143,
20160321316,
20160322082,
20160371355,
20170053130,
20170075973,
20170132401,
20170161323,
20170177729,
20170228405,
20170316070,
20170357653,
20170364538,
20170364539,
20170364553,
20170364564,
20170364568,
20170364569,
20170364570,
20170364694,
20170364703,
20170371881,
20180025027,
20180032327,
20180210936,
20180262864,
20180314705,
20190005104,
20190034491,
20190042606,
20190050445,
20190050459,
20190065567,
20190065569,
20190066052,
20190079968,
20190095472,
20190121807,
20190266155,
20190272279,
20190317961,
20190347244,
20190347258,
20190347259,
20190347268,
20190347347,
20190370230,
20190370262,
20190370266,
20190370481,
20200073865,
20200074298,
20200097504,
CA2820994,
CN103425734,
EP2631817,
EP2631819,
EP2685394,
GB2519779,
JP2013175181,
JP2013246828,
WO2012054860,
WO2017190153,
WO2017222927,
WO2018156551,
WO2018164971,
////////
Executed onAssignorAssigneeConveyanceFrameReelDoc
Oct 22 2010MIRANKER, DANIEL P Board of Regents of the University of Texas SystemASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS 0494190298 pdf
Oct 22 2010SEQUEDA, JUAN F Board of Regents of the University of Texas SystemASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS 0494190298 pdf
Aug 25 2011Board of Regents of the University of Texas SystemMIRANKER, DANIEL P ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS 0485150926 pdf
Aug 25 2011Board of Regents of the University of Texas SystemSEQUEDA, JUAN F ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS 0485150926 pdf
Apr 27 2017MIRANKER, DANIEL PAULCAPSENTA, INC ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS 0486870097 pdf
May 01 2017SEQUEDA, JUANCAPSENTA, INC ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS 0486870097 pdf
Jan 18 2019data.world, Inc.(assignment on the face of the patent)
May 31 2019CAPSENTA, INC DATA WORLD, INC ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS 0494190484 pdf
Date Maintenance Fee Events
Jan 18 2019BIG: Entity status set to Undiscounted (note the period is included in the code).
Oct 31 2020SMAL: Entity status set to Small.
Jul 29 2024REM: Maintenance Fee Reminder Mailed.
Dec 09 2024M2551: Payment of Maintenance Fee, 4th Yr, Small Entity.
Dec 09 2024M2554: Surcharge for late Payment, Small Entity.


Date Maintenance Schedule
Dec 08 20234 years fee payment window open
Jun 08 20246 months grace period start (w surcharge)
Dec 08 2024patent expiry (for year 4)
Dec 08 20262 years to revive unintentionally abandoned end. (for year 4)
Dec 08 20278 years fee payment window open
Jun 08 20286 months grace period start (w surcharge)
Dec 08 2028patent expiry (for year 8)
Dec 08 20302 years to revive unintentionally abandoned end. (for year 8)
Dec 08 203112 years fee payment window open
Jun 08 20326 months grace period start (w surcharge)
Dec 08 2032patent expiry (for year 12)
Dec 08 20342 years to revive unintentionally abandoned end. (for year 12)