Skip to content

Commit

Permalink
Use Concepticon concept list, fixes (#5)
Browse files Browse the repository at this point in the history
* Fix dataset ID

* Fix name of downloaded wordlist

* Update scaffolding

* Update download

* Use Concepticon concept list

* Fix Python version for CI

* Fix tests

* Re-generate CLDF
  • Loading branch information
chrzyki authored Feb 14, 2024
1 parent 95091da commit ce3eb62
Show file tree
Hide file tree
Showing 16 changed files with 3,398 additions and 548 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/cldf-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CLDF-validation

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest-cldf
- name: Test with pytest
run: |
pytest --cldf-metadata=cldf/cldf-metadata.json test.py
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# CLDF dataset derived from Luangthongkum's "Proto-Karen Phonology and Lexicon" from 2019

[![CLDF validation](https://github.com/lexibank/luangthongkumkaren/workflows/CLDF-validation/badge.svg)](https://github.com/lexibank/luangthongkumkaren/actions?query=workflow%3ACLDF-validation)

## How to cite

If you use these data please cite
Expand All @@ -14,12 +16,15 @@ This dataset is licensed under a CC-BY-NC-ND-4.0 license

Available online at http://hdl.handle.net/10524/52441


Conceptlists in Concepticon:
- [Luangthongkum-2019-341](https://concepticon.clld.org/contributions/Luangthongkum-2019-341)
## Statistics


[![Build Status](https://travis-ci.org/lexibank/luangthongkumkaren.svg?branch=master)](https://travis-ci.org/lexibank/luangthongkumkaren)
[![CLDF validation](https://github.com/lexibank/luangthongkumkaren/workflows/CLDF-validation/badge.svg)](https://github.com/lexibank/luangthongkumkaren/actions?query=workflow%3ACLDF-validation)
![Glottolog: 81%](https://img.shields.io/badge/Glottolog-81%25-yellowgreen.svg "Glottolog: 81%")
![Concepticon: 82%](https://img.shields.io/badge/Concepticon-82%25-yellowgreen.svg "Concepticon: 82%")
![Concepticon: 74%](https://img.shields.io/badge/Concepticon-74%25-yellow.svg "Concepticon: 74%")
![Source: 0%](https://img.shields.io/badge/Source-0%25-red.svg "Source: 0%")
![BIPA: 100%](https://img.shields.io/badge/BIPA-100%25-brightgreen.svg "BIPA: 100%")
![CLTS SoundClass: 100%](https://img.shields.io/badge/CLTS%20SoundClass-100%25-brightgreen.svg "CLTS SoundClass: 100%")
Expand Down
9 changes: 5 additions & 4 deletions cldf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ property | value
--- | ---
[dc:bibliographicCitation](http://purl.org/dc/terms/bibliographicCitation) | Luangthongkum, T. (2019). A View on Proto-Karen Phonology and Lexicon, Journal of Southest Asian Linguistics Society, 12.1, i-lii. doi: http://hdl.handle.net/10524/52441
[dc:conformsTo](http://purl.org/dc/terms/conformsTo) | [CLDF Wordlist](http://cldf.clld.org/v1.0/terms.rdf#Wordlist)
[dc:format](http://purl.org/dc/terms/format) | <ol><li>http://concepticon.clld.org/contributions/Luangthongkum-2019-341</li></ol>
[dc:identifier](http://purl.org/dc/terms/identifier) | http://hdl.handle.net/10524/52441
[dc:license](http://purl.org/dc/terms/license) | https://creativecommons.org/licenses/by-nc-nd/4.0/
[dcat:accessURL](http://www.w3.org/ns/dcat#accessURL) | https://github.com/lexibank/luangthongkumkaren
[prov:wasDerivedFrom](http://www.w3.org/ns/prov#wasDerivedFrom) | <ol><li><a href="https://github.com/lexibank/luangthongkumkaren/tree/655a784">lexibank/luangthongkumkaren 655a784</a></li><li><a href="https://github.com/glottolog/glottolog/tree/v4.8">Glottolog v4.8</a></li><li><a href="https://github.com/concepticon/concepticon-data/tree/v3.1.0">Concepticon v3.1.0</a></li><li><a href="https://github.com/cldf-clts/clts//tree/v2.2.0">CLTS v2.2.0</a></li></ol>
[prov:wasGeneratedBy](http://www.w3.org/ns/prov#wasGeneratedBy) | <ol><li><strong>lingpy-rcParams</strong>: <a href="./lingpy-rcParams.json">lingpy-rcParams.json</a></li><li><strong>python</strong>: 3.9.16</li><li><strong>python-packages</strong>: <a href="./requirements.txt">requirements.txt</a></li></ol>
[prov:wasDerivedFrom](http://www.w3.org/ns/prov#wasDerivedFrom) | <ol><li><a href="https://github.com/lexibank/luangthongkumkaren/tree/d0de437">lexibank/luangthongkumkaren v1.0-6-gd0de437</a></li><li><a href="https://github.com/glottolog/glottolog/tree/v4.8">Glottolog v4.8</a></li><li><a href="https://github.com/concepticon/concepticon-data/tree/v3.1.0">Concepticon v3.1.0</a></li><li><a href="https://github.com/cldf-clts/clts/tree/v2.2.0">CLTS v2.2.0</a></li></ol>
[prov:wasGeneratedBy](http://www.w3.org/ns/prov#wasGeneratedBy) | <ol><li><strong>lingpy-rcParams</strong>: <a href="./lingpy-rcParams.json">lingpy-rcParams.json</a></li><li><strong>python</strong>: 3.11.7</li><li><strong>python-packages</strong>: <a href="./requirements.txt">requirements.txt</a></li></ol>
[rdf:ID](http://www.w3.org/1999/02/22-rdf-syntax-ns#ID) | luangthongkumkaren
[rdf:type](http://www.w3.org/1999/02/22-rdf-syntax-ns#type) | http://www.w3.org/ns/dcat#Distribution

Expand Down Expand Up @@ -64,8 +65,8 @@ Name/Property | Datatype | Description
`Glottolog_Name` | `string` |
[ISO639P3code](http://cldf.clld.org/v1.0/terms.rdf#iso639P3code) | `string` |
[Macroarea](http://cldf.clld.org/v1.0/terms.rdf#macroarea) | `string` |
[Latitude](http://cldf.clld.org/v1.0/terms.rdf#latitude) | `decimal` |
[Longitude](http://cldf.clld.org/v1.0/terms.rdf#longitude) | `decimal` |
[Latitude](http://cldf.clld.org/v1.0/terms.rdf#latitude) | `decimal`<br>&ge; -90<br>&le; 90 |
[Longitude](http://cldf.clld.org/v1.0/terms.rdf#longitude) | `decimal`<br>&ge; -180<br>&le; 180 |
`Family` | `string` |

## <a name="table-parameterscsv"></a>Table [parameters.csv](./parameters.csv)
Expand Down
9 changes: 6 additions & 3 deletions cldf/cldf-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"aboutUrl": null,
"dc:bibliographicCitation": "Luangthongkum, T. (2019). A View on Proto-Karen Phonology and Lexicon, Journal of Southest Asian Linguistics Society, 12.1, i-lii. doi: http://hdl.handle.net/10524/52441",
"dc:conformsTo": "http://cldf.clld.org/v1.0/terms.rdf#Wordlist",
"dc:format": [
"http://concepticon.clld.org/contributions/Luangthongkum-2019-341"
],
"dc:identifier": "http://hdl.handle.net/10524/52441",
"dc:isVersionOf": null,
"dc:license": "https://creativecommons.org/licenses/by-nc-nd/4.0/",
Expand All @@ -14,7 +17,7 @@
{
"rdf:about": "https://github.com/lexibank/luangthongkumkaren",
"rdf:type": "prov:Entity",
"dc:created": "655a784",
"dc:created": "v1.0-6-gd0de437",
"dc:title": "Repository"
},
{
Expand All @@ -30,7 +33,7 @@
"dc:title": "Concepticon"
},
{
"rdf:about": "https://github.com/cldf-clts/clts/",
"rdf:about": "https://github.com/cldf-clts/clts",
"rdf:type": "prov:Entity",
"dc:created": "v2.2.0",
"dc:title": "CLTS"
Expand All @@ -43,7 +46,7 @@
},
{
"dc:title": "python",
"dc:description": "3.9.16"
"dc:description": "3.11.7"
},
{
"dc:title": "python-packages",
Expand Down
4 changes: 2 additions & 2 deletions cldf/lingpy-rcParams.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
10,
10
],
"filename": "lingpy-2023-12-15",
"filename": "lingpy-2024-02-14",
"gap_symbol": "-",
"gap_weight": 0.5,
"gop": -2,
Expand Down Expand Up @@ -123,7 +123,7 @@
"scorer": {},
"sonar": true,
"stress": "\u02c8\u02cc'",
"timestamp": "2023-12-15 17:53",
"timestamp": "2024-02-14 12:49",
"tones": "\u00b9\u00b2\u00b3\u2074\u2075\u2076\u2077\u2078\u2079\u2070\u2081\u2082\u2083\u2084\u2085\u2086\u2087\u2088\u2089\u20800123456789\u02e5\u02e6\u02e7\u02e8\u02e9\u02ea\u02eb-\ua708-\ua709-\ua70a-\ua70b-\ua70c-\ua70d-\ua70e-\ua70f-\ua710-\ua711-\ua712-\ua713-\ua714-\ua715-\ua716-\ua717-\ua718-\ua719-\ua71a-\ua700-\ua701-\ua702-\ua703-\ua704-\ua705-\ua706-\ua707",
"tree_calc": "neighbor",
"unique_sequences": true,
Expand Down
Loading

0 comments on commit ce3eb62

Please sign in to comment.