Skip to content

Commit

Permalink
closes #106
Browse files Browse the repository at this point in the history
  • Loading branch information
xrotwang committed Nov 30, 2022
1 parent 836d933 commit 42c0da7
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 7 deletions.
2 changes: 0 additions & 2 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,3 @@

- Run `pytest`
- Update `CHANGES.md`


9 changes: 8 additions & 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/wals",
"rdf:type": "prov:Entity",
"dc:created": "v2020.2-1-g2034005",
"dc:created": "v2020.2-5-g836d933",
"dc:title": "Repository"
},
{
Expand Down Expand Up @@ -170,6 +170,7 @@
},
"propertyUrl": "http://cldf.clld.org/v1.0/terms.rdf#id",
"required": true,
"valueUrl": "docs/chapter_{ID}.html",
"name": "ID"
},
{
Expand Down Expand Up @@ -631,6 +632,9 @@
"dc:description": "The sequence of words of the primary text to be aligned with glosses",
"dc:extent": "multivalued",
"datatype": "string",
"null": [
"_____"
],
"propertyUrl": "http://cldf.clld.org/v1.0/terms.rdf#analyzedWord",
"required": false,
"separator": "\t",
Expand All @@ -640,6 +644,9 @@
"dc:description": "The sequence of glosses aligned with the words of the primary text",
"dc:extent": "multivalued",
"datatype": "string",
"null": [
"_____"
],
"propertyUrl": "http://cldf.clld.org/v1.0/terms.rdf#gloss",
"required": false,
"separator": "\t",
Expand Down
2 changes: 1 addition & 1 deletion cldf/docs/chapter_108.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ <h2 class="heading-1">
<p class="Standard">youth-<span class="T3"><span class="hint--bottom" data-hint="absolutive">abs</span></span></p>
</td>
<td style="text-align:left;">
<p class="Standard"><span class="T3"><span class="hint--bottom" data-hint="antipassive">antip</span></span>-carry-<span class="T3">aor.<span class="hint--bottom" data-hint="singular">3sg</span>.subj-pl</span></p>
<p class="Standard"><span class="T3"><span class="hint--bottom" data-hint="antipassive">antip</span></span>-carry-<span class="T3">aor.<span class="hint--bottom" data-hint="singular">3</span>.subj-pl</span></p>
</td>
<td style="text-align:left;">
<p class="Standard">load-<span class="T3">instr</span></p>
Expand Down
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
certifi==2019.11.28
chardet==3.0.4
-e git+https://github.com/cldf/cldfbench@94d5137c50a1dc5ee057865ed171bb4421aa2ff8#egg=cldfbench
-e git+https://github.com/cldf-datasets/wals@2034005e0aafbb197dc55c4d4786885df5df0d3e#egg=cldfbench_wals
-e git+https://github.com/cldf-datasets/wals@836d933d6b6ca37e82afab5fd2fc0e7f4200d359#egg=cldfbench_wals
cldfcatalog==1.5.1
cldfviz==0.10.0
clldutils==3.14.0
Expand Down
8 changes: 6 additions & 2 deletions cldfbench_wals.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import collections

from csvw import dsv
from csvw.metadata import URITemplate
from cldfbench import Dataset as BaseDataset
from cldfbench import CLDFSpec
from clldutils.misc import data_url, slug
Expand Down Expand Up @@ -308,8 +309,8 @@ def cmd_makecldf(self, args):
'Language_ID': pk2id['language'][ex['language_pk']],
'Primary_Text': ex['name'],
'Translated_Text': ex['description'],
'Analyzed_Word': a,
'Gloss': g,
'Analyzed_Word': ['…' if t is None else t for t in a],
'Gloss': ['…' if t is None else t for t in g],
})
example_by_value = {
vpk: [r['sentence_pk'] for r in rows]
Expand Down Expand Up @@ -471,6 +472,8 @@ def create_schema(self, cldf):
"the taxonomic units of the Genealogical Language List have IDs prefixed with " \
"'family-', 'subfamily-' or 'genus-'."
cldf.add_component('ExampleTable')
cldf[('ExampleTable', 'Gloss')].null = ['_____']
cldf[('ExampleTable', 'Analyzed_Word')].null = ['_____']
t = cldf.add_table(
'language_names.csv',
{
Expand Down Expand Up @@ -534,6 +537,7 @@ def create_schema(self, cldf):
'separator': ' ',
},
)
cldf[('ContributionTable', 'ID')].valueUrl = URITemplate('docs/chapter_{ID}.html')
t = cldf.add_table(
'areas.csv',
{
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
],
},
install_requires=[
'python-nexus',
'newick',
'cldfbench>=1.6.0',
'clldutils>=3.7.0',
'pycldf>=1.19.0',
Expand Down

0 comments on commit 42c0da7

Please sign in to comment.