Git Product home page Git Product logo

Comments (1)

cboettig avatar cboettig commented on July 18, 2024

Need to think out workflow issues here.

Option 1

Generate the EML first with eml_write. Then call eml_publish("file.eml", destination="figshare") to publish.

This approach would rely on the EML file to generate the minimal metadata required by figshare, along with any additional metadata we choose to supply.

This would create a problem for cases where the EML file (perhaps not generated by REML) did contain enough metadata for figshare publication (e.g. figshare category). I suppose we could warn in those cases, or include an argument where the user could provide a category, etc.

Option 2

Call eml_publish directly with data and metadata, avoiding the need to call eml_write explicitly (in this version, eml_publish would obviously call eml_write. In some ways this is easier to write, since the eml_publish just takes a list of all the arguments to fs_new_article (or the components thereof), along with all the arguments to eml_write (to which it could also append the figshare metadata).

The down-side of this approach is that the function call itself may be a bit more clumsy.

Both?

We might want to support both options, but providing a clean and intuitive API (function call) becomes tricky...

Additional strategies and things to look out for

  • Want to avoid re-writing metadata to the EML that already exists there.
  • Default settings probably want to include support for some figshare metadata, such as preferred category.
  • Maybe an id=figshare metadata node (with EML keywordList, etc) should be added? Would be the easiest way

from eml.

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.