Skip to content
This repository has been archived by the owner on Sep 1, 2021. It is now read-only.

linkml/linkml-csv

Repository files navigation

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