Skip to content

Commit

Permalink
foreignkeys
Browse files Browse the repository at this point in the history
  • Loading branch information
fmatter committed Nov 8, 2023
1 parent 41f91d0 commit 94856dc
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 39 deletions.
80 changes: 42 additions & 38 deletions docs/foreignkeys.csv
Original file line number Diff line number Diff line change
@@ -1,38 +1,42 @@
Source,Source_Key,Target,Target_Key
ExampleTable,Speaker_ID,speakers,ID
derivations,Process_ID,derivationalprocesses,ID
derivations,Root_ID,morphs,ID
derivations,Source_ID,stems,ID
derivations,Stempart_IDs,stemparts,ID
derivations,Target_ID,stems,ID
exampleparts,Example_ID,ExampleTable,ID
exampleparts,Parameter_ID,ParameterTable,ID
exampleparts,Wordform_ID,wordforms,ID
examples,Text_ID,texts,ID
formparts,Wordform_ID,wordforms,ID
inflectionalvalues,Category_ID,inflectionalcategories,ID
inflectionalvalues,Gloss_ID,glosses,ID
inflections,Form_ID,forms,ID
inflections,Stem_ID,stems,ID
inflections,Value_ID,inflectionalvalues,ID
inflections,Wordformpart_ID,wordformparts,ID
lexemes,Parameter_ID,ParameterTable,ID
morphemes,Part_Of_Speech,partsofspeech,ID
morphemes,Parameter_ID,ParameterTable,ID
morphs,Morpheme_ID,morphemes,ID
morphs,Parameter_ID,ParameterTable,ID
morphs,Part_Of_Speech,partsofspeech,ID
stemparts,Gloss_ID,glosses,ID
stemparts,Morph_ID,morphs,ID
stemparts,Stem_ID,stems,ID
stems,Parameter_ID,ParameterTable,ID
stems,Lexeme_ID,lexemes,ID
stems,Part_Of_Speech,partsofspeech,ID
wordformparts,Wordform_ID,wordforms,ID
wordformparts,Gloss_ID,glosses,ID
wordformparts,Morph_ID,morphs,ID
wordforms,Parameter_ID,ParameterTable,ID
wordforms,Stem_ID,stems,ID
wordforms,Part_Of_Speech,partsofspeech,ID
wordformstems,Stem_ID,stems,ID
wordformstems,Wordform_ID,wordforms,ID
"Source","Source_Key","Target","Target_Key"
"ExampleTable","Speaker_ID","speakers",""
"derivations","Process_ID","derivationalprocesses",""
"derivations","Root_ID","morphs",""
"derivations","Source_ID","stems",""
"derivations","Stempart_IDs","stemparts",""
"derivations","Target_ID","stems",""
"exampleparts","Example_ID","ExampleTable",""
"exampleparts","Parameter_ID","ParameterTable",""
"exampleparts","Wordform_ID","wordforms",""
"examples","Text_ID","texts",""
"formparts","Wordform_ID","wordforms",""
"inflectionalvalues","Category_ID","inflectionalcategories",""
"inflectionalvalues","Gloss_ID","glosses",""
"inflections","Form_ID","forms",""
"inflections","Stem_ID","stems",""
"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",""
"morphs","Language_ID","LanguageTable",""
"morphs","Morpheme_ID","morphemes",""
"morphs","Parameter_ID","ParameterTable",""
"morphs","Part_Of_Speech","partsofspeech",""
"stemparts","Gloss_ID","glosses",""
"stemparts","Morph_ID","morphs",""
"stemparts","Stem_ID","stems",""
"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",""
"wordforms","Parameter_ID","ParameterTable",""
"wordforms","Stem_ID","stems",""
"wordforms","Part_Of_Speech","partsofspeech",""
"wordforms","Language_ID","LanguageTable",""
"wordformstems","Stem_ID","stems",""
"wordformstems","Wordform_ID","wordforms",""
2 changes: 1 addition & 1 deletion docs/foreignkeys.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

Running the `add_keys` function on a dataset adds the following foreign keys, if the tables are present:

{{ read_csv('../docs/foreignkeys.csv', keep_default_na=False) }}
{{ read_csv('foreignkeys.csv', keep_default_na=False) }}

0 comments on commit 94856dc

Please sign in to comment.