Diego Figueira, S. Krishna, Om Swostik Mishra, Anantha Padmanabha
{"title":"简单正则表达式上连接正则路径查询的联合有界性","authors":"Diego Figueira, S. Krishna, Om Swostik Mishra, Anantha Padmanabha","doi":"arxiv-2407.20782","DOIUrl":null,"url":null,"abstract":"The problem of checking whether a recursive query can be rewritten as query\nwithout recursion is a fundamental reasoning task, known as the boundedness\nproblem. Here we study the boundedness problem for Unions of Conjunctive\nRegular Path Queries (UCRPQs), a navigational query language extensively used\nin ontology and graph database querying. The boundedness problem for UCRPQs is\nExpSpace-complete. Here we focus our analysis on UCRPQs using simple regular\nexpressions, which are of high practical relevance and enjoy a lower reasoning\ncomplexity. We show that the complexity for the boundedness problem for this\nUCRPQs fragment is $\\Pi^P_2$-complete, and that an equivalent bounded query can\nbe produced in polynomial time whenever possible. When the query turns out to\nbe unbounded, we also study the task of finding an equivalent maximally bounded\nquery, which we show to be feasible in $\\Pi^P_2$. As a side result of\nindependent interest stemming from our developments, we study a notion of\nsuccinct finite automata and prove that its membership problem is in NP.","PeriodicalId":501123,"journal":{"name":"arXiv - CS - Databases","volume":null,"pages":null},"PeriodicalIF":0.0000,"publicationDate":"2024-07-30","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Boundedness for Unions of Conjunctive Regular Path Queries over Simple Regular Expressions\",\"authors\":\"Diego Figueira, S. Krishna, Om Swostik Mishra, Anantha Padmanabha\",\"doi\":\"arxiv-2407.20782\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"The problem of checking whether a recursive query can be rewritten as query\\nwithout recursion is a fundamental reasoning task, known as the boundedness\\nproblem. Here we study the boundedness problem for Unions of Conjunctive\\nRegular Path Queries (UCRPQs), a navigational query language extensively used\\nin ontology and graph database querying. The boundedness problem for UCRPQs is\\nExpSpace-complete. Here we focus our analysis on UCRPQs using simple regular\\nexpressions, which are of high practical relevance and enjoy a lower reasoning\\ncomplexity. We show that the complexity for the boundedness problem for this\\nUCRPQs fragment is $\\\\Pi^P_2$-complete, and that an equivalent bounded query can\\nbe produced in polynomial time whenever possible. When the query turns out to\\nbe unbounded, we also study the task of finding an equivalent maximally bounded\\nquery, which we show to be feasible in $\\\\Pi^P_2$. As a side result of\\nindependent interest stemming from our developments, we study a notion of\\nsuccinct finite automata and prove that its membership problem is in NP.\",\"PeriodicalId\":501123,\"journal\":{\"name\":\"arXiv - CS - Databases\",\"volume\":null,\"pages\":null},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-07-30\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"arXiv - CS - Databases\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/arxiv-2407.20782\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Databases","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2407.20782","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Boundedness for Unions of Conjunctive Regular Path Queries over Simple Regular Expressions
The problem of checking whether a recursive query can be rewritten as query
without recursion is a fundamental reasoning task, known as the boundedness
problem. Here we study the boundedness problem for Unions of Conjunctive
Regular Path Queries (UCRPQs), a navigational query language extensively used
in ontology and graph database querying. The boundedness problem for UCRPQs is
ExpSpace-complete. Here we focus our analysis on UCRPQs using simple regular
expressions, which are of high practical relevance and enjoy a lower reasoning
complexity. We show that the complexity for the boundedness problem for this
UCRPQs fragment is $\Pi^P_2$-complete, and that an equivalent bounded query can
be produced in polynomial time whenever possible. When the query turns out to
be unbounded, we also study the task of finding an equivalent maximally bounded
query, which we show to be feasible in $\Pi^P_2$. As a side result of
independent interest stemming from our developments, we study a notion of
succinct finite automata and prove that its membership problem is in NP.