{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,23]],"date-time":"2026-10-23T08:21:21Z","timestamp":1792743681520,"version":"4.5.0"},"reference-count":51,"publisher":"Association for Computing Machinery (ACM)","issue":"4","license":[{"start":{"date-parts":[[2013,11,1]],"date-time":"2013-11-01T00:00:00Z","timestamp":1383264000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"funder":[{"DOI":"10.13039\/501100001659","name":"Deutsche Forschungsgemeinschaft","doi-asserted-by":"publisher","award":["MA4938\/2-1"],"award-info":[{"award-number":["MA4938\/2-1"]}],"id":[{"id":"10.13039\/501100001659","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Database Syst."],"published-print":{"date-parts":[[2013,11]]},"abstract":"<jats:p>The World Wide Web Consortium (W3C) recently introduced property paths in SPARQL 1.1, a query language for RDF data. Property paths allow SPARQL queries to evaluate regular expressions over graph-structured data. However, they differ from standard regular expressions in several notable aspects. For example, they have a limited form of negation, they have numerical occurrence indicators as syntactic sugar, and their semantics on graphs is defined in a nonstandard manner.<\/jats:p>\n                  <jats:p>\n                    We formalize the W3C semantics of property paths and investigate various query evaluation problems on graphs. More specifically, let\n                    <jats:italic>x<\/jats:italic>\n                    and\n                    <jats:italic>y<\/jats:italic>\n                    be two nodes in an edge-labeled graph and\n                    <jats:italic>r<\/jats:italic>\n                    be an expression. We study the complexities of: (1) deciding whether there exists a path from\n                    <jats:italic>x<\/jats:italic>\n                    to\n                    <jats:italic>y<\/jats:italic>\n                    that matches\n                    <jats:italic>r<\/jats:italic>\n                    and (2) counting how many paths from\n                    <jats:italic>x<\/jats:italic>\n                    to\n                    <jats:italic>y<\/jats:italic>\n                    match\n                    <jats:italic>r<\/jats:italic>\n                    . Our main results show that, compared to an alternative semantics of regular expressions on graphs, the complexity of (1) and (2) under W3C semantics is significantly higher. Whereas the alternative semantics remains in polynomial time for large fragments of expressions, the W3C semantics makes problems (1) and (2) intractable almost immediately.\n                  <\/jats:p>\n                  <jats:p>As a side-result, we prove that the membership problem for regular expressions with numerical occurrence indicators and negation is in polynomial time.<\/jats:p>","DOI":"10.1145\/2494529","type":"journal-article","created":{"date-parts":[[2013,12,10]],"date-time":"2013-12-10T08:28:12Z","timestamp":1386664092000},"page":"1-39","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":42,"title":["The complexity of regular expressions and property paths in SPARQL"],"prefix":"10.1145","volume":"38","author":[{"given":"Katja","family":"Losemann","sequence":"first","affiliation":[{"name":"University of Bayreuth, Bayreuth, Germany"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Wim","family":"Martens","sequence":"additional","affiliation":[{"name":"University of Bayreuth, Bayreuth, Germany"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2013,12,4]]},"reference":[{"key":"e_1_2_1_1_1","doi-asserted-by":"publisher","DOI":"10.1007\/s007990050005"},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.1006\/jcss.1999.1627"},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1093\/jigpal\/8.3.325"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.websem.2009.02.002"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(93)90252-O"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1145\/2187836.2187922"},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/1989284.1989312"},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/2463664.2467795"},{"key":"e_1_2_1_9_1","unstructured":"Berge C. 1973. Graphs and Hypergraphs. North-Holland Publishing Company.  Berge C. 1973. Graphs and Hypergraphs. North-Holland Publishing Company."},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.1145\/1735886.1735890"},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","DOI":"10.1109\/T-C.1971.223204"},{"key":"e_1_2_1_12_1","unstructured":"Bray T. Paoli J. Sperberg-Mcqueen Maler C. M. E. and Yergeau F. 2008. Extensible markup language xml 1.0 5th ed. Tech. rep. WorldWideWeb Consortium (W3C). http:\/\/www.w3.org\/TR\/2008\/REC-xml-20081126\/.  Bray T. Paoli J. Sperberg-Mcqueen Maler C. M. E. and Yergeau F. 2008. Extensible markup language xml 1.0 5 th ed. Tech. rep. WorldWideWeb Consortium (W3C). http:\/\/www.w3.org\/TR\/2008\/REC-xml-20081126\/."},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1006\/inco.1997.2695"},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1145\/233269.233368"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1006\/jcss.2001.1805"},{"key":"e_1_2_1_16_1","unstructured":"Calvanese D. De Giacomo G. Lenzerini M. and Vardi M. Y. 2000a. Containment of conjunctive regular path queries with inverse. In Principles of Knowledge Representation and Reasoning (KR). Morgan Kaufmann 176--185.  Calvanese D. De Giacomo G. Lenzerini M. and Vardi M. Y. 2000a. Containment of conjunctive regular path queries with inverse. In Principles of Knowledge Representation and Reasoning (KR). Morgan Kaufmann 176--185."},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/335168.335207"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1007\/BF01383878"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/1514894.1514916"},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.is.2008.10.001"},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/298514.298591"},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/38713.38749"},{"key":"e_1_2_1_23_1","volume-title":"Proceedings of the International Workshop on Database Programming Languages (DBPL'01)","author":"Deutsch A.","unstructured":"Deutsch , A. and Tannen , V . 2001. Optimization properties for classes of conjunctive regular path queries . In Proceedings of the International Workshop on Database Programming Languages (DBPL'01) . Springer, 1--39. Deutsch, A. and Tannen, V. 2001. Optimization properties for classes of conjunctive regular path queries. In Proceedings of the International Workshop on Database Programming Languages (DBPL'01). Springer, 1--39."},{"key":"e_1_2_1_24_1","unstructured":"Fallside D. and Walmsley P. 2004. XML schema part 0: Primer 2nd ed. Tech. rep. World Wide Web Consortium. http:\/\/www.w3.org\/TR\/2004\/REC-xmlschema-0-20041028\/.  Fallside D. and Walmsley P. 2004. XML schema part 0: Primer 2 nd ed. Tech. rep. World Wide Web Consortium. http:\/\/www.w3.org\/TR\/2004\/REC-xmlschema-0-20041028\/."},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1007\/s007780050082"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/275487.275503"},{"key":"e_1_2_1_27_1","unstructured":"Gao S. Sperberg-Mcqueen C. M. Thompson H. S. Mendelsohn N. Beech D. and Maloney M. 2009. W3C XML schema definition language (XSD) 1.1 part 1: Structures. Tech. rep. World Wide Web Consortium. http:\/\/www.w3.org\/TR\/2009\/CR-xmlschema11-1-20090430\/.  Gao S. Sperberg-Mcqueen C. M. Thompson H. S. Mendelsohn N. Beech D. and Maloney M. 2009. W3C XML schema definition language (XSD) 1.1 part 1: Structures. Tech. rep. World Wide Web Consortium. http:\/\/www.w3.org\/TR\/2009\/CR-xmlschema11-1-20090430\/."},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.1137\/100814196"},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.1137\/070697367"},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.1070\/RM1961v016n05ABEH004112"},{"key":"e_1_2_1_31_1","unstructured":"Harris S. and Seaborne A. 2010. SPARQL 1.1 query language. Tech. rep. World Wide Web Consortium (W3C). http:\/\/www.w3.org\/TR\/2010\/WD-sparql11-query-20100601\/.  Harris S. and Seaborne A. 2010. SPARQL 1.1 query language. Tech. rep. World Wide Web Consortium (W3C). http:\/\/www.w3.org\/TR\/2010\/WD-sparql11-query-20100601\/."},{"key":"e_1_2_1_32_1","unstructured":"Harris S. and Seaborne A. 2012. SPARQL 1.1 query language. Tech. rep. World Wide Web Consortium (W3C). http:\/\/www.w3.org\/TR\/2012\/WD-sparql11-query-20120105\/.  Harris S. and Seaborne A. 2012. SPARQL 1.1 query language. Tech. rep. World Wide Web Consortium (W3C). http:\/\/www.w3.org\/TR\/2012\/WD-sparql11-query-20120105\/."},{"key":"e_1_2_1_33_1","unstructured":"Hopcroft J. E. and Ullman J. D. 1979. Introduction to Automata Theory Languages and Computation. Addison-Wesley Boston MA.   Hopcroft J. E. and Ullman J. D. 1979. Introduction to Automata Theory Languages and Computation. Addison-Wesley Boston MA."},{"key":"e_1_2_1_34_1","volume-title":"Proceedings of the Symposium on Discrete Algorithms (SODA'95)","author":"Kannan S.","unstructured":"Kannan , S. , Sweedyk , Z. , and Mahaney , S. R . 1995. Counting and random generation of strings in regular languages . In Proceedings of the Symposium on Discrete Algorithms (SODA'95) . SIAMS, 551--557. Kannan, S., Sweedyk, Z., and Mahaney, S. R. 1995. Counting and random generation of strings in regular languages. In Proceedings of the Symposium on Discrete Algorithms (SODA'95). SIAMS, 551--557."},{"key":"e_1_2_1_35_1","volume-title":"Proceedings of the Symposium on Programming Languages and Software Tools (SPLST'03)","author":"Kilpelainen P.","unstructured":"Kilpelainen , P. and Tuhkanen , R . 2003. Regular expressions with numerical occurrence indicators- Preliminary results . In Proceedings of the Symposium on Programming Languages and Software Tools (SPLST'03) . 63--173. Kilpelainen, P. and Tuhkanen, R. 2003. Regular expressions with numerical occurrence indicators- Preliminary results. In Proceedings of the Symposium on Programming Languages and Software Tools (SPLST'03). 63--173."},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.ic.2006.12.003"},{"key":"e_1_2_1_37_1","volume-title":"Automata Studies","author":"Kleene S. C.","unstructured":"Kleene , S. C. 1956. Representations of events in nerve sets and finite automata . In Automata Studies , Princeton University Press , Princeton, NJ , 3--42. Kleene, S. C. 1956. Representations of events in nerve sets and finite automata. In Automata Studies, Princeton University Press, Princeton, NJ, 3--42."},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.1002\/net.3230140403"},{"key":"e_1_2_1_39_1","doi-asserted-by":"publisher","DOI":"10.1145\/2448496.2448513"},{"key":"e_1_2_1_40_1","doi-asserted-by":"publisher","DOI":"10.1145\/2274576.2274585"},{"key":"e_1_2_1_41_1","volume-title":"Proceedings of the 6th International on Conference on Mathematics of Program Construction (MPC'02)","author":"Liu Y. A.","unstructured":"Liu , Y. A. and Yu , F . 2002. Solving regular path queries . In Proceedings of the 6th International on Conference on Mathematics of Program Construction (MPC'02) . Springer, 195--208. Liu, Y. A. and Yu, F. 2002. Solving regular path queries. In Proceedings of the 6th International on Conference on Mathematics of Program Construction (MPC'02). Springer, 195--208."},{"key":"e_1_2_1_42_1","doi-asserted-by":"publisher","DOI":"10.1145\/2213556.2213573"},{"key":"e_1_2_1_43_1","volume-title":"Proceedings of the 29th International Symposium on Mathematical Foundations of Computer Science (MFCS'04)","author":"Martens W.","unstructured":"Martens , W. , Neven , F. , and Schwentick , T . 2004. Complexity of decision problems for simple regular expressions . In Proceedings of the 29th International Symposium on Mathematical Foundations of Computer Science (MFCS'04) . Springer, 889--900. Martens, W., Neven, F., and Schwentick, T. 2004. Complexity of decision problems for simple regular expressions. In Proceedings of the 29th International Symposium on Mathematical Foundations of Computer Science (MFCS'04). Springer, 889--900."},{"key":"e_1_2_1_44_1","doi-asserted-by":"publisher","DOI":"10.1137\/080743457"},{"key":"e_1_2_1_45_1","doi-asserted-by":"publisher","DOI":"10.1137\/S009753979122370X"},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.1145\/1567274.1567278"},{"key":"e_1_2_1_47_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.websem.2010.01.002"},{"key":"e_1_2_1_48_1","unstructured":"Ramakrishnan R. and Gehrke J. 2003. Database Management Systems 3rd Ed. McGraw-Hill New York.   Ramakrishnan R. and Gehrke J. 2003. Database Management Systems 3 rd Ed. McGraw-Hill New York."},{"key":"e_1_2_1_49_1","doi-asserted-by":"publisher","DOI":"10.1145\/1804669.1804675"},{"key":"e_1_2_1_51_1","doi-asserted-by":"publisher","DOI":"10.1137\/0208032"},{"key":"e_1_2_1_52_1","doi-asserted-by":"publisher","DOI":"10.1145\/298514.298576"}],"container-title":["ACM Transactions on Database Systems"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/2494529","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/2494529","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T03:28:55Z","timestamp":1750217335000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/2494529"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2013,11]]},"references-count":51,"journal-issue":{"issue":"4","published-print":{"date-parts":[[2013,11]]}},"alternative-id":["10.1145\/2494529"],"URL":"https:\/\/doi.org\/10.1145\/2494529","relation":{},"ISSN":["0362-5915","1557-4644"],"issn-type":[{"value":"0362-5915","type":"print"},{"value":"1557-4644","type":"electronic"}],"subject":[],"published":{"date-parts":[[2013,11]]},"assertion":[{"value":"2012-09-01","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2013-05-01","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2013-12-04","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}