Skip to content

cldf-ldd

cldf-ldd is a collection of CLDF components for modeling typical corpora resulting from descriptive fieldwork.

Installation

pip install cldf_ldd

Usage

Adding components to a CLDF dataset:

from cldf_ldd.components import StemTable
...
args.writer.cldf.add_component(StemTable)
...
args.writer.objects[StemTable["url"]].append({...})

Adding foreign keys:

from cldf_ldd import add_keys
...
add_keys(args.writer.cldf)

Adding additional columns to native tables:

from cldf_ldd import add_columns
...
add_columns(args.writer.cldf)