snowballing.py

This module provides tools to analyze the snowballing and widgets to perform and curate the snowballing

Events

EventRunner

class EventRunner(navigator, info=None)[source]

Bases: object

access_attr(attr)[source]
execute(event)[source]
op_and(event)[source]
op_eq(event)[source]
op_ge(event)[source]
op_gt(event)[source]
op_if(event)[source]
op_le(event)[source]
op_lt(event)[source]
op_neq(event)[source]
op_not(event)[source]
op_or(event)[source]
op_plus(event)[source]
op_pyref(event)[source]
op_reload(event)[source]
op_update_info(event)[source]
set_attr(attr, value)[source]

Widgets

WebNavigator

class WebNavigator(form_values, nwork, info, citation_var=None, citation_file=None, backward=True, should_add=None)[source]

Bases: object

show(clear=True)[source]

RunWidget

class RunWidget[source]

Bases: object

clear()[source]
clear_click(b)[source]
click(b)[source]
set_code(code)[source]

ReplaceCellWidget

class ReplaceCellWidget[source]

Bases: object

clear()[source]
set_code(code)[source]

Converter

class Converter(mode=None)[source]

Bases: object

Convert texts into other formats

Four modes are available:

  • BibTeX

    • Converts bibtex to a json for inserting the reference
  • Text

    • Removes line breaks and diacricts from text. Use it to copy text from pdf documents
  • [N] author name place other year

    • Converts references in this format to a json for inserting the reference

    • Consider each space as a line break

    • The “other” field can be created using multiple (or 0) lines

      • It also can define the attribute names using ‘attr=value’

      • For example:

        [1]
        Pimentel, João Felipe and Braganholo, Vanessa and Murta, Leonardo and Freire, Juliana
        Tracking and analyzing the evolution of provenance from scripts
        IPAW
        pp=16--28
        Springer
        2016
        
        [2]
        ...
        
  • Quoted

    • Surrounds text with quotation marks and add spaces to fit the citation
bibtex(change)[source]

Produces a json based on a bibtex

browser()[source]

Presents the widget

citation(change)[source]

Produces a json based on the format [N] author name place other year

pdf(change)[source]

Extracts citations from pdf

quoted(change)[source]

Adds quotes to value. Use it for citation

select(change)[source]

Selects new mode. Use previous output as input

select_mode(mode)[source]

Selects new mode. Use previous output as input

set_variable(b)[source]

Creates variable ‘article_list’ with resulting JSON

text(change)[source]

Removes line breaks and diacricts

write(b)[source]

Writes right column according to selected mode

BackwardSnowballing

class BackwardSnowballing(citation_var, citation_file=None, articles=None, force_citation_file=True)[source]

Bases: snowballing.snowballing.ArticleNavigator

Navigate on article list for insertion with backward citation

ForwardSnowballing

class ForwardSnowballing(querier, citation_var, citation_file=None, debug=False, start=None, load=True)[source]

Bases: object

Navigate on article list for insertion with forward citation

browser()[source]

Presents widget

next_page(b)[source]

Gets next page from scholar

previous_page(b)[source]

Gets previous page from scholar

reload(b, show=True)[source]

Reloads page

ScholarUpdate

class ScholarUpdate(querier, worklist, force=False, debug=False, index=0, rules=None)[source]

Bases: object

Widget for curating database

browser()[source]

Present widget

next_page(b)[source]

Go to next page

previous_page(b)[source]

Go to previous page

reload(b=None, show=True)[source]

Reload

set_index()[source]

Set page index

show(b=None)[source]

Show comparison

SearchScholar

class SearchScholar(querier, debug=False)[source]

Bases: object

Search Scholar and Navigate on article list for insertion

browser()[source]

Presents widget

next_page(b)[source]

Gets next page from scholar

previous_page(b)[source]

Gets previous page from scholar

reload(b, show=True)[source]

Reloads page

search(b)[source]