Rewriting with Acyclic Queries: Mind Your Head

The paper studies the rewriting problem, that is, the decision problem whether, for a given conjunctive query \(Q\) and a set \(\mathcal{V}\) of views, there is a conjunctive query \(Q'\) over \(\mathcal{V}\) that is equivalent to \(Q\), for cases where the query, the views, and/or the desired...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Veröffentlicht in:arXiv.org 2023-11
Hauptverfasser: Geck, Gaetano, Keppeler, Jens, Schwentick, Thomas, Spinrath, Christopher
Format: Artikel
Sprache:eng
Schlagworte:
Online-Zugang:Volltext
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
container_end_page
container_issue
container_start_page
container_title arXiv.org
container_volume
creator Geck, Gaetano
Keppeler, Jens
Schwentick, Thomas
Spinrath, Christopher
description The paper studies the rewriting problem, that is, the decision problem whether, for a given conjunctive query \(Q\) and a set \(\mathcal{V}\) of views, there is a conjunctive query \(Q'\) over \(\mathcal{V}\) that is equivalent to \(Q\), for cases where the query, the views, and/or the desired rewriting are acyclic or even more restricted. It shows that, if \(Q\) itself is acyclic, an acyclic rewriting exists if there is any rewriting. An analogous statement also holds for free-connex acyclic, hierarchical, and q-hierarchical queries. Regarding the complexity of the rewriting problem, the paper identifies a border between tractable and (presumably) intractable variants of the rewriting problem: for schemas of bounded arity, the acyclic rewriting problem is NP-hard, even if both \(Q\) and the views in \(\mathcal{V}\) are acyclic or hierarchical. However, it becomes tractable if the views are free-connex acyclic (i.e., in a nutshell, their body is (i) acyclic and (ii) remains acyclic if their head is added as an additional atom).
doi_str_mv 10.48550/arxiv.2201.05129
format Article
fullrecord <record><control><sourceid>proquest_arxiv</sourceid><recordid>TN_cdi_arxiv_primary_2201_05129</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><sourcerecordid>2619613901</sourcerecordid><originalsourceid>FETCH-LOGICAL-a959-b055fb65964ecc029786b5b8d1f2cab7453a800f24315f0bc5005e29f78756243</originalsourceid><addsrcrecordid>eNotj1FLwzAUhYMgOOZ-gE8GfG69uelNG9_GUCdMRNmLTyVJU82Y3Uxbt_176-bTgcPh8H2MXQlIs4IIbk3ch58UEUQKJFCfsRFKKZIiQ7xgk7ZdAQCqHInkiKVvfhdDF5oPvgvdJ5-6g1sHx197H4Nv7_hzaCr-vukjn3tTXbLz2qxbP_nPMVs-3C9n82Tx8vg0my4So0knFohqq0irzDsHqPNCWbJFJWp0xuYZSVMA1JhJQTVYRwDkUdd5kZMa2jG7Pt0eZcptDF8mHso_qfIoNSxuTott3Hz3vu3K1cDYDEwlKqGVkBqE_AVLPEx6</addsrcrecordid><sourcetype>Open Access Repository</sourcetype><iscdi>true</iscdi><recordtype>article</recordtype><pqid>2619613901</pqid></control><display><type>article</type><title>Rewriting with Acyclic Queries: Mind Your Head</title><source>arXiv.org</source><source>Free E- Journals</source><creator>Geck, Gaetano ; Keppeler, Jens ; Schwentick, Thomas ; Spinrath, Christopher</creator><creatorcontrib>Geck, Gaetano ; Keppeler, Jens ; Schwentick, Thomas ; Spinrath, Christopher</creatorcontrib><description>The paper studies the rewriting problem, that is, the decision problem whether, for a given conjunctive query \(Q\) and a set \(\mathcal{V}\) of views, there is a conjunctive query \(Q'\) over \(\mathcal{V}\) that is equivalent to \(Q\), for cases where the query, the views, and/or the desired rewriting are acyclic or even more restricted. It shows that, if \(Q\) itself is acyclic, an acyclic rewriting exists if there is any rewriting. An analogous statement also holds for free-connex acyclic, hierarchical, and q-hierarchical queries. Regarding the complexity of the rewriting problem, the paper identifies a border between tractable and (presumably) intractable variants of the rewriting problem: for schemas of bounded arity, the acyclic rewriting problem is NP-hard, even if both \(Q\) and the views in \(\mathcal{V}\) are acyclic or hierarchical. However, it becomes tractable if the views are free-connex acyclic (i.e., in a nutshell, their body is (i) acyclic and (ii) remains acyclic if their head is added as an additional atom).</description><identifier>EISSN: 2331-8422</identifier><identifier>DOI: 10.48550/arxiv.2201.05129</identifier><language>eng</language><publisher>Ithaca: Cornell University Library, arXiv.org</publisher><subject>Computer Science - Databases ; Computer Science - Logic in Computer Science ; Queries</subject><ispartof>arXiv.org, 2023-11</ispartof><rights>2023. This work is published under http://creativecommons.org/licenses/by/4.0/ (the “License”). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.</rights><rights>http://creativecommons.org/licenses/by/4.0</rights><oa>free_for_read</oa><woscitedreferencessubscribed>false</woscitedreferencessubscribed></display><links><openurl>$$Topenurl_article</openurl><openurlfulltext>$$Topenurlfull_article</openurlfulltext><thumbnail>$$Tsyndetics_thumb_exl</thumbnail><link.rule.ids>228,230,776,780,881,27904</link.rule.ids><backlink>$$Uhttps://doi.org/10.46298/lmcs-19(4:17)2023$$DView published paper (Access to full text may be restricted)$$Hfree_for_read</backlink><backlink>$$Uhttps://doi.org/10.48550/arXiv.2201.05129$$DView paper in arXiv$$Hfree_for_read</backlink></links><search><creatorcontrib>Geck, Gaetano</creatorcontrib><creatorcontrib>Keppeler, Jens</creatorcontrib><creatorcontrib>Schwentick, Thomas</creatorcontrib><creatorcontrib>Spinrath, Christopher</creatorcontrib><title>Rewriting with Acyclic Queries: Mind Your Head</title><title>arXiv.org</title><description>The paper studies the rewriting problem, that is, the decision problem whether, for a given conjunctive query \(Q\) and a set \(\mathcal{V}\) of views, there is a conjunctive query \(Q'\) over \(\mathcal{V}\) that is equivalent to \(Q\), for cases where the query, the views, and/or the desired rewriting are acyclic or even more restricted. It shows that, if \(Q\) itself is acyclic, an acyclic rewriting exists if there is any rewriting. An analogous statement also holds for free-connex acyclic, hierarchical, and q-hierarchical queries. Regarding the complexity of the rewriting problem, the paper identifies a border between tractable and (presumably) intractable variants of the rewriting problem: for schemas of bounded arity, the acyclic rewriting problem is NP-hard, even if both \(Q\) and the views in \(\mathcal{V}\) are acyclic or hierarchical. However, it becomes tractable if the views are free-connex acyclic (i.e., in a nutshell, their body is (i) acyclic and (ii) remains acyclic if their head is added as an additional atom).</description><subject>Computer Science - Databases</subject><subject>Computer Science - Logic in Computer Science</subject><subject>Queries</subject><issn>2331-8422</issn><fulltext>true</fulltext><rsrctype>article</rsrctype><creationdate>2023</creationdate><recordtype>article</recordtype><sourceid>ABUWG</sourceid><sourceid>AFKRA</sourceid><sourceid>AZQEC</sourceid><sourceid>BENPR</sourceid><sourceid>CCPQU</sourceid><sourceid>DWQXO</sourceid><sourceid>GOX</sourceid><recordid>eNotj1FLwzAUhYMgOOZ-gE8GfG69uelNG9_GUCdMRNmLTyVJU82Y3Uxbt_176-bTgcPh8H2MXQlIs4IIbk3ch58UEUQKJFCfsRFKKZIiQ7xgk7ZdAQCqHInkiKVvfhdDF5oPvgvdJ5-6g1sHx197H4Nv7_hzaCr-vukjn3tTXbLz2qxbP_nPMVs-3C9n82Tx8vg0my4So0knFohqq0irzDsHqPNCWbJFJWp0xuYZSVMA1JhJQTVYRwDkUdd5kZMa2jG7Pt0eZcptDF8mHso_qfIoNSxuTott3Hz3vu3K1cDYDEwlKqGVkBqE_AVLPEx6</recordid><startdate>20231128</startdate><enddate>20231128</enddate><creator>Geck, Gaetano</creator><creator>Keppeler, Jens</creator><creator>Schwentick, Thomas</creator><creator>Spinrath, Christopher</creator><general>Cornell University Library, arXiv.org</general><scope>8FE</scope><scope>8FG</scope><scope>ABJCF</scope><scope>ABUWG</scope><scope>AFKRA</scope><scope>AZQEC</scope><scope>BENPR</scope><scope>BGLVJ</scope><scope>CCPQU</scope><scope>DWQXO</scope><scope>HCIFZ</scope><scope>L6V</scope><scope>M7S</scope><scope>PIMPY</scope><scope>PQEST</scope><scope>PQQKQ</scope><scope>PQUKI</scope><scope>PRINS</scope><scope>PTHSS</scope><scope>AKY</scope><scope>GOX</scope></search><sort><creationdate>20231128</creationdate><title>Rewriting with Acyclic Queries: Mind Your Head</title><author>Geck, Gaetano ; Keppeler, Jens ; Schwentick, Thomas ; Spinrath, Christopher</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-LOGICAL-a959-b055fb65964ecc029786b5b8d1f2cab7453a800f24315f0bc5005e29f78756243</frbrgroupid><rsrctype>articles</rsrctype><prefilter>articles</prefilter><language>eng</language><creationdate>2023</creationdate><topic>Computer Science - Databases</topic><topic>Computer Science - Logic in Computer Science</topic><topic>Queries</topic><toplevel>online_resources</toplevel><creatorcontrib>Geck, Gaetano</creatorcontrib><creatorcontrib>Keppeler, Jens</creatorcontrib><creatorcontrib>Schwentick, Thomas</creatorcontrib><creatorcontrib>Spinrath, Christopher</creatorcontrib><collection>ProQuest SciTech Collection</collection><collection>ProQuest Technology Collection</collection><collection>Materials Science &amp; Engineering Collection</collection><collection>ProQuest Central (Alumni Edition)</collection><collection>ProQuest Central UK/Ireland</collection><collection>ProQuest Central Essentials</collection><collection>ProQuest Central</collection><collection>Technology Collection</collection><collection>ProQuest One Community College</collection><collection>ProQuest Central Korea</collection><collection>SciTech Premium Collection</collection><collection>ProQuest Engineering Collection</collection><collection>Engineering Database</collection><collection>Publicly Available Content Database</collection><collection>ProQuest One Academic Eastern Edition (DO NOT USE)</collection><collection>ProQuest One Academic</collection><collection>ProQuest One Academic UKI Edition</collection><collection>ProQuest Central China</collection><collection>Engineering Collection</collection><collection>arXiv Computer Science</collection><collection>arXiv.org</collection><jtitle>arXiv.org</jtitle></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext</fulltext></delivery><addata><au>Geck, Gaetano</au><au>Keppeler, Jens</au><au>Schwentick, Thomas</au><au>Spinrath, Christopher</au><format>journal</format><genre>article</genre><ristype>JOUR</ristype><atitle>Rewriting with Acyclic Queries: Mind Your Head</atitle><jtitle>arXiv.org</jtitle><date>2023-11-28</date><risdate>2023</risdate><eissn>2331-8422</eissn><abstract>The paper studies the rewriting problem, that is, the decision problem whether, for a given conjunctive query \(Q\) and a set \(\mathcal{V}\) of views, there is a conjunctive query \(Q'\) over \(\mathcal{V}\) that is equivalent to \(Q\), for cases where the query, the views, and/or the desired rewriting are acyclic or even more restricted. It shows that, if \(Q\) itself is acyclic, an acyclic rewriting exists if there is any rewriting. An analogous statement also holds for free-connex acyclic, hierarchical, and q-hierarchical queries. Regarding the complexity of the rewriting problem, the paper identifies a border between tractable and (presumably) intractable variants of the rewriting problem: for schemas of bounded arity, the acyclic rewriting problem is NP-hard, even if both \(Q\) and the views in \(\mathcal{V}\) are acyclic or hierarchical. However, it becomes tractable if the views are free-connex acyclic (i.e., in a nutshell, their body is (i) acyclic and (ii) remains acyclic if their head is added as an additional atom).</abstract><cop>Ithaca</cop><pub>Cornell University Library, arXiv.org</pub><doi>10.48550/arxiv.2201.05129</doi><oa>free_for_read</oa></addata></record>
fulltext fulltext
identifier EISSN: 2331-8422
ispartof arXiv.org, 2023-11
issn 2331-8422
language eng
recordid cdi_arxiv_primary_2201_05129
source arXiv.org; Free E- Journals
subjects Computer Science - Databases
Computer Science - Logic in Computer Science
Queries
title Rewriting with Acyclic Queries: Mind Your Head
url https://sfx.bib-bvb.de/sfx_tum?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2025-01-26T05%3A03%3A14IST&url_ver=Z39.88-2004&url_ctx_fmt=infofi/fmt:kev:mtx:ctx&rfr_id=info:sid/primo.exlibrisgroup.com:primo3-Article-proquest_arxiv&rft_val_fmt=info:ofi/fmt:kev:mtx:journal&rft.genre=article&rft.atitle=Rewriting%20with%20Acyclic%20Queries:%20Mind%20Your%20Head&rft.jtitle=arXiv.org&rft.au=Geck,%20Gaetano&rft.date=2023-11-28&rft.eissn=2331-8422&rft_id=info:doi/10.48550/arxiv.2201.05129&rft_dat=%3Cproquest_arxiv%3E2619613901%3C/proquest_arxiv%3E%3Curl%3E%3C/url%3E&disable_directlink=true&sfx.directlink=off&sfx.report_link=0&rft_id=info:oai/&rft_pqid=2619613901&rft_id=info:pmid/&rfr_iscdi=true