Giter Club home page Giter Club logo

bibcompare's Introduction

BibCompare

Prerequisites

MacOS

OS: Monterey 12.1

PHP version:

$ php --version
PHP 8.1.1 (cli) (built: Dec 17 2021 22:21:23) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.1, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.1, Copyright (c), by Zend Technologies

$ which php
/opt/homebrew/bin/php

Installed with: brew install php

Quick start

Clone:

git clone https://github.com/maxgalli/bibcompare.git
cd bitcompare

Start local server:

php -S localhost:8888

Search in browser:

http://localhost:8888/gd.php

Changes for new InspireHEP API

No idea of how the API of InspireHEP used to be, but some instructions for the modern API can be found here.

The main feature that broke the behavior of this package probably consists in the fact that the elements returned when parsing a URL are now organized in pages with a size which is 25 (?) by default and can't be higher than 1000. Inside bib_item_fetch_inspirehep_container, the constructor have been changed and now creates an array containing URLs with different pages; we then loop over this array to get the items and perform exactly the same operations that were performed before. Methods and attributes that are not needed anymore were removed.

Perorming a match with a query like dissertori still takes around ~3 minutes, probably this can be taken down by applying some more metadata filtering in the URL itself.

Debug Tips

To avoid running over all Guenther's publications on Inspire (which are a lot and take some time to be fetched) it is convenient to comment out the while loop inside bib_item_fetch_inspirehep_container.php, in order to fetch only the first page of results.

Tests are located in the directory.

bibcompare's People

Contributors

maxgalli avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.