https://github.com/citation-js/plugin-quickstatements
Citation.js plugin to output 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
Repository
Citation.js plugin to output QuickStatements
Basic Info
- Host: GitHub
- Owner: citation-js
- License: other
- Language: JavaScript
- Default Branch: main
- Homepage: https://www.npmjs.com/package/@citation-js/plugin-quickstatements
- Size: 87.9 KB
Statistics
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 2
- Releases: 0
Topics
Metadata Files
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:
- it does not (currently) check if the information is already in Wikidata
- 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
- Website: https://citation.js.org
- Twitter: citation_js
- Repositories: 24
- Profile: https://github.com/citation-js
GitHub Events
Total
- Push event: 1
- Create event: 1
Last Year
- Push event: 1
- Create event: 1
Committers
Last synced: 8 months ago
Top Committers
| Name | 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
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.
- Homepage: https://github.com/citation-js/plugin-quickstatements#readme
- License: MIT
-
Latest release: 0.5.5
published 9 months ago
Rankings
Maintainers (1)
Dependencies
- @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
- actions/checkout v2 composite
- actions/setup-node v1 composite
- codecov/codecov-action v1 composite