Retrieve paper citatation data from doi.org and Semantic Scholar.

Overview

citation-query

Retrieve paper citatation data from doi.org and Semantic Scholar.

Install

Requires at least Node.js v14.14.0.

npm install @uwdata/citation-query

Usage

JavaScript Module

@uwdata/citation-query is an ESM-only module - you are not able to import it with require().

Retrieve citation data from doi.org

import { lookupDOI } from '@uwdata/citation-query';

const doiData = await lookupDoi('10.1111/cgf.13720');

Retrieve citation data from Semantic Scholar

For a full list of available paper fields, see the Semantic Scholar API documentation.

import { lookupS2, urlS2 } from '@uwdata/citation-query';

// paper fields to retrieve
const params = {
  fields: ['externalIds', 'title', 'authors', 'year', 'venue']
}

// using a DOI
const s2DataFromDOI = await lookupS2('10.1111/cgf.13720', params);

// using an S2ID (Semantic Scholar ID)
const s2id = 'fe1ea23231e63bdc8738635046e21d7e655e55f2';
const s2DataFromS2ID = await lookupS2(s2id, params);

// generate a URL for the Semantic Scholar REST API
const url = urlS2(s2id, params);

Command Line Utilities

Retrieve citation data from doi.org

Given a DOI, return JSON data to standard output.

doi 10.1111/cgf.13720

Retrieve citation data from Semantic Scholar

Given a paper id (DOI, S2ID, etc.) return JSON data to standard output.

Retrieve a default set of fields using an S2ID:

s2id fe1ea23231e63bdc8738635046e21d7e655e55f2

Retrieve a default set of fields using a DOI:

s2id 10.1111/cgf.13720

Retrieve a custom set of fields:

s2id fe1ea23231e63bdc8738635046e21d7e655e55f2 title,year,venue
You might also like...

Simple Rest API to retrieve medium stats of a user's stories.

Simple Rest API to retrieve medium stats of a user's stories.

Advanced Medium API Contents Overview API Details Medium feed in JSON Medium Advanced Data Medium Customized Data Medium Customized Advanced Data Miss

Jun 5, 2022

Firebase Storage with Angular 14 example: Upload File, Retrieve, Display, Download Url & Delete using @angular/fire AngularFireStorage

Firebase Storage with Angular 14 example: Upload File, Retrieve, Display, Download Url & Delete using @angular/fire AngularFireStorage

Angular 14 File Upload to Firebase Storage example I will show you how to make Angular 14 Firebase Storage: File Upload/Display/Delete Application usi

Sep 7, 2022

Competidaily Generator lambda function to retrieve a random theme from our database.

Competidaily Generator backend - GET RANDOM THEME This repo contains the GET requisition used as a lambda function to retrieve a random theme from the

Sep 5, 2022

A personal semantic search engine capable of surfacing relevant bookmarks, journal entries, notes, blogs, contacts, and more, built on an efficient document embedding algorithm and Monocle's personal search index.

A personal semantic search engine capable of surfacing relevant bookmarks, journal entries, notes, blogs, contacts, and more, built on an efficient document embedding algorithm and Monocle's personal search index.

Revery πŸ¦… Revery is a semantic search engine that operates on my Monocle search index. While Revery lets me search through the same database of tens o

Sep 18, 2022

Semantic Release plugin to create and publish NuGet packages.

semantic-release-nuget semantic-release plugin to create and publish a NuGet package. Step Description verifyConditions Verify the presence of the NUG

Jul 13, 2022

βš‘οΈπŸ¦• A version semantic and fast package delivery network for Deno.

Deno PKG A version semantic and fast package delivery network for Deno. Examples Using a fixed version: https://pkg.deno.dev/[email protected]/fs/mod.ts htt

Aug 14, 2022

The Blitz.js Recipe for installing @semantic-release/github.

semantic-release-github The Blitz.js Recipe for installing @semantic-release/github. blitz install custom-recipes/semantic-release-github -y More info

Apr 9, 2022

Node starter kit for semantic-search. Uses Mighty Inference Server with Qdrant vector search.

Node starter kit for semantic-search.  Uses Mighty Inference Server with Qdrant vector search.

Mighty Starter This project provides a complete and working semantic search application, using Mighty Inference Server, Qdrant Vector Search, and an e

Jul 26, 2022

A more-fun, semantic, alternative to datatables

jQuery Dynatable A funner, semantic, HTML5+JSON, interactive table plugin. See the full documentation with demos. Why? The purpose of Dynatable is to

Sep 7, 2022
Owner
UW Interactive Data Lab
Visualization + Analysis
UW Interactive Data Lab
JavaScript game for Rock Paper Scissors between player and bot

rock-paper-scissors-game JavaScript game for Rock Paper Scissors between player and bot Try it here! : https://rock-paper-scissors-221ef.web.app/ V1.1

Rohindhran Nair 1 Feb 10, 2022
A scalable rock, paper and scissors game for study purpose

A scalable rock, paper and scissors game for personal study purposes. The original game is rock, paper and scissors. However, assuming you want to add

FlΓ‘vio Delesposte 4 Aug 11, 2022
This project is a web app that uses the TVmaze API to retrieve data and display a list of items on the screen.

This project is a web app that uses the TVmaze API to retrieve data and display a list of items on the screen. It also enables people to like and comment on the broadcast. JavaScript, API, Bootstrap, HTML, and CSS3 were used to create this site.

Mihreteab Misganaw 2 Jan 10, 2022
πŸ“ƒ Fold up DOM elements like paper

OriDomi Fold up DOM elements like paper Dan Motzenbecker, MIT License @dcmotz Visit oridomi.com for examples, documentation and notes. Read the annota

Dan Motzenbecker 2.4k Sep 24, 2022
Do calculations, annotate like you would on a paper "qwikly".

Do calculations, annotate it like you would on a paper "qwikly". 100.00 my wallet balance - 40.00 food ═══════════ 60.00 Create

Viral Ghelani 27 Sep 21, 2022
Backgrid.js is a set of components for building semantic and easily stylable data grid widgets

Backgrid.js is a set of components for building semantic and easily stylable data grid widgets. It offers a simple, intuitive programming interface that makes easy things easy, but hard things possible when dealing with tabular data.

Cloudflare Archive 2k Jul 29, 2022
An event-driven architecture wrapper for Wechaty that applies the CQS principle by using separate Query and Command messages to retrieve and modify the bot state, respectively.

CQRS Wechaty An event-driven architecture wrapper for Wechaty that applies the CQS principle by using separate Query and Command messages to retrieve

Wechaty 3 Mar 23, 2022
A pure JavaScript Web Page to retrieve real-time OTP through a web page and generate/scan QR codes.

2FA-Solver A pure JavaScript Web Page to retrieve real-time OTP through a web page and generate/scan QR codes. It can be used as an offline web page b

Yuthan K 3 Jul 21, 2022
Angular 14 Firebase CRUD with Realtime Database - AngularFireDatabase Object and List example: create, retrieve, update, delete

Angular 14 Firebase CRUD example with Realtime DataBase | AngularFireDatabase Build Angular 14 CRUD example with Firebase Realtime Database that uses

null 6 Sep 7, 2022
A Javascript library that discourages and prevents image theft/download by preventing client ability to retrieve the image.

ProtectImage.js ProtectImage.js is a Javascript library that helps prevent image theft by disabling traditional user interactions to download/copy ima

null 4 Aug 18, 2022