README.txt 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  1. README scopus
  2. Ak, 27.3.2017
  3. Get information from Scopus database.
  4. This queries work only with access to Scopus (e.g. from KIT LAN)
  5. Scopus service is not public vailable.
  6. Content
  7. info Documentation, website, etc
  8. readme.txt This file
  9. my_scopus.py List of scopus author ids
  10. ak_scopus.py Functions to access scopus
  11. ak_wordpress.py Functions to creates Wordpress posts + comments
  12. scopus-get-publications.py Script to query Scopus
  13. test-scopus.py Application with some functions to get publication entries
  14. Prints a list with some formatting
  15. test-scopus2.py Example from one of the website, only one query
  16. Usage:
  17. 1. Go to Scopus and retrieve the scopus author ids for the scientists in your group.
  18. Define the ids in my_scopus.py and group them.
  19. 2. Select one of more author groups in scopus-get-publications.py (main part at
  20. the end of the file). Check definition of database and wordpress installation.
  21. 3. Execute scopus-get-publications.py.
  22. python -W ignore scopus-get-publications.py
  23. Note: The -W ignore flag might be necessary if the INSERT IGNORE causes warnings.
  24. Example run:
  25. ufo:~/scopus # python -W ignore scopus-get-publications.py
  26. ***********************************************
  27. **** scopus-get-publications / 2017-03-27 *****
  28. ***********************************************
  29. === Update of publications for the author group: Computing
  30. Total number of publications: 54
  31. === Update of publications for the author group: X-ray Imaging
  32. Total number of publications: 39
  33. === Update of publications for the author group: Electronics
  34. Total number of publications: 132
  35. === Update of publications for the author group: Morphology
  36. Total number of publications: 21
  37. === Create posts for newly registered publication in scopus
  38. Nothing new found
  39. === Update citatation of all publication in the database
  40. Total number of publications is 281
  41. === Create comments for newly registered citations in scopus
  42. Number of new citations is 0
  43. Summary: (see also logfile /root/scopus/scopus-publications.log)
  44. Date = 2017-03-27 21:28:36.002624
  45. NPubs = 281
  46. NNewPubs = 0
  47. NCites = 4699
  48. NNewCites = 0
  49. Runtime = 0:00:11.496362
  50. Further enhancements
  51. Todo:
  52. - Reprocessing of all post, if the format has changed
  53. E.g. add button
  54. with Email to author or a new category has been added
  55. - Query only the latest citations for each publications not all.
  56. - Store JSON-Data of all publications
  57. - Get bibliographic information for display at the web page of a reseach group
  58. like UFO or may be also later for the DTS program.
  59. - Handle wrong publications in scopus for author with same name
  60. - Automatically include reports and student thesis by
  61. bibtex definition and upload on a server!?
  62. -> Would have the nice effect, that all student work is organized systematically!!!
  63. Structure of the database
  64. Both tables keep the reference to the publications in Scopus and the
  65. Wordpress ids. With this information, reprocessing is possible (but not
  66. implemented now).
  67. Table publocations:
  68. MariaDB [scopus]> describe publications;
  69. +--------------+--------------+------+-----+---------+----------------+
  70. | Field | Type | Null | Key | Default | Extra |
  71. +--------------+--------------+------+-----+---------+----------------+
  72. | id | int(11) | NO | PRI | NULL | auto_increment |
  73. | scopusid | varchar(255) | YES | UNI | NULL | |
  74. | wpid | int(11) | YES | | NULL | |
  75. | citedbycount | int(11) | YES | | NULL | |
  76. | citesloaded | int(11) | YES | | NULL | |
  77. | categories | varchar(255) | YES | | NULL | |
  78. | doi | varchar(255) | YES | | NULL | |
  79. | title | varchar(255) | YES | | NULL | |
  80. | abstract | text | YES | | NULL | |
  81. | bibtex | text | YES | | NULL | |
  82. | ts | datetime | YES | | NULL | |
  83. | scopusdata | text | YES | | NULL | |
  84. | eid | varchar(255) | YES | | NULL | |
  85. +--------------+--------------+------+-----+---------+----------------+
  86. Table citations:
  87. MariaDB [scopus]> describe citations;
  88. +--------------+--------------+------+-----+---------+----------------+
  89. | Field | Type | Null | Key | Default | Extra |
  90. +--------------+--------------+------+-----+---------+----------------+
  91. | id | int(11) | NO | PRI | NULL | auto_increment |
  92. | scopusid | varchar(255) | YES | | NULL | |
  93. | eid | varchar(255) | YES | | NULL | |
  94. | wpid | int(11) | YES | MUL | NULL | |
  95. | wpcommentid | int(11) | YES | | NULL | |
  96. | citedbycount | int(11) | YES | | NULL | |
  97. | citesloaded | int(11) | YES | | NULL | |
  98. | categories | varchar(255) | YES | | NULL | |
  99. | doi | varchar(255) | YES | | NULL | |
  100. | scopusdata | text | YES | | NULL | |
  101. | title | varchar(255) | YES | | NULL | |
  102. | abstract | text | YES | | NULL | |
  103. | bibtex | text | YES | | NULL | |
  104. | ts | datetime | YES | | NULL | |
  105. +--------------+--------------+------+-----+---------+----------------+
  106. Setup of scopus database in mysql
  107. create database scopus;
  108. CREATE USER 'scopus@localhost';
  109. grant all on scopus.* to 'scopus'@'localhost' identified by '$scopus$';
  110. # create tables
  111. mysql -u scopus -p scopus < create_scopus.sql
  112. Publications in Scopus:
  113. Sometime (unfortunately quite often) a author id in Scopus is not unique but
  114. identifies several researchers with the same name. E.g. Michele Caselle (3 persons)
  115. Matthias Balzer (2).
  116. This case is currently handled manually by deleting all publications from the unknown
  117. authors. Might be possible to implement also a black list??
  118. Sample data from Scopus:
  119. {
  120. "abstracts-retrieval-response": {
  121. "authors": {
  122. "author": [
  123. {
  124. "@_fa": "true",
  125. "@auid": "15076530600",
  126. "@seq": "1",
  127. "affiliation": {
  128. "@href": "http://api.elsevier.com/content/affiliation/affiliation_id/60102538",
  129. "@id": "60102538"
  130. },
  131. "author-url": "http://api.elsevier.com/content/author/author_id/15076530600",
  132. "ce:given-name": "Suren",
  133. "ce:indexed-name": "Chilingaryan S.",
  134. "ce:initials": "S.",
  135. "ce:surname": "Chilingaryan",
  136. "preferred-name": {
  137. "ce:given-name": "Suren",
  138. "ce:indexed-name": "Chilingaryan S.",
  139. "ce:initials": "S.",
  140. "ce:surname": "Chilingaryan"
  141. }
  142. },
  143. {
  144. "@_fa": "true",
  145. "@auid": "35313939900",
  146. "@seq": "2",
  147. "affiliation": {
  148. "@href": "http://api.elsevier.com/content/affiliation/affiliation_id/60102538",
  149. "@id": "60102538"
  150. },
  151. "author-url": "http://api.elsevier.com/content/author/author_id/35313939900",
  152. "ce:given-name": "Andreas",
  153. "ce:indexed-name": "Kopmann A.",
  154. "ce:initials": "A.",
  155. "ce:surname": "Kopmann",
  156. "preferred-name": {
  157. "ce:given-name": "Andreas",
  158. "ce:indexed-name": "Kopmann A.",
  159. "ce:initials": "A.",
  160. "ce:surname": "Kopmann"
  161. }
  162. },
  163. {
  164. "@_fa": "true",
  165. "@auid": "56001075000",
  166. "@seq": "3",
  167. "affiliation": {
  168. "@href": "http://api.elsevier.com/content/affiliation/affiliation_id/60032633",
  169. "@id": "60032633"
  170. },
  171. "author-url": "http://api.elsevier.com/content/author/author_id/56001075000",
  172. "ce:given-name": "Alessandro",
  173. "ce:indexed-name": "Mirone A.",
  174. "ce:initials": "A.",
  175. "ce:surname": "Mirone",
  176. "preferred-name": {
  177. "ce:given-name": "Alessandro",
  178. "ce:indexed-name": "Mirone A.",
  179. "ce:initials": "A.",
  180. "ce:surname": "Mirone"
  181. }
  182. },
  183. {
  184. "@_fa": "true",
  185. "@auid": "35277157300",
  186. "@seq": "4",
  187. "affiliation": {
  188. "@href": "http://api.elsevier.com/content/affiliation/affiliation_id/60102538",
  189. "@id": "60102538"
  190. },
  191. "author-url": "http://api.elsevier.com/content/author/author_id/35277157300",
  192. "ce:given-name": "Tomy",
  193. "ce:indexed-name": "Dos Santos Rolo T.",
  194. "ce:initials": "T.",
  195. "ce:surname": "Dos Santos Rolo",
  196. "preferred-name": {
  197. "ce:given-name": "Tomy",
  198. "ce:indexed-name": "Dos Santos Rolo T.",
  199. "ce:initials": "T.",
  200. "ce:surname": "Dos Santos Rolo"
  201. }
  202. },
  203. {
  204. "@_fa": "true",
  205. "@auid": "35303862100",
  206. "@seq": "5",
  207. "affiliation": {
  208. "@href": "http://api.elsevier.com/content/affiliation/affiliation_id/60102538",
  209. "@id": "60102538"
  210. },
  211. "author-url": "http://api.elsevier.com/content/author/author_id/35303862100",
  212. "ce:given-name": "Matthias",
  213. "ce:indexed-name": "Vogelgesang M.",
  214. "ce:initials": "M.",
  215. "ce:surname": "Vogelgesang",
  216. "preferred-name": {
  217. "ce:given-name": "Matthias",
  218. "ce:indexed-name": "Vogelgesang M.",
  219. "ce:initials": "M.",
  220. "ce:surname": "Vogelgesang"
  221. }
  222. }
  223. ]
  224. },
  225. "coredata": {
  226. "citedby-count": "0",
  227. "dc:description": "X-ray tomography has been proven to be a valuable tool for understanding internal, otherwise invisible, mechanisms in biology and other fields. Recent advances in digital detector technology enabled investigation of dynamic processes in 3D with a temporal resolution down to the milliseconds range. Unfortunately it requires computationally intensive recon- struction algorithms with long post-processing times. We have optimized the reconstruction software employed at the micro-tomography beamlines at KIT and ESRF. Using a 4 stage pipelined architecture and the computational power of modern graphic cards, we were able to reduce the processing time by a factor 75 with a single server. The time required to reconstruct a typical 3D image is reduced down to several seconds only and online visualization is possible for the first time.Copyright is held by the author/owner(s).",
  228. "dc:identifier": "SCOPUS_ID:84859045029",
  229. "dc:title": "Poster: A GPU-based architecture for real-time data assessment at synchrotron experiments",
  230. "link": [
  231. {
  232. "@_fa": "true",
  233. "@href": "http://api.elsevier.com/content/abstract/scopus_id/84859045029",
  234. "@rel": "self"
  235. }
  236. ],
  237. "prism:aggregationType": "Conference Proceeding",
  238. "prism:coverDate": "2011-12-01",
  239. "prism:doi": "10.1145/2148600.2148624",
  240. "prism:pageRange": "51-52",
  241. "prism:publicationName": "SC'11 - Proceedings of the 2011 High Performance Computing Networking, Storage and Analysis Companion, Co-located with SC'11",
  242. "prism:url": "http://api.elsevier.com/content/abstract/scopus_id/84859045029"
  243. }
  244. }
  245. }
  246. Installation of python, mysql et al:
  247. pip install python-wordpress-xmlrpc
  248. Konfiguration Webserver (muss man wohl nach jeder Installation neu machen!!!)
  249. /etc/apache2/httpd.conf:
  250. LoadModule userdir_module libexec/apache2/mod_userdir.so
  251. LoadModule php5_module libexec/apache2/libphp5.so
  252. Include /private/etc/apache2/extra/httpd-userdir.conf
  253. /etc/apache2/extra/httpd-userdir.conf:
  254. Include /private/etc/apache2/users/*.conf
  255. /etc/php.ini:
  256. pdo_mysql.default_socket= /tmp/mysql.sock
  257. mysql.default_socket = /tmp/mysql.sock
  258. mysqli.default_socket = /tmp/mysql.sock
  259. sh-3.2# apachectl restart
  260. Install website:
  261. Create archive with wp dublicator
  262. Save scopus database
  263. mysqldump -u scopus -p scopus > scopus-170322.sql
  264. Create database on remote system
  265. mysql:
  266. CREATE USER 'scopus'@'localhost' IDENTIFIED BY '$scopus$';
  267. GRANT ALL PRIVILEGES ON scopus.* TO 'scopus'@'localhost';
  268. CREATE DATABASE scopus;
  269. mysql -u scopus -p scopus < scopus-170322.sql
  270. Create database wp_ufo2;
  271. CREATE USER ‘ufo’@‘localhost' IDENTIFIED BY '$ipepdv$';
  272. GRANT ALL PRIVILEGES ON wp_ufo2.* TO ‘ufo’@‘localhost';
  273. CREATE DATABASE wp_ufo2;
  274. Import WP archive:
  275. mkdir ufo2
  276. chown -R wwwrun:www ufo2
  277. http://ufo.kit.edu/ufo2/installer.php
  278. Error: PHP module ZipArchive is missing
  279. Manual extraction is available in the advanced options !!!
  280. Installation Scopus-Scripts:
  281. pip install requests
  282. pip install python-wordpress-xmlrpc
  283. pip install pymysql
  284. Check configurations:
  285. scopus-get-piblications.py
  286. ak_wordpress.py