Git Product home page Git Product logo

Comments (3)

jspaaks avatar jspaaks commented on June 3, 2024

The command line tool cffconvert available from PyPI can validate against the schema. The program is available as a Google Cloud Function, e.g. https://us-central1-citation-cff.cloudfunctions.net/convert?url=https://github.com/NLeSC/Xenon&format=zenodo.

I think it should be relatively simple to add a validation parameter to the Google Cloud Function interface.

Use the online version of cffconvert to validate the CFF file at a GitHub URL, e.g. https://us-central1-cffconvert.cloudfunctions.net/cffconvert?url=https://github.com/citation-file-format/cff-converter-python&validate.

Or supply your own data via the URL parameter cffstr, like so (naturally, this leads to long URLs):

https://us-central1-cffconvert.cloudfunctions.net/cffconvert?cffstr=%23%20YAML%201.2%0A---%0Aabstract%3A%20%22Command%20line%20program%20to%20convert%20from%20Citation%20File%20Format%20to%20various%20other%20formats%20such%20as%20BibTeX%2C%20EndNote%2C%20RIS%2C%20schema.org%2C%20and%20.zenodo.json.%22%0Aauthors%3A%0A%20%20-%0A%20%20%20%20affiliation%3A%20%22Netherlands%20eScience%20Center%22%0A%20%20%20%20family-names%3A%20Spaaks%0A%20%20%20%20given-names%3A%20Jurriaan%20H.%0A%20%20%20%20orcid%3A%20https%3A%2F%2Forcid.org%2F0000-0002-7064-4069%0A%20%20-%0A%20%20%20%20affiliation%3A%20%22Netherlands%20eScience%20Center%22%0A%20%20%20%20family-names%3A%20Klaver%0A%20%20%20%20given-names%3A%20Tom%0A%20%20-%0A%20%20%20%20affiliation%3A%20%22Netherlands%20eScience%20Center%22%0A%20%20%20%20family-names%3A%20Verhoeven%0A%20%20%20%20given-names%3A%20Stefan%0A%20%20%20%20orcid%3A%20https%3A%2F%2Forcid.org%2F0000-0002-5821-2060%0A%20%20-%0A%20%20%20%20affiliation%3A%20%22Humboldt-Universit%C3%A4t%20zu%20Berlin%22%0A%20%20%20%20family-names%3A%20Druskat%0A%20%20%20%20given-names%3A%20Stephan%0A%20%20%20%20orcid%3A%20https%3A%2F%2Forcid.org%2F0000-0003-4925-7248%0Acff-version%3A%20%221.0.3%22%0Adate-released%3A%202019-11-05%0Adoi%3A%2010.5281%2Fzenodo.1162057%0Akeywords%3A%0A%20%20-%20%22citation%22%0A%20%20-%20%22bibliography%22%0A%20%20-%20%22cff%22%0A%20%20-%20%22CITATION.cff%22%0Alicense%3A%20Apache-2.0%0Amessage%3A%20%22If%20you%20use%20this%20software%2C%20please%20cite%20it%20using%20these%20metadata.%22%0Arepository-code%3A%20%22https%3A%2F%2Fgithub.com%2Fcitation-file-format%2Fcff-converter-python%22%0Atitle%3A%20cffconvert%0Aversion%3A%20%221.3.2%22%0A&validate

More documentation here https://us-central1-cffconvert.cloudfunctions.net/cffconvert

from citation-file-format.

jspaaks avatar jspaaks commented on June 3, 2024

FYI The cloud function has been terminated

from citation-file-format.

sdruskat avatar sdruskat commented on June 3, 2024

FYI The cloud function has been terminated

Thanks for the heads up. I believe that cffinit is a good alternative, especially when it provides a dedicated validation option.

from citation-file-format.

Related Issues (20)

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.