sci-pie

Tools to process and analyze repositories of scientific publications.

https://github.com/telmomenezes/sci-pie

Science Score: 18.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (4.8%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

Tools to process and analyze repositories of scientific publications.

Basic Info
  • Host: GitHub
  • Owner: telmomenezes
  • License: gpl-2.0
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 133 KB
Statistics
  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 15 years ago · Last pushed almost 15 years ago
Metadata Files
Readme License Citation

README.md

sci-pie

Sci-pie is a collection of tools aimed at processing, analyzing and generating visualizations of repositories of scientific publications. It is being written for the MDTS11 data challenge (http://iscpif.fr/tiki-index.php?page=mdtschallenge), but I hope it can remain useful after this event.

Author

Sci-pie was created by Telmo Menezes (telmo@telmomenezes.com). Feel free to contact the author with an issue regarding this software.

License

Sci-pie is released under the GPLv2 open source public license. The full text of the license can be found on the COPYING file.

Owner

  • Name: Telmo Menezes
  • Login: telmomenezes
  • Kind: user
  • Location: Berlin

Researcher in Computational Social Science, Complex Systems, AI. PhD in Computer Science.

Citation (citations2syn.py)

#!/usr/bin/env python
# encoding: utf-8

__author__ = "Telmo Menezes (telmo@telmomenezes.com)"
__date__ = "Jun 2011"


import sys
import sqlite3
from syn.net import Net


def citations2syn(dbpath, outpath):

    net = Net(outpath)

    conn = sqlite3.connect(dbpath)
    cur = conn.cursor()
    
    nodes = {}
    timestamps = {}
    cur.execute("SELECT id, title, timestamp FROM articles")
    for row in cur:
        label = '%s [%d]' % (row[1], row[0])
        nodes[row[0]] = net.add_node(label=label)
	timestamps[row[0]] = row[2]

    cur.execute("SELECT orig_id, targ_id FROM citations WHERE targ_id>=0")
    for row in cur:
	try:
             net.add_edge(nodes[row[0]], nodes[row[1]], timestamps[row[0]])
	except:
	     print 'oops.'

    cur.close()
    conn.close()

    print('Done.')


if __name__ == '__main__':
    citations2syn(sys.argv[1], sys.argv[2])

GitHub Events

Total
Last Year