https://github.com/citation-js/plugin-quickstatements

Citation.js plugin to output QuickStatements

https://github.com/citation-js/plugin-quickstatements

Science Score: 39.0%

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

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.6%) to scientific vocabulary

Keywords

citation-js crossref doi pubmed pubmed-central quickstatements wikidata
Last synced: 5 months ago · JSON representation

Repository

Citation.js plugin to output QuickStatements

Basic Info
Statistics
  • Stars: 7
  • Watchers: 2
  • Forks: 2
  • Open Issues: 2
  • Releases: 0
Topics
citation-js crossref doi pubmed pubmed-central quickstatements wikidata
Created over 6 years ago · Last pushed 9 months ago
Metadata Files
Readme Changelog License Authors

README.md

Citation.js QuickStatements plugin

This npm package is a plugin to citation.js (see this article) that outputs bibliographic information to Wikidata QuickStatements. Some important points:

  1. it does not (currently) check if the information is already in Wikidata
  2. it only supports journals articles (at this moment)

Install

shell npm install @citation-js/plugin-quickstatements

To run the below example, you also need to install a few other packages (as they are currently not automatically pulled in, it seems):

shell npm install @citation-js/core @citation-js/plugin-pubmed @citation-js/plugin-doi @babel/register @babel/core

Use

Install the plugin by require-ing it:

js require('@citation-js/plugin-quickstatements')

Formats

Formats and other features added by this plugin.

Input

The input is CSL generated by citation.js by any of its supported formats. Here's an example for how to create QuickStatements for a PubMed Central identifier:

```javascript c = require('@citation-js/core') require('@citation-js/plugin-pubmed') require('@citation-js/plugin-doi')

require('@babel/register') require('@citation-js/plugin-quickstatements')

c.Cite.async([ '10.1186/s13321-019-0380-5', 'pmid:14266813', 'PMC6613236' ]) .then(Cite => console.log(Cite.format('quickstatements')) ) .catch(console.error) ```

Or for book ISBN numbers:

```javascript const c = require('@citation-js/core') require('@citation-js/plugin-isbn')

require('@babel/register') require('@citation-js/plugin-quickstatements')

c.Cite.async([ '978-0956775016' ]) .then(Cite => console.log(Cite.format('quickstatements')) ) .catch(console.error) ```

Output

The output is QuickStatements to be copied into the online webservice. The output looks like:

``` CREATE

LAST    P31 Q13442814
LAST    Len "Journal of Cheminformatics, ORCID, and GitHub"
LAST    P304    "44"
LAST    P356    "10.1186/s13321-019-0365-4"
LAST    P433    "1"
LAST    P478    "11"
LAST    P698    "31281945"
LAST    P932    "PMC6613236"
LAST    P1476   "Journal of Cheminformatics, ORCID, and GitHub"
LAST    P577    "2019-07-08"
LAST    P2093   "Egon Willighagen"  P1545   "1" 
LAST    P2093   "Nina Jeliazkova"   P1545   "2" 
LAST    P2093   "Rajarshi Guha" P1545   "3"

```

Owner

  • Name: Citation.js
  • Login: citation-js
  • Kind: organization
  • Email: citationjs@protonmail.com

GitHub Events

Total
  • Push event: 1
  • Create event: 1
Last Year
  • Push event: 1
  • Create event: 1

Committers

Last synced: 8 months ago

All Time
  • Total Commits: 110
  • Total Committers: 2
  • Avg Commits per committer: 55.0
  • Development Distribution Score (DDS): 0.445
Past Year
  • Commits: 2
  • Committers: 1
  • Avg Commits per committer: 2.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Egon Willighagen e****n@g****m 61
Lars Willighagen l****n@g****m 49

Issues and Pull Requests

Last synced: 7 months ago

All Time
  • Total issues: 6
  • Total pull requests: 4
  • Average time to close issues: 13 days
  • Average time to close pull requests: about 2 hours
  • Total issue authors: 4
  • Total pull request authors: 1
  • Average comments per issue: 1.67
  • Average comments per pull request: 0.0
  • Merged pull requests: 4
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 2
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 2.5
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • dpriskorn (2)
  • egonw (2)
  • fnielsen (1)
  • larsgw (1)
Pull Request Authors
  • larsgw (4)
Top Labels
Issue Labels
bug (4) enhancement (1) good first issue (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • npm 7 last-month
  • Total dependent packages: 1
  • Total dependent repositories: 1
  • Total versions: 12
  • Total maintainers: 1
npmjs.org: @citation-js/plugin-quickstatements

Plugin that takes citation-js input and output QuickStatements.

  • Versions: 12
  • Dependent Packages: 1
  • Dependent Repositories: 1
  • Downloads: 7 Last month
Rankings
Forks count: 9.8%
Dependent repos count: 10.3%
Stargazers count: 11.5%
Average: 17.9%
Dependent packages count: 20.9%
Downloads: 36.8%
Maintainers (1)
Last synced: 6 months ago

Dependencies

package.json npm
  • @babel/cli ^7.7.7 development
  • @babel/core ^7.7.7 development
  • @babel/eslint-parser ^7.14.3 development
  • @babel/preset-env ^7.7.7 development
  • @babel/register ^7.7.7 development
  • @citation-js/core ^0.6.1 development
  • @citation-js/plugin-doi ^0.6.1 development
  • @citation-js/plugin-isbn ^0.3.0 development
  • @citation-js/plugin-pubmed ^0.2.0 development
  • babel-plugin-istanbul ^6.0.0 development
  • conventional-changelog-cli ^2.1.1 development
  • mocha ^10.0.0 development
  • nyc ^15.1.0 development
  • standard ^17.0.0 development
  • @citation-js/date ^0.5.0
  • @citation-js/name ^0.4.2
  • wikidata-sdk ^8.0.0
.github/workflows/node.js.yml actions
  • actions/checkout v2 composite
  • actions/setup-node v1 composite
  • codecov/codecov-action v1 composite