linkml / linkml-csv

LinkML to CSV conversion

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DEPRECATED

This has now been merged into the linkml core

linkml-csv

Extension to linkml-runtime for converting between instances of LinkML models and CSVs. This may involve selective normalization/denormalization, plus serialization of selected elements as JSON/YAML

This builds on json-flattener

Command Line Usage

Denormalizing conversion from YAML instance data to TSV

link-convert \
  -s examples/bookshop.schema.yaml \
  -C Shop \
  -S all_book_series \
  -o examples/shop1.instance.tsv \
  examples/shop1.instance.yaml

Converting back to YAML/JSON:

link-convert \
  -s examples/bookshop.schema.yaml \
  -C Shop \
  -S all_book_series \
  -o examples/shop1-troundtrip.instance.json \
  examples/shop1.instance.tsv

About

LinkML to CSV conversion

License:Creative Commons Zero v1.0 Universal


Languages

Language:Python 97.7%Language:Shell 2.0%Language:Makefile 0.2%