This is a short summary of my bachelor thesis that was written in German. Maybe someone else is interested in the results.
So, to summarize this thesis, the main question is “Could MongoDB be an alternative to Virtuoso as triple store?”.
There was prior work on this topic such as this or that but no scientific evaluation of the systems. You can find the written API for Node.js here. It mainly implements an insert method and some query methods. For details take a look at the README. There are also explanations about the URI transformation methods that avoids dots in the key identifier of the JSON objects.
A short explanation of the systems and the data sets.
nested a.k.a flat: MongoDB implementation with the nested uri transformation
dict: MongoDB implementation with the dict uri transformation
virtNative: Virtuoso via ODBC interface
virtHttp: Virtuoso via HTTP
As you can see, both MongoDB implementations are extremely slow inserting the triples. There are differences of 15 minutes and more! But it’s hard to say what the reasons for this results are. Because of the mentioned article which presents similar results, we can only guess that MongoDB itself is the reason and not the implementations. Maybe it has something to do with updating the indices.
The results of the probably most used query method findBySubject() are quite better than the insert ones. While Virtuoso via ODBC is the fastest implementation, the MongoDB implementation nested is faster than Virtuoso via HTTP. The second MongoDB implementation is continously the slowest system.
For the results of the other query methods, please take a look in the thesis.
- The implementation dict is continously the slowest one.
- The implementation nested is in four of five query methods faster than Virtuoso via HTTP
- Virtuoso via ODBC is continously the fastest system.
Overall: With the results in mind, we can draw the conclusion that MongoDB as a triple store is only useful with small to mid sized data sets. Furthermore it is advisable to use it only in query-oriented environments because of the lacking performance inserting triples.