Skip to content

simonw/glottolog-datasette

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Glottolog-Datasette

Serve a version of the Glottolog database via Datasette as a REST-ful API.

Examples

  • Request: >>> languoid?label__contains=greek
  • Response: (truncated for most pertinent information)
{
  "rows": [
    {
      "id": "anci1242",
      "label": "Ancient Greek",
      "type": "language",
      "status": "extinct",
      "parent": "indo1319",
      "family": "east2798",
      "lat": 39.8155,
      "long": 21.9129,
      "iso639P3code": "grc",
      "child_family_count": 0,
      "child_language_count": 0,
      "child_dialect_count": 6
    }, ...
  ],
  "table_rows_count": 23495,
  "filtered_table_rows_count": 23,
  "next": null,
  "next_url": null,
  "query_ms": 15.398740768432617,
  "source": "Glottolog",
  "source_url": "http://glottolog.org/meta/downloads/",
  "license": "CC BY 4.0",
  "license_url": "https://creativecommons.org/licenses/by/4.0/"
}

The full Datasette API docs explain a bit more about the options: http://datasette.readthedocs.io/en/latest/. Most parameters however are just based on the column names in the tables.

Note that thanks to the versioned API-system, future version of the data model are not necessarily compatible.

Collaboration

Pull requests are welcome.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages

  • Python 80.1%
  • Makefile 19.9%