Complexity and Expressive Power of Weakly Well-Designed SPARQL

被引:0
|
作者
Kaminski, Mark [1 ]
Kostylev, Egor V. [1 ]
机构
[1] Univ Oxford, Dept Comp Sci, Oxford, England
基金
英国工程与自然科学研究理事会;
关键词
RDF query languages; SPARQL; Optional matching;
D O I
10.1007/s00224-017-9802-9
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
SPARQL is the standard query language for RDF data. The distinctive feature of SPARQL is the OPTIONAL operator, which allows for partial answers when complete answers are not available due to lack of information. However, optional matching is computationally expensive-query answering is PSPACE-complete. The well-designed fragment of SPARQL achieves much better computational properties by restricting the use of optional matching-query answering becomes coNP-complete. On the downside, well-designed SPARQL captures far from all real-life queries-in fact, only about half of the queries over DBpedia that use OPTIONAL are well-designed. In the present paper, we study queries outside of well-designed SPARQL. We introduce the class of weakly well-designed queries that subsumes well-designed queries and includes most common meaningful non-well-designed queries: our analysis shows that the new fragment captures over 99% of DBpedia queries with OPTIONAL. At the same time, query answering for weakly well-designed SPARQL remains coNP-complete, and our fragment is in a certain sense maximal for this complexity. We show that the fragment's expressive power is strictly in-between well-designed and full SPARQL. Finally, we provide an intuitive normal form for weakly well-designed queries and study the complexity of containment and equivalence.
引用
收藏
页码:772 / 809
页数:38
相关论文
共 50 条
  • [1] Complexity and Expressive Power of Weakly Well-Designed SPARQL
    Mark Kaminski
    Egor V. Kostylev
    Theory of Computing Systems, 2018, 62 : 772 - 809
  • [2] Containment and Equivalence of Well-Designed SPARQL
    Pichler, Reinhard
    Skritek, Sebastian
    PODS'14: PROCEEDINGS OF THE 33RD ACM SIGMOD-SIGACT-SIGART SYMPOSIUM ON PRINCIPLES OF DATABASE SYSTEMS, 2014, : 39 - 50
  • [3] Efficient Approximation of Well-Designed SPARQL Queries
    Song, Zhenyu
    Feng, Zhiyong
    Zhang, Xiaowang
    Wang, Xin
    Rao, Guozheng
    WEB-AGE INFORMATION MANAGEMENT, 2016, 9998 : 315 - 327
  • [4] The Tractability Frontier of Well-designed SPARQL Queries
    Romero, Miguel
    PODS'18: PROCEEDINGS OF THE 37TH ACM SIGMOD-SIGACT-SIGAI SYMPOSIUM ON PRINCIPLES OF DATABASE SYSTEMS, 2018, : 295 - 306
  • [5] The Expressive Power of SPARQL
    Angles, Renzo
    Gutierrez, Claudio
    SEMANTIC WEB - ISWC 2008, 2008, 5318 : 114 - 129
  • [6] THE WELL-DESIGNED OFFICE
    OCONNOR, JT
    HARVARD BUSINESS REVIEW, 1989, 67 (02) : 125 - 129
  • [7] The well-designed child
    McCarthy, John
    ARTIFICIAL INTELLIGENCE, 2008, 172 (18) : 2003 - 2014
  • [8] The well-designed young mathematician
    Sloman, Aaron
    ARTIFICIAL INTELLIGENCE, 2008, 172 (18) : 2015 - 2034
  • [9] PC LISP IS POWERFUL, WELL-DESIGNED
    PAPPAS, F
    IEEE SOFTWARE, 1988, 5 (05) : 103 - 103
  • [10] Well-designed buildings minimize vibration
    Ungar, EE
    Zapfe, JA
    LASER FOCUS WORLD, 2004, 40 (09): : 113 - 117