{"id":{"repo_id":"greece","oai_identifier":"oai:10442/30321"},"canonical_url":"https://search.ndltd.org/etd/greece/oai:10442/30321","repository":{"repo_id":"greece","name":"Greek National Archive of PhD Theses","base_url":"https://phdtheses.ekt.gr/eadd_oai/request"},"display":{"title":"Query optimization under bag and bag-set semantics for multiple heterogeneous data sources","abstract":"In this thesis, we investigate techniques for query optimization using a set of views, considering bothrelational and XML databases. In particular, we focus on three fundamental problems of queryoptimization; which are the query containment, the query rewriting and the view selection.For relational databases we focus on the class of select-project-join SQL queries with equalitycomparisons, a.k.a. conjunctive queries (CQs for short). We consider two kinds of semantics totheoretically approximate the SQL semantics: the bag (multiple occurrences of the same tuple areallowed in both base relations and answers of queries) and bag-set semantics (the base relations aresets and the operators are liable for bag-results). For XML databases, we focus on XPath. Especially,we focus on the major fragments of XPath which contain two of the constructs: wildcard, descendantedge and branches.Query containment under both bag and bag-set semantics is investigated through a detailed analysisof special cases of CQs. The complexity in each case is given, as well. For the general case, theproblem remains open for more than a decade. Moreover, we give necessary and sufficientconditions for deciding both containment and equivalence for unions of XPath queries; a problemwhich was not investigated in depth, in the past.The problem of finding an equivalent rewriting is also investigated for both relational and XPathqueries. In particular, for relational queries, we describe the requirements that a set of views have tosatisfy in order to give an equivalent rewriting of a CQ under both bag and bag-set semantics. In thecase of XML databases, we investigate the problem of rewriting an XPath query using multiple views,and prove that in the case that the query contains both descendant edges and wildcards, the unionoperator may be required for finding an equivalent rewriting.The view selection is investigated for workloads of CQs under both bag and bag-set semantics.Especially, we aim to limit the search space of candidate viewsets. We start with the general case,where we give a tight condition that candidate views can satisfy and still the search space doescontain at least one optimal solution. Then we study special cases. We show that for chain queryworkloads under both bag and bag-set semantics, taking only chain views may miss optimal solution,whereas, if we further limit the queries to be path queries, then under bag semantics, path viewssuffice.","abstract_html":"In this thesis, we investigate techniques for query optimization using a set of views, considering bothrelational and XML databases. In particular, we focus on three fundamental problems of queryoptimization; which are the query containment, the query rewriting and the view selection.For relational databases we focus on the class of select-project-join SQL queries with equalitycomparisons, a.k.a. conjunctive queries (CQs for short). We consider two kinds of semantics totheoretically approximate the SQL semantics: the bag (multiple occurrences of the same tuple areallowed in both base relations and answers of queries) and bag-set semantics (the base relations aresets and the operators are liable for bag-results). For XML databases, we focus on XPath. Especially,we focus on the major fragments of XPath which contain two of the constructs: wildcard, descendantedge and branches.Query containment under both bag and bag-set semantics is investigated through a detailed analysisof special cases of CQs. The complexity in each case is given, as well. For the general case, theproblem remains open for more than a decade. Moreover, we give necessary and sufficientconditions for deciding both containment and equivalence for unions of XPath queries; a problemwhich was not investigated in depth, in the past.The problem of finding an equivalent rewriting is also investigated for both relational and XPathqueries. In particular, for relational queries, we describe the requirements that a set of views have tosatisfy in order to give an equivalent rewriting of a CQ under both bag and bag-set semantics. In thecase of XML databases, we investigate the problem of rewriting an XPath query using multiple views,and prove that in the case that the query contains both descendant edges and wildcards, the unionoperator may be required for finding an equivalent rewriting.The view selection is investigated for workloads of CQs under both bag and bag-set semantics.Especially, we aim to limit the search space of candidate viewsets. We start with the general case,where we give a tight condition that candidate views can satisfy and still the search space doescontain at least one optimal solution. Then we study special cases. We show that for chain queryworkloads under both bag and bag-set semantics, taking only chain views may miss optimal solution,whereas, if we further limit the queries to be path queries, then under bag semantics, path viewssuffice.","abstract_has_math":false,"creators":["Damigos, Matthew","Δαμίγος, Ματθαίος"],"institution":"National Technical University of Athens (NTUA)","degree_name":null,"degree_level":null,"degree_discipline":null,"degree_department":null,"school":null,"contributors":[],"advisors":[],"committee_chairs":[],"committee_members":[],"year":2011,"date_issued":"2011","date_published":"2011","updated_at":"2026-11-18T21:21:49Z","subjects":["Βελτιστοποίηση ερωτημάτων","Σημασιολογία πολυσυνόλου","Σημασιολογία συνόλου-πολυσυνόλου","Συζευκτικά ερωτήματα","Επιλογή όψεων","Μετασχηματισμός ερωτημάτων","Περιεκτικότητα ερωτημάτων","Ετερογενείς πηγές πληροφόρησης","Query optimization","Bag semantics","Bag-set semantics","Conjuctive queries","View selection","Query rewriting","Query containment","Heterogeneous data sources","Επιστήμες Μηχανικού και Τεχνολογία","Επιστήμη Ηλεκτρολόγου Μηχανικού, Ηλεκτρονικού Μηχανικού, Μηχανικού Η/Υ","Engineering and Technology","Electrical Engineering, Electronic Engineering, Information Engineering"],"languages":["eng"],"rights":[],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier","label":"Identifier","values":["http://hdl.handle.net/10442/hedi/30321"],"render_values":[{"text":"http://hdl.handle.net/10442/hedi/30321","href":"https://hdl.handle.net/10442/hedi/30321","code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://doi.org/10.12681/eadd/30321","outbound_label":"DOI","outbound_source":"dc:identifier","record_url":"https://doi.org/10.12681/eadd/30321","record_label":"Repository record","record_kind":"doi","record_source":"dc:identifier","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Agreece%3Aoai%3A10442%2F30321","prefix":"oai_dc"},"source_record":{"url":"https://phdtheses.ekt.gr/eadd_oai/request?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3A10442%2F30321","prefix":"oai_dc"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:creator","label":"Author","values":["Damigos, Matthew","Δαμίγος, Ματθαίος"]},{"key":"dc:creator.fathername","label":"Dc Creator Fathername","values":["Georgios"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date","label":"Dc Date","values":["2011"]},{"key":"dc:publisher","label":"Institution","values":["National Technical University of Athens (NTUA)","Εθνικό Μετσόβιο Πολυτεχνείο (ΕΜΠ)"]},{"key":"dc:type","label":"Dc Type","values":["PhD Thesis"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Βελτιστοποίηση ερωτημάτων","Σημασιολογία πολυσυνόλου","Σημασιολογία συνόλου-πολυσυνόλου","Συζευκτικά ερωτήματα","Επιλογή όψεων","Μετασχηματισμός ερωτημάτων","Περιεκτικότητα ερωτημάτων","Ετερογενείς πηγές πληροφόρησης","Query optimization","Bag semantics","Bag-set semantics","Conjuctive queries","View selection","Query rewriting","Query containment","Heterogeneous data sources","Επιστήμες Μηχανικού και Τεχνολογία","Επιστήμη Ηλεκτρολόγου Μηχανικού, Ηλεκτρονικού Μηχανικού, Μηχανικού Η/Υ","Engineering and Technology","Electrical Engineering, Electronic Engineering, Information Engineering"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language","label":"Dc Language","values":["eng"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier","label":"Identifier","values":["10.12681/eadd/30321","http://hdl.handle.net/10442/hedi/30321"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description","label":"Description","values":["In this thesis, we investigate techniques for query optimization using a set of views, considering bothrelational and XML databases. In particular, we focus on three fundamental problems of queryoptimization; which are the query containment, the query rewriting and the view selection.For relational databases we focus on the class of select-project-join SQL queries with equalitycomparisons, a.k.a. conjunctive queries (CQs for short). We consider two kinds of semantics totheoretically approximate the SQL semantics: the bag (multiple occurrences of the same tuple areallowed in both base relations and answers of queries) and bag-set semantics (the base relations aresets and the operators are liable for bag-results). For XML databases, we focus on XPath. Especially,we focus on the major fragments of XPath which contain two of the constructs: wildcard, descendantedge and branches.Query containment under both bag and bag-set semantics is investigated through a detailed analysisof special cases of CQs. The complexity in each case is given, as well. For the general case, theproblem remains open for more than a decade. Moreover, we give necessary and sufficientconditions for deciding both containment and equivalence for unions of XPath queries; a problemwhich was not investigated in depth, in the past.The problem of finding an equivalent rewriting is also investigated for both relational and XPathqueries. In particular, for relational queries, we describe the requirements that a set of views have tosatisfy in order to give an equivalent rewriting of a CQ under both bag and bag-set semantics. In thecase of XML databases, we investigate the problem of rewriting an XPath query using multiple views,and prove that in the case that the query contains both descendant edges and wildcards, the unionoperator may be required for finding an equivalent rewriting.The view selection is investigated for workloads of CQs under both bag and bag-set semantics.Especially, we aim to limit the search space of candidate viewsets. We start with the general case,where we give a tight condition that candidate views can satisfy and still the search space doescontain at least one optimal solution. Then we study special cases. We show that for chain queryworkloads under both bag and bag-set semantics, taking only chain views may miss optimal solution,whereas, if we further limit the queries to be path queries, then under bag semantics, path viewssuffice.","Στην συγκεκριμένη διατριβή, μελετάμε ανάπτυξη τεχνικών βελτιστοποίησης ερωτημάτων με τηνχρήση όψεων, σε σχεσιακές και XML βάσεις δεδομένων. Ειδικότερα, επικεντρωνόμαστε σταακόλουθα βασικά προβλήματα βελτιστοποίησης ερωτημάτων: την περιεκτικότητα ερωτημάτων, τηναναδιατύπωση ερωτημάτων και την επιλογή όψεων.Στις σχεσιακές βάσεις δεδομένων, επικεντρωνόμαστε στα συζευκτικά ερωτήματα (εν συντομία CQs),που αντιστοιχούν σε SQL ερωτήματα με χρήση των τελεστών select, project και join. Επίσης,χρησιμοποιούμε σημασιολογίες πολυσυνόλου (οι βασικές σχέσεις και οι απαντήσεις τωνερωτημάτων είναι πολυσύνολα) και συνόλου-πολυσυνόλου (οι βασικές σχέσεις είναι σύνολα, ενώ οιαπαντήσεις είναι πολυσύνολα) για να περιγράψουμε, θεωρητικά, την σημασιολογία της SQL. Γιαερωτήματα σε XML δεδομένα χρησιμοποιούμε την γλώσσα XPath, και ειδικότερα επικεντρωνόμαστεστις τρεις βασικές υποκλάσεις της γλώσσας, που σχηματίζεται από την χρήση δύο από τα τρίαβασικά συστατικά: wildcard ετικέτες (*), ακμές απογόνου (//) και κλαδιά ([ ]).Στο πλαίσιο της περιεκτικότητας ερωτημάτων μελετάμε το πρόβλημα, καθώς και την πολυπλοκότητατου, για βασικές υποκλάσεις των CQs. Για την γενική κλάση των CQs το πρόβλημα παραμένειανοικτό εδώ και μια δεκαετία. Επιπλέον, μελετάμε τα προβλήματα περιεκτικότητας και ισοδυναμίαςγια ενώσεις XPath ερωτημάτων.Για την αναδιατύπωση CQ ερωτημάτων, περιγράφουμε βασικές συνθήκες που πρέπει να πληρούν οιόψεις έτσι ώστε να υπάρχει μία ισοδύναμη αναδιατύπωση. Για τα XPath ερωτήματα πουσχηματίζονται από // και *, δείχνουμε ότι η χρήση του τελεστή ένωσης απαιτείται για την εύρεσηισοδύναμης αναδιατύπωσης.Το πρόβλημα επιλογής όψεων μελετάται για CQ ερωτήματα, όπου επικεντρωνόμαστε στονπεριορισμό του χώρου αναζήτησης βέλτιστων λύσεων. Ειδικότερα, δείχνομαι ότι εάν η επιλογή τουσυνόλου όψεων γίνεται βάσει συγκεκριμένων συνθηκών (ως προς την μορφή των όψεων), τότεεξασφαλίζεται η εύρεση τουλάχιστον μίας βέλτιστης λύσης για το πρόβλημα. Έπειτα,επικεντρωνόμενοι σε υποκλάσεις των CQ ερωτημάτων, δείχνουμε ότι για ένα σύνολο ερωτημάτωναλυσίδας, και για τις δύο σημασιολογίες, όψεις που ορίζονται, και αυτές, από ερωτήματα αλυσίδαςδεν επαρκούν, πάντα, για την εύρεση βέλτιστης λύσης. Στην περίπτωση, όμως, των ερωτημάτωνμονοπατιού, και θεωρώντας σημασιολογία πολυσυνόλου, δείχνουμε ότι οι όψεις που ορίζονται απόερωτήματα μονοπατιού μας εξασφαλίζουν την εύρεση τουλάχιστον μίας βέλτιστης λύσης για τοπρόβλημα επιλογής όψεων."]},{"key":"dc:title","label":"Title","values":["Query optimization under bag and bag-set semantics for multiple heterogeneous data sources","Βελτιστοποίηση ερωτημάτων χρησιμοποιώντας σημασιολογία πολυσυνόλου και συνόλου-πολυσυνόλου σε περιβάλλον ετερογενών πηγών πληροφόρησης"]}]}],"canonical_facts":{"dc:creator":["Damigos, Matthew","Δαμίγος, Ματθαίος"],"dc:creator.fathername":["Georgios"],"dc:date":["2011"],"dc:description":["In this thesis, we investigate techniques for query optimization using a set of views, considering bothrelational and XML databases. In particular, we focus on three fundamental problems of queryoptimization; which are the query containment, the query rewriting and the view selection.For relational databases we focus on the class of select-project-join SQL queries with equalitycomparisons, a.k.a. conjunctive queries (CQs for short). We consider two kinds of semantics totheoretically approximate the SQL semantics: the bag (multiple occurrences of the same tuple areallowed in both base relations and answers of queries) and bag-set semantics (the base relations aresets and the operators are liable for bag-results). For XML databases, we focus on XPath. Especially,we focus on the major fragments of XPath which contain two of the constructs: wildcard, descendantedge and branches.Query containment under both bag and bag-set semantics is investigated through a detailed analysisof special cases of CQs. The complexity in each case is given, as well. For the general case, theproblem remains open for more than a decade. Moreover, we give necessary and sufficientconditions for deciding both containment and equivalence for unions of XPath queries; a problemwhich was not investigated in depth, in the past.The problem of finding an equivalent rewriting is also investigated for both relational and XPathqueries. In particular, for relational queries, we describe the requirements that a set of views have tosatisfy in order to give an equivalent rewriting of a CQ under both bag and bag-set semantics. In thecase of XML databases, we investigate the problem of rewriting an XPath query using multiple views,and prove that in the case that the query contains both descendant edges and wildcards, the unionoperator may be required for finding an equivalent rewriting.The view selection is investigated for workloads of CQs under both bag and bag-set semantics.Especially, we aim to limit the search space of candidate viewsets. We start with the general case,where we give a tight condition that candidate views can satisfy and still the search space doescontain at least one optimal solution. Then we study special cases. We show that for chain queryworkloads under both bag and bag-set semantics, taking only chain views may miss optimal solution,whereas, if we further limit the queries to be path queries, then under bag semantics, path viewssuffice.","Στην συγκεκριμένη διατριβή, μελετάμε ανάπτυξη τεχνικών βελτιστοποίησης ερωτημάτων με τηνχρήση όψεων, σε σχεσιακές και XML βάσεις δεδομένων. Ειδικότερα, επικεντρωνόμαστε σταακόλουθα βασικά προβλήματα βελτιστοποίησης ερωτημάτων: την περιεκτικότητα ερωτημάτων, τηναναδιατύπωση ερωτημάτων και την επιλογή όψεων.Στις σχεσιακές βάσεις δεδομένων, επικεντρωνόμαστε στα συζευκτικά ερωτήματα (εν συντομία CQs),που αντιστοιχούν σε SQL ερωτήματα με χρήση των τελεστών select, project και join. Επίσης,χρησιμοποιούμε σημασιολογίες πολυσυνόλου (οι βασικές σχέσεις και οι απαντήσεις τωνερωτημάτων είναι πολυσύνολα) και συνόλου-πολυσυνόλου (οι βασικές σχέσεις είναι σύνολα, ενώ οιαπαντήσεις είναι πολυσύνολα) για να περιγράψουμε, θεωρητικά, την σημασιολογία της SQL. Γιαερωτήματα σε XML δεδομένα χρησιμοποιούμε την γλώσσα XPath, και ειδικότερα επικεντρωνόμαστεστις τρεις βασικές υποκλάσεις της γλώσσας, που σχηματίζεται από την χρήση δύο από τα τρίαβασικά συστατικά: wildcard ετικέτες (*), ακμές απογόνου (//) και κλαδιά ([ ]).Στο πλαίσιο της περιεκτικότητας ερωτημάτων μελετάμε το πρόβλημα, καθώς και την πολυπλοκότητατου, για βασικές υποκλάσεις των CQs. Για την γενική κλάση των CQs το πρόβλημα παραμένειανοικτό εδώ και μια δεκαετία. Επιπλέον, μελετάμε τα προβλήματα περιεκτικότητας και ισοδυναμίαςγια ενώσεις XPath ερωτημάτων.Για την αναδιατύπωση CQ ερωτημάτων, περιγράφουμε βασικές συνθήκες που πρέπει να πληρούν οιόψεις έτσι ώστε να υπάρχει μία ισοδύναμη αναδιατύπωση. Για τα XPath ερωτήματα πουσχηματίζονται από // και *, δείχνουμε ότι η χρήση του τελεστή ένωσης απαιτείται για την εύρεσηισοδύναμης αναδιατύπωσης.Το πρόβλημα επιλογής όψεων μελετάται για CQ ερωτήματα, όπου επικεντρωνόμαστε στονπεριορισμό του χώρου αναζήτησης βέλτιστων λύσεων. Ειδικότερα, δείχνομαι ότι εάν η επιλογή τουσυνόλου όψεων γίνεται βάσει συγκεκριμένων συνθηκών (ως προς την μορφή των όψεων), τότεεξασφαλίζεται η εύρεση τουλάχιστον μίας βέλτιστης λύσης για το πρόβλημα. Έπειτα,επικεντρωνόμενοι σε υποκλάσεις των CQ ερωτημάτων, δείχνουμε ότι για ένα σύνολο ερωτημάτωναλυσίδας, και για τις δύο σημασιολογίες, όψεις που ορίζονται, και αυτές, από ερωτήματα αλυσίδαςδεν επαρκούν, πάντα, για την εύρεση βέλτιστης λύσης. Στην περίπτωση, όμως, των ερωτημάτωνμονοπατιού, και θεωρώντας σημασιολογία πολυσυνόλου, δείχνουμε ότι οι όψεις που ορίζονται απόερωτήματα μονοπατιού μας εξασφαλίζουν την εύρεση τουλάχιστον μίας βέλτιστης λύσης για τοπρόβλημα επιλογής όψεων."],"dc:identifier":["10.12681/eadd/30321","http://hdl.handle.net/10442/hedi/30321"],"dc:language":["eng"],"dc:publisher":["National Technical University of Athens (NTUA)","Εθνικό Μετσόβιο Πολυτεχνείο (ΕΜΠ)"],"dc:subject":["Βελτιστοποίηση ερωτημάτων","Σημασιολογία πολυσυνόλου","Σημασιολογία συνόλου-πολυσυνόλου","Συζευκτικά ερωτήματα","Επιλογή όψεων","Μετασχηματισμός ερωτημάτων","Περιεκτικότητα ερωτημάτων","Ετερογενείς πηγές πληροφόρησης","Query optimization","Bag semantics","Bag-set semantics","Conjuctive queries","View selection","Query rewriting","Query containment","Heterogeneous data sources","Επιστήμες Μηχανικού και Τεχνολογία","Επιστήμη Ηλεκτρολόγου Μηχανικού, Ηλεκτρονικού Μηχανικού, Μηχανικού Η/Υ","Engineering and Technology","Electrical Engineering, Electronic Engineering, Information Engineering"],"dc:title":["Query optimization under bag and bag-set semantics for multiple heterogeneous data sources","Βελτιστοποίηση ερωτημάτων χρησιμοποιώντας σημασιολογία πολυσυνόλου και συνόλου-πολυσυνόλου σε περιβάλλον ετερογενών πηγών πληροφόρησης"],"dc:type":["PhD Thesis"]},"updated_at":"2026-11-18T21:21:49Z"}