Skip to content

Commit

Permalink
more Glottolog mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
xrotwang committed May 9, 2023
1 parent 3744f5a commit fceed2a
Show file tree
Hide file tree
Showing 10 changed files with 878 additions and 800 deletions.
11 changes: 11 additions & 0 deletions .zenodo.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,5 +183,16 @@
"name": "Robert Forkel",
"type": "DataCurator"
}
],
"creators": [
{
"name": "Lyle Campbell"
},
{
"name": "Gary Holton"
},
{
"name": "Anna Belew"
}
]
}
6 changes: 3 additions & 3 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ See https://endangeredlanguages.com/about_catalogue/ for a detailed description

Name | Role
--- | ---
Lyle Campbell | Editor, DataCollector, Researcher
Gary Holton | ProjectManager, Editor
Anna Belew | Editor, ProjectManager
Lyle Campbell | Editor, DataCollector, Researcher, author
Gary Holton | ProjectManager, Editor, author
Anna Belew | Editor, ProjectManager, author
Sean Simpson | DataCollector
John Van Way | DataCollector
Amy Brunett | DataCollector
Expand Down
2 changes: 1 addition & 1 deletion cldf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ property | value
[dc:identifier](http://purl.org/dc/terms/identifier) | https://endangeredlanguages.com
[dc:license](http://purl.org/dc/terms/license) | https://creativecommons.org/licenses/by/4.0/
[dcat:accessURL](http://www.w3.org/ns/dcat#accessURL) | https://github.com/cldf-datasets/elcat
[prov:wasDerivedFrom](http://www.w3.org/ns/prov#wasDerivedFrom) | <ol><li><a href="https://github.com/cldf-datasets/elcat/tree/06b63ae">cldf-datasets/elcat 06b63ae</a></li><li><a href="https://github.com/glottolog/glottolog/tree/v4.7">Glottolog v4.7</a></li></ol>
[prov:wasDerivedFrom](http://www.w3.org/ns/prov#wasDerivedFrom) | <ol><li><a href="https://github.com/cldf-datasets/elcat/tree/v2023">cldf-datasets/elcat v2023</a></li><li><a href="https://github.com/glottolog/glottolog/tree/v4.7">Glottolog v4.7</a></li></ol>
[prov:wasGeneratedBy](http://www.w3.org/ns/prov#wasGeneratedBy) | <ol><li><strong>python</strong>: 3.10.6</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) | elcat
[rdf:type](http://www.w3.org/1999/02/22-rdf-syntax-ns#type) | http://www.w3.org/ns/dcat#Distribution
Expand Down
2 changes: 1 addition & 1 deletion cldf/StructureDataset-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{
"rdf:about": "https://github.com/cldf-datasets/elcat",
"rdf:type": "prov:Entity",
"dc:created": "06b63ae",
"dc:created": "v2023",
"dc:title": "Repository"
},
{
Expand Down
132 changes: 66 additions & 66 deletions cldf/languages.csv

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cldf/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ bs4==0.0.1
Cartopy==0.21.1
certifi==2022.12.7
cldfbench==1.13.0
-e git+https://github.com/cldf-datasets/elcat@06b63ae0432ba08b92f12ef810e536ffef2b16e2#egg=cldfbench_elcat
-e git+https://github.com/cldf-datasets/elcat@3744f5a3f604b3f24638c93e1182ac7fd4d1452a#egg=cldfbench_elcat
cldfcatalog==1.5.1
cldfviz==0.12.0
cldfzenodo==1.1.0
Expand Down
992 changes: 496 additions & 496 deletions cldf/values.csv

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion cldfbench_elcat.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ def cmd_makecldf(self, args):
if lang.id in id2gc: # Hand-curated mapping exists.
if glottocodes:
if [id2gc[lang.id]] != glottocodes:
assert lang.id == '2896' # This is the only known discrepancy.
#print(id2gc[lang.id], glottocodes)
assert (lang.id in {'2896', '6029'}) or id2gc[lang.id] in glottocodes, str(lang.id) # This is the only known discrepancy.
glottocodes = [id2gc[lang.id]]
else:
glottocodes = [id2gc[lang.id]]
Expand Down
Loading

0 comments on commit fceed2a

Please sign in to comment.