Comments (6)
I've updated cffconvert to include a Google Cloud interface (https://github.com/citation-file-format/cff-converter-python/blob/b7e43b8038b7afb36ea599ca0b519fd808948998/cffconvert/gcloud.py). It basically makes available the complete cffconvert
cli, except it works by entering data via url arguments, e.g.:
- https://us-central1-cffconvert.cloudfunctions.net/cffconvert
- https://us-central1-cffconvert.cloudfunctions.net/cffconvert?verbose
- https://us-central1-cffconvert.cloudfunctions.net/cffconvert?url=https://github.com/xenon-middleware/xenon&outputformat=cff
https://us-central1-cffconvert.cloudfunctions.net/cffconvert?url=https://github.com/xenon-middleware/xenon&outputformat=bibtex
I'll leave the Google Cloud function running for the immediate future
from citation-file-format.
I can look into support for both formats in Citation.js. However, until I start using JSON-LD instead of regular objects (planned for v0.5
), conversion from CFF to CodeMeta JSON would be pretty lossy, I think. [EDIT: But CSL-JSON, BibTeX, and RIS would work, insofar as those formats can represent CFF data.]
from citation-file-format.
@larsgw Thanks! That would be awesome!
Let me know if you need any help, and please file an issue should you come across any issues/inconsistencies with CFF, or any ideas you might have to enhance the docs.
from citation-file-format.
I published the first version of a plugin to add support for CFF to Citation.js: @citation-js/plugin-software-formats. Examples:
const Cite = require('[email protected]')
// Install plugin
require('@citation-js/plugin-software-formats')
const cff = new Cite(`cff-version: 1.0.3
message: If you use this software, please cite it as below.
authors:
- family-names: Druskat
given-names: Stephan
orcid: https://orcid.org/0000-0003-4925-7248
title: My Research Tool
version: 1.0.4
doi: 10.5281/zenodo.1234
date-released: 2017-12-18`)
cff.data // (CSL-JSON)
/*
[ { author: [ { family: 'Druskat', given: 'Stephan' } ],
issued: { 'date-parts': [ [ 2017, 12, 18 ] ] },
DOI: '10.5281/zenodo.1234',
title: 'My Research Tool',
version: '1.0.4',
id: 'temp_id_37569928872458447' } ]
*/
cff.format('bibext')
/*
@misc{Druskat2017My,
doi={10.5281/zenodo.1234},
title={{My Research Tool}},
author={Druskat, Stephan},
date={2017-12-18},
year=2017,
month=12,
day=18,
}
*/
cff.format('ris')
/*
AU - Druskat, Stephan
DA - 2017/12/18
PY - 2017
DO - 10.5281/zenodo.1234
TI - My Research Tool
ER -
*/
cff.format('bibliography', {template: 'apa'})
// Druskat, S. (2017, December 18). My Research Tool (Version 1.0.4). https://doi.org/10.5281/zenodo.1234
There are still some problems regarding reference types, which invalidates the RIS output, but I'm working on that.
from citation-file-format.
Cool, great news! Thanks for your effort!
from citation-file-format.
FWIW, there is also a conversion tool cffconvert
available from PyPI, part of which has been made available as a Google Cloud Function https://us-central1-citation-cff.cloudfunctions.net/convert
It works by passing it parameters, i.e. a github repo as url
and the format you want to convert to, which should be one of [zenodo|ris|bibtex|endnote|codemeta]
. For example, https://us-central1-citation-cff.cloudfunctions.net/convert?url=https://github.com/NLeSC/Xenon&format=zenodo
Note that cffconvert
currently implements just the basics of the CFF spec, e.g it ignores the references
part of CFF files.
from citation-file-format.
Related Issues (20)
- Should `authors` be unique items? HOT 5
- Update `bump2version` requirement or remove HOT 3
- Update notes on releasing with "check recent contributors" HOT 2
- Consider adding minimum required keys to definition of `entity` HOT 2
- Add regex101 link to description of strictish-string HOT 1
- How to give an entity author an affiliation? HOT 4
- Consider adding ROR as identifier for entities HOT 3
- Sync license list in schema with schema guide HOT 1
- Drop .zenodo.json
- "Cite this repository" widget, but on GitLab HOT 1
- Elaborate / example on grant specification HOT 1
- Formatting in the "abstract" field of citation.cff
- Specify where field "message" ends up in zenodo
- Implement additional governance for this subproject
- Write a paper about the Citation File Format and its use
- Support "type" values other than "software" and "dataset" HOT 3
- Make filename case-insensitive HOT 1
- Accompanying paper citations HOT 2
- WhatsApp HOT 1
- Bump actions version in workflow files HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from citation-file-format.