From cb5bd670ed43d87b836e9f6c12786354cacd969e Mon Sep 17 00:00:00 2001 From: Florian Matter Date: Wed, 21 Feb 2024 07:18:24 -0800 Subject: [PATCH] formparts<->forms --- CHANGELOG.md | 3 +++ etc/foreignkeys.csv | 9 ++++--- src/cldf_ldd/components/formparts/README.md | 2 +- src/cldf_ldd/components/keys.yaml | 28 ++++++++++++--------- 4 files changed, 25 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7686291..69e62b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed +* `forms.csv` reference to `formparts.csv` + ## [0.0.8] - 2023-11-07 ### Added diff --git a/etc/foreignkeys.csv b/etc/foreignkeys.csv index 27b26f4..ea4dd53 100644 --- a/etc/foreignkeys.csv +++ b/etc/foreignkeys.csv @@ -10,6 +10,7 @@ "exampleparts","Wordform_ID","wordforms","" "examples","Text_ID","texts","" "formparts","Wordform_ID","wordforms","" +"formparts","Form_ID","forms","" "inflectionalvalues","Category_ID","inflectionalcategories","" "inflectionalvalues","Gloss_ID","glosses","" "inflections","Form_ID","forms","" @@ -17,9 +18,9 @@ "inflections","Value_ID","inflectionalvalues","" "inflections","Wordformpart_ID","wordformparts","" "lexemes","Parameter_ID","ParameterTable","" -"morphemes","Part_Of_Speech","partsofspeech","" -"morphemes","Parameter_ID","ParameterTable","" "morphemes","Language_ID","LanguageTable","" +"morphemes","Parameter_ID","ParameterTable","" +"morphemes","Part_Of_Speech","partsofspeech","" "morphs","Language_ID","LanguageTable","" "morphs","Morpheme_ID","morphemes","" "morphs","Parameter_ID","ParameterTable","" @@ -27,10 +28,10 @@ "stemparts","Gloss_ID","glosses","" "stemparts","Morph_ID","morphs","" "stemparts","Stem_ID","stems","" +"stems","Parameter_ID","ParameterTable","" +"stems","Lexeme_ID","lexemes","" "stems","Language_ID","LanguageTable","" "stems","Part_Of_Speech","partsofspeech","" -"stems","Lexeme_ID","lexemes","" -"stems","Parameter_ID","ParameterTable","" "wordformparts","Wordform_ID","wordforms","" "wordformparts","Gloss_ID","glosses","" "wordformparts","Morph_ID","morphs","" diff --git a/src/cldf_ldd/components/formparts/README.md b/src/cldf_ldd/components/formparts/README.md index 1d8aa27..cae0129 100644 --- a/src/cldf_ldd/components/formparts/README.md +++ b/src/cldf_ldd/components/formparts/README.md @@ -6,6 +6,6 @@ An association table between [wordforms](../wordforms) and larger [forms](https: Name/Property | Datatype | Cardinality | Description --- | --- | --- | --- [ID](http://cldf.clld.org/v1.0/terms.rdf#id) | `string` |

A unique identifier for a row in a table.

To allow usage of identifiers as path components of URLs IDs must only contain alphanumeric characters, underscore and hyphen.


Primary key -`Form_ID` | `string` | The associated form. +`Form_ID` | `string` | The associated form.
References forms.csv. `Wordform_ID` | `string` | The associated wordform.
References wordforms.csv. `Index` | `string` | Specifies the position of a morph in a wordform. \ No newline at end of file diff --git a/src/cldf_ldd/components/keys.yaml b/src/cldf_ldd/components/keys.yaml index 6b22b6c..a01bed8 100644 --- a/src/cldf_ldd/components/keys.yaml +++ b/src/cldf_ldd/components/keys.yaml @@ -42,6 +42,10 @@ - Wordform_ID - wordforms.csv - ID +- - formparts.csv + - Form_ID + - forms.csv + - ID - - inflectionalvalues.csv - Category_ID - inflectionalcategories.csv @@ -71,16 +75,16 @@ - ParameterTable - ID - - morphemes.csv - - Part_Of_Speech - - partsofspeech.csv + - Language_ID + - LanguageTable - ID - - morphemes.csv - Parameter_ID - ParameterTable - ID - - morphemes.csv - - Language_ID - - LanguageTable + - Part_Of_Speech + - partsofspeech.csv - ID - - morphs.csv - Language_ID @@ -111,20 +115,20 @@ - stems.csv - ID - - stems.csv - - Language_ID - - LanguageTable - - ID -- - stems.csv - - Part_Of_Speech - - partsofspeech.csv + - Parameter_ID + - ParameterTable - ID - - stems.csv - Lexeme_ID - lexemes.csv - ID - - stems.csv - - Parameter_ID - - ParameterTable + - Language_ID + - LanguageTable + - ID +- - stems.csv + - Part_Of_Speech + - partsofspeech.csv - ID - - wordformparts.csv - Wordform_ID