Cargando…
Complexity and Expressive Power of Weakly Well-Designed SPARQL
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-compl...
Autores principales: | , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
Springer US
2017
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6560828/ https://www.ncbi.nlm.nih.gov/pubmed/31258387 http://dx.doi.org/10.1007/s00224-017-9802-9 |
_version_ | 1783426030829043712 |
---|---|
author | Kaminski, Mark Kostylev, Egor V. |
author_facet | Kaminski, Mark Kostylev, Egor V. |
author_sort | Kaminski, Mark |
collection | PubMed |
description | 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. |
format | Online Article Text |
id | pubmed-6560828 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2017 |
publisher | Springer US |
record_format | MEDLINE/PubMed |
spelling | pubmed-65608282019-06-26 Complexity and Expressive Power of Weakly Well-Designed SPARQL Kaminski, Mark Kostylev, Egor V. Theory Comput Syst Article 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. Springer US 2017-08-14 2018 /pmc/articles/PMC6560828/ /pubmed/31258387 http://dx.doi.org/10.1007/s00224-017-9802-9 Text en © The Author(s) 2017 Open AccessThis article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. |
spellingShingle | Article Kaminski, Mark Kostylev, Egor V. Complexity and Expressive Power of Weakly Well-Designed SPARQL |
title | Complexity and Expressive Power of Weakly Well-Designed SPARQL |
title_full | Complexity and Expressive Power of Weakly Well-Designed SPARQL |
title_fullStr | Complexity and Expressive Power of Weakly Well-Designed SPARQL |
title_full_unstemmed | Complexity and Expressive Power of Weakly Well-Designed SPARQL |
title_short | Complexity and Expressive Power of Weakly Well-Designed SPARQL |
title_sort | complexity and expressive power of weakly well-designed sparql |
topic | Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6560828/ https://www.ncbi.nlm.nih.gov/pubmed/31258387 http://dx.doi.org/10.1007/s00224-017-9802-9 |
work_keys_str_mv | AT kaminskimark complexityandexpressivepowerofweaklywelldesignedsparql AT kostylevegorv complexityandexpressivepowerofweaklywelldesignedsparql |