psychoinformatics-de / datalad-tabby

DataLad extension package for the "tabby" dataset metadata specification
Other
1 stars 5 forks source link

Further define the semantics of the demorecord #69

Closed mih closed 1 year ago

mih commented 1 year ago

Ping https://github.com/psychoinformatics-de/datalad-tabby/issues/21

With these definitions we get the following from

datalad tabby-load \
  datalad_tabby/tests/data/demorecord/tabbydemo_dataset.tsv \
  --compact compact.ctx.jsonld \
| jq

(where compact.ctx.jsonld contains the context that appears in @context in the output)

{
  "@context": {
    "bibo": "https://purl.org/ontology/bibo/",
    "obo": "https://purl.obolibrary.org/",
    "schema": "https://schema.org",
    "author": "schema:author",
    "citation": "schema:citation",
    "date": "schema:Date",
    "doi": "bibo:doi",
    "email": "schema:email",
    "funder": "schema:funder",
    "funding": "schema:funding",
    "identifier": "schema:identifier",
    "name": "schema:name",
    "orcid": "obo:IAO_0000708",
    "publication": "schema:publication"
  },
  "author": [
    {
      "orcid": "0000-0002-6047-5564",
      "email": "a@example.com",
      "name": "Allison Horst"
    },
    {
      "orcid": "0000-0002-8082-1890",
      "email": "b@example.com",
      "name": "Alison Hill"
    },
    {
      "orcid": "0000-0002-0258-9264",
      "email": "c@example.com",
      "name": "Kristen Gorman"
    }
  ],
  "funding": [
    {
      "@type": "schema:Grant",
      "funder": "DFG",
      "identifier": "431549029-INF"
    },
    {
      "@type": "schema:Grant",
      "funder": "NSF-OPP",
      "identifier": "#0217282"
    },
    {
      "@type": "schema:Grant",
      "funder": "NSF-OPP",
      "identifier": "#0823101"
    },
    {
      "@type": "schema:Grant",
      "funder": "NSF-OPP",
      "identifier": "#0741351"
    }
  ],
  "name": "Palmer Penguins",
  "publication": {
    "@type": "ScholarlyArticle",
    "doi": "10.1371/journal.pone.0090081",
    "date": "2014",
    "citation": "Gorman KB, Williams TD, Fraser WR (2014) Ecological Sexual Dimorphism and Environmental Variability within a Community of Antarctic Penguins (Genus Pygoscelis). PLoS ONE 9(3): e90081."
  }
}
codecov-commenter commented 1 year ago

Codecov Report

Merging #69 (f42de1c) into main (d6dbcb8) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main      #69   +/-   ##
=======================================
  Coverage   99.70%   99.70%           
=======================================
  Files          11       11           
  Lines         339      344    +5     
=======================================
+ Hits          338      343    +5     
  Misses          1        1           
Impacted Files Coverage Δ
datalad_tabby/io/__init__.py 99.36% <100.00%> (+0.02%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more