OntologySummit2014_Hackathon - Project: (4A3W)
Optimized SPARQL performance management via native API (4A3X)
Project roster page: http://ontolog.cim3.net/cgi-bin/wiki.pl?OntologySummit2014_Hackathon_OptimizedSPARQLviaNativeAPI (this page). (4A3Y)
Team: VictorChernov (MSK, UTC+4) vchernov at nitrosbase.com (lead), Vladislav Golovkov (MSK, UTC+4) vgolovkov at nitrosbase.com (4AYV)
Post-event updates (4CUX)
Optimized SPARQL performance management via native API Hackathon took place on March 29, 2014 14:00 - 18:00 MSK (virtual session) with subsequent activities during the next day. (4CUY)
Four people participated in the event: (4CUZ)
- Victor Chernov (team lead), General Manager at NitrosData Rus, Russia, vchernov@nitrosbase.com; (4CV0)
- Vladislav Golovkov System Architect at NitrosData Rus, Russia, vgolovkov@nitrosbase.com; (4CV1)
- Andrej Andrejev, Ph.D. student at Uppsala University, Sweden, andrej.andrejev@it.uu.se; (4CV2)
- Vladimir Salnikov, Head of QA Department at Compile Group, Russia, vladimir.salnikov@compilesoft.ru. (4CV3)
During the event triplestores have been installed, benchmark queries prepared, experiments have been set up and run. The results are discussed and published (see link below). (4CV4)
The main conclusions are: (4CV5)
- Performance is bottleneck for ontological technologies. (4CV6)
- It is desirable to have direct access to database, not through TCP protocol. (4CV7)
- Sometimes it is worth to simplify the queries as much as possible and make some processing on the client. (4CV8)
- Very often what is difficult to do with a single large query is easy to implement with a set of small ones. In those cases triplestore should be able to perform small queries quickly. Further performance gain could be reached giving the users direct access to database, bypassing SPARQL processing. (4CV9)
- The myth that RDF database is slower than SQL does not work anymore. RDF storages perform fast and can compete with SQL databases. (4CVA)
The report can be downloaded from (4CVB)
http://nitrosbase.com/wp-content/uploads/OptimizedSPARQLreportV13.zip (4CVC)
Event announce (4CVD)
Participation: You are welcome to participate, please send an E-mail to vchernov at nitrosbase.com. (4AYW)
Event starts 29th of March 2014 14:00 MSK / 10:00 UTC / 03:00 PST all over the world (4A59)
Communication: (4B6X)
- Google Hangout - We'll connect you according to participant's E-mail; (4B6Y)
- Skype - Will be used as additional tool if the number of Google Hangout connections exceeded. Please add vladislav.golovkov to your Skype contact list. (4B6Z)
A Caveat Concerning the IPR Policy Conformance: (4D8B)
- to allow us to gain insights into relevant "open" as well as "non-open" products and technologies, this session will be featured under a special waiver to the prevailing IPR Policy. We may be working on, and discussing about, some "non-open" technologies. Vendors of such are welcome to participate (on the condition that proprietary portions of their presentation are to be specifically stated as such). However, (despite the waiver) do note that we will (as usual) be making available the results of the session to the community and the public at large under our prevailing Open IPR Policy. (4D89)
The Goals of the project are (4A40)
Studying the kinds of queries revealing the advantages of one or another RDF database. The goals imply: (4A41)
- Selection of a SPARQL subset from SP2Bench (4A42)
- Forming a dataset and loading it to all triple-stores. (4A43)
- Implementing measurement aids, testing (4A44)
- Accurate time measurement, getting min, max, average and median times. (4A45)
- Reflection on the results, advantages and disadvantages of the triplestores on each selected query. (4A46)
The following triplestores will be compared: (4A47)
The triplestores have the following important advantages: (4A4B)
- Very high performance on demonstrated on sp2bench benchmark (4A4C)
- Linux and Windows versions (4A4D)
- Native API for fast query processing (4A4E)
It is important to use native API for fast query execution. All 3 tools provide native API: (4A4F)
- Virtuoso (4A4G)
- Jena, Sesame and Virtuoso ODBC RDF Extensions for SPASQL (4A4H)
- Stardog (4A4I)
- the core SNARL (Stardog Native API for the RDF Language) classes and interfaces (4A4J)
- NitrosBase (4A4K)
- C++ and .NET native API (4A4L)
We suppose writing additional codes needed for accurate testing: (4A4M)
- Accurate time measurement; (4A4N)
- Functions for getting min, max, average and median times; (4A4O)
- Functions for getting time of scanning through the whole query result; (4A4P)
- Functions for getting time of retrieving first several records (for example, the first page of web grid); (4A4Q)
- Etc. (4A4R)
The following steps are needed for loading test dataset: (4A4S)
Note: Data are considered as loaded as soon as the system is ready to perform a simplest search query. This is done to eliminate background processes (eg. indexing). (4A4V)
We are going to explore the query execution performance by the databases under consideration (Virtuoso, Stardog, NitrosBase). (4A4W)
The queries should be fairly simple and cover the different techniques, for example: (4A4X)
- search the small range of values (4A4Y)
- search the big range of values (4A4Z)
- Sorting (4A50)
- Aggregation (4A51)
- Several different join queries (4A52)
- Retrieving part of result (4A53)
- Retrieving whole result (4A54)
- etc. (4A55)
Note: During testing each database may allocate a lot of resources, that can affect the performance of other databases. ThatÂ’s why each test should be stared from system reboot. (4A56)