citation-js / plugin-software-formats

Collection of software-related input and output formats for Citation.js
MIT License
4 stars 1 forks source link

date missing for journal article in CFF output #13

Open egonw opened 2 years ago

egonw commented 2 years ago

On https://scholia.toolforge.org/work/Q28842753/export and the problem seems to be that the output is not for a journal article but for software?

image

egonw commented 2 years ago

Not urgent.

larsgw commented 1 year ago

The top level entry in a CFF file has to be dataset or software so this is a bit difficult to handle. Scholia could set the entry as preferred instead of main if it is not one of those types, but then it is unclear which information should be put in the top-level entry.

egonw commented 1 year ago

Yeah, I was wondering if for articles it should not be outputted as 1.2.0 and preferred-citation:

cff-version: 1.2.0
message: "If you use this software, please cite the WikiPathways RDF paper."
title: libGPML export library for GPMLRDF and WPRDF
url: "https://github.com/egonw/org.pathvisio.io.rdf"
preferred-citation:
  type: article
  title: "Using the Semantic Web for Rapid Integration of WikiPathways with Other Biological Online Data Resources"
  authors:
  - family-names: Waagmeester
    given-names: Andra
  - family-names: Summer-Kutmon
larsgw commented 1 year ago

I'm not sure I follow. How would you reliably retrieve the name and repository from the article in this example?

egonw commented 1 year ago

This was just a copy/paste... indeed you don't have that info, so the better template is:

cff-version: 1.2.0
message: "If you use this, please cite the prefered citation."
preferred-citation:
  type: article
  title: "Using the Semantic Web for Rapid Integration of WikiPathways with Other Biological Online Data Resources"
  authors:
  - family-names: Waagmeester
    given-names: Andra
  - family-names: Summer-Kutmon
larsgw commented 1 year ago

Unfortunately author and title are required for the top-level info.

egonw commented 1 year ago

Unfortunately author and title are required for the top-level info.

But those we could just copy in the output, or not?

larsgw commented 1 year ago

Authors yes, title I don't know.