datasette plugin to explore CLDF datasets
Project description
datasette-cldf
Datasette plugin to explore CLDF datasets
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
- custom datasette metadata
- custom templates
- and custom configuration.
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-metadata.json
Features
We'll show the customizations provided by this plugin with a series of screenshots of datasette serving the World Atlas of Language Structures.
- Languages are displayed on a map
- Language details also show a map
- and link to feature values of the language
- Feature pages list possible values and their distribution
- Sources are formatted according to the Unified Style Sheet and as BibTeX records
- Examples are formatted as interlinear glossed text according to the Leipzig Glossing Rules
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file datasette-cldf-0.2.0.tar.gz
.
File metadata
- Download URL: datasette-cldf-0.2.0.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1deaafc434dea0626a7e5a18342b5920a859e151a8ec17072fb6c4ab5ecae3bd |
|
MD5 | 4dc3f59166e9134a13b8834d41596f6c |
|
BLAKE2b-256 | cb0251395fbc9630e2dcf0faa6de28d543bc6985219443fa2602a1eedc932cd6 |
File details
Details for the file datasette_cldf-0.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: datasette_cldf-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f01dbc888e771726b13e9544d35eb97a3f632209a4e805683b46b479dc0dd3ea |
|
MD5 | ec536305e50e3b427794b6daa8b84f12 |
|
BLAKE2b-256 | 1a94575628c88128b5703edf5992b030428727124dbbf52648fa0a996e3cd145 |