Skip to content

cldf/datasette-cldf

Repository files navigation

datasette-cldf

Datasette plugin to explore CLDF datasets

Build Status PyPI

CLDF datasets can be easily loaded into SQLite databases (running the cldf createdb command provided with pycldf). Thus, they can be readily explored via the web interface provided by datasette.

This plugin exploits the "semantics" of CLDF to customize datasette, e.g. to display glottocode columns as hyperlinks to https://glottolog.org or to display rows of an ExampleTable component as interlinear glossed text, i.e. with aligned morphemes and glosses.

Usage

datasette-cldf customizes datasette by providing

Thus, instead of calling the datasette cli directly, ỳou call the datasette.serve subcommand, which this package registers with cldfbench:

cldfbench datasette.serve PATH/TO/CLDF/DATASET

Features

We'll show the customizations provided by this plugin with a series of screenshots of datasette serving the World Atlas of Language Structures and the Glottolog data, respectively.

  • Languages are displayed on a map

  • Language details also show a map

  • and link to feature values of the language for WALS

    and values for the Glottolog "parameters" for Glottolog

  • Feature pages list possible values and their distribution

About

Datasette plugin to explore CLDF datasets

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published