skip to main content
10.1145/2187836.2187922acmotherconferencesArticle/Chapter ViewAbstractPublication PageswwwConference Proceedingsconference-collections
research-article

Counting beyond a Yottabyte, or how SPARQL 1.1 property paths will prevent adoption of the standard

Published:16 April 2012Publication History

ABSTRACT

SPARQL -the standard query language for querying RDF- provides only limited navigational functionalities, although these features are of fundamental importance for graph data formats such as RDF. This has led the W3C to include the property path feature in the upcoming version of the standard, SPARQL 1.1.We tested several implementations of SPARQL 1.1 handling property path queries, and we observed that their evaluation methods for this class of queries have a poor performance even in some very simple scenarios. To formally explain this fact, we conduct a theoretical study of the computational complexity of property paths evaluation. Our results imply that the poor performance of the tested implementations is not a problem of these particular systems, but of the specification itself. In fact, we show that any implementation that adheres to the SPARQL 1.1 specification (as of November 2011) is doomed to show the same behavior, the key issue being the need for counting solutions imposed by the current specification. We provide several intractability results, that together with our empirical results, provide strong evidence against the current semantics of SPARQL 1.1 property paths. Finally, we put our results in perspective, and propose a natural alternative semantics with tractable evaluation, that we think may lead to a wide adoption of the language by practitioners, developers and theoreticians.

References

  1. F. Alkhateeb, J.-F. Baget, and J. Euzenat. Extending SPARQL with regular expression patterns (forquerying RDF). JWS, 7(2):57--73, 2009. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. C. Àlvarez and B. Jenner. A very hard log-space counting class. Theor. Comput. Sci., 107(1):3--30, 1993. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. P. Barceló, C. A. Hurtado, L. Libkin, and P. T. Wood. Expressive languages for path queries over graph-structured data. In PODS, pages 3--14, 2010. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. D. Calvanese, G. D. Giacomo, M. Lenzerini, and M. Y. Vardi. Rewriting of regular expressions and regular path queries. In PODS, pages 194--204, 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. J. J. Carroll, I. Dickinson, C. Dollin, D. Reynolds, A. Seaborne, andK. Wilkinson. Jena: implementing the semantic web recommendations. In WWW (Alternate Track Papers & Posters), pages 74--83, 2004. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. O. Corby and C. Faron-Zucker. The KGRAM abstract machine for knowledge graph querying. In Web Intelligence, pages 338--341, 2010. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. L. Eggan. Transition graphs and the star-height of regular events. The Michigan mathematical journal, 10(4):385--397, 1963.Google ScholarGoogle Scholar
  8. J. Gantz et al. The diverse and exploding digital universe: An updated forecast of worldwide information growth through 2011. International Data Corporation, White Paper, 2008.Google ScholarGoogle Scholar
  9. G. Gottlob, C. Koch, and R. Pichler. Efficient algorithms for processing XPath queries. TODS, 30(2):444--491, 2005. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. S. Harris and A. Seaborne. SPARQL 1.1 query language. W3C Working Draft 12 May 2011, http://www.w3.org/TR/2011/WD-sparql11-query-20110512/.Google ScholarGoogle Scholar
  11. O. Hartig, C. Bizer, and J. C. Freytag. Executing SPARQL queries over the Web of Linked Data. In ISWC, pages 293--309, 2009. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. M. Marx. Conditional XPath. TODS, 30(4):929--959, 2005. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. A. O. Mendelzon and P. T. Wood. Finding regular simple paths in graph databases. SIAM J. Comput., 24(6):1235--1258, 1995. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. J. Pérez, M. Arenas, and C. Gutierrez. Semantics of SPARQL. Technical Report, U. de Chile TR/DCC-2006--17, October 2006.Google ScholarGoogle Scholar
  15. J. Pérez, M. Arenas, and C. Gutierrez. Semantics and complexity of SPARQL. TODS, 34(3), 2009. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. J. Pérez, M. Arenas, and C. Gutierrez. nSPARQL: A navigational language for RDF. JWS, 8(4):255--270, 2010. Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. E. Prud'hommeaux and A. Seaborne. SPARQL query language for RDF. W3C Recommendation 15 January 2008, http://www.w3.org/TR/rdf-sparql-query/.Google ScholarGoogle Scholar
  18. A. L. Selman. A taxonomy of complexity classes of functions. J. Comput. Syst. Sci., 48(2):357--381, 1994. Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. L. G. Valiant. The complexity of computing the permanent. Theor. Comput. Sci., 8:189--201, 1979.Google ScholarGoogle ScholarCross RefCross Ref
  20. M. Y. Vardi. The complexity of relational query languages (extended abstract). In STOC, pages 137--146, 1982. Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. K. W. Wagner. More complicated questions about maxima and minima, and some closures of NP. Theor. Comput. Sci., 51:53--80, 1987. Google ScholarGoogle ScholarDigital LibraryDigital Library
  22. ARQ. http://sourceforge.net/projects/jena/files/ARQ/.Google ScholarGoogle Scholar
  23. KGRAM. http://www-sop.inria.fr/edelweiss/software/corese/.Google ScholarGoogle Scholar
  24. RDF::Query. http://search.cpan.org/gwilliams/RDF-Query/.Google ScholarGoogle Scholar
  25. Sesame. http://sourceforge.net/projects/sesame/.Google ScholarGoogle Scholar
  26. Psparql. http://exmo.inrialpes.fr/software/psparql/.Google ScholarGoogle Scholar
  27. Gleen. http://sig.biostr.washington.edu/projects/ontviews/gleen/.Google ScholarGoogle Scholar
  28. Semantic Web Client Library. http://www4.wiwiss.fu-berlin.de/bizer/ng4j/semwebclient/.Google ScholarGoogle Scholar

Index Terms

  1. Counting beyond a Yottabyte, or how SPARQL 1.1 property paths will prevent adoption of the standard

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in
    • Published in

      cover image ACM Other conferences
      WWW '12: Proceedings of the 21st international conference on World Wide Web
      April 2012
      1078 pages
      ISBN:9781450312295
      DOI:10.1145/2187836

      Copyright © 2012 ACM

      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 16 April 2012

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • research-article

      Acceptance Rates

      Overall Acceptance Rate1,899of8,196submissions,23%

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader