how to 'find' zotero.sqlite for a script to make 'personalized recommendations'
Hello,
I've written an R script that gives 'personalized recommendations' for new journal articles by mining the information in the zotero.sqlite database. (Read more and get the working script at: http://colugos.blogspot.ca/2013/06/zotero-and-r-automatically-find.html)
However, the user currently needs to manually specify the location of their zotero database. Is there a GNU/Linux and Windows generalized way for automatically detecting the location of a users database?
In case you are interested, the 'personalized recommendations' are generated by finding new articles which are either cited-by or cite articles in your zotero database. The idea is that citation networks are a good indication of article relevancy (opposed to keyword similarities). The script I made is basically just a wrapper for SQL, JSON processing, and the Microsoft Academic Search API.
Thanks for Zotero and your contributions!
Rob
I've written an R script that gives 'personalized recommendations' for new journal articles by mining the information in the zotero.sqlite database. (Read more and get the working script at: http://colugos.blogspot.ca/2013/06/zotero-and-r-automatically-find.html)
However, the user currently needs to manually specify the location of their zotero database. Is there a GNU/Linux and Windows generalized way for automatically detecting the location of a users database?
In case you are interested, the 'personalized recommendations' are generated by finding new articles which are either cited-by or cite articles in your zotero database. The idea is that citation networks are a good indication of article relevancy (opposed to keyword similarities). The script I made is basically just a wrapper for SQL, JSON processing, and the Microsoft Academic Search API.
Thanks for Zotero and your contributions!
Rob
https://groups.google.com/forum/?fromgroups#!forum/zotero-dev
There might be a more elegant way, but you can check how Qnotero does this (in python: https://github.com/smathot/qnotero/blob/master/libqnotero/preferences.py#L137 )
It looks like Qnotero does a file search in a user's home directory by the os.name() command. In R this would be Sys.info()['sysname'] and that may work for my needs. I'll take at look at the Standalone solution now.
Thanks,
Rob