From f5a7617587c2b01bb6dfdca0ae86ed9b51fbb353 Mon Sep 17 00:00:00 2001 From: perasperaadastra <44439208+perasperaadastra@users.noreply.github.com> Date: Tue, 26 Nov 2024 11:15:09 +0100 Subject: [PATCH 01/19] Move animals context --- contexts.yaml | 2 +- contexts/{ => animals}/animals_en.cxt | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename contexts/{ => animals}/animals_en.cxt (100%) diff --git a/contexts.yaml b/contexts.yaml index b3df020..cc28896 100644 --- a/contexts.yaml +++ b/contexts.yaml @@ -1,5 +1,5 @@ --- -animals_en.cxt: +animals/animals_en.cxt: title: Animals source: "Ganter, B., Wille, R., & Stumme, G. (2005). Formal Concept Analysis: Foundations and Applications (Vol. 3626). Springer, p. 27" size: diff --git a/contexts/animals_en.cxt b/contexts/animals/animals_en.cxt similarity index 100% rename from contexts/animals_en.cxt rename to contexts/animals/animals_en.cxt From 023ecfe0c766954fd34be012f6a7e0dfcae66c79 Mon Sep 17 00:00:00 2001 From: perasperaadastra <44439208+perasperaadastra@users.noreply.github.com> Date: Tue, 26 Nov 2024 11:17:08 +0100 Subject: [PATCH 02/19] Move bodies-of-water contexts --- contexts.yaml | 4 ++-- contexts/{ => bodies-of-water}/bodiesofwater_de.cxt | 0 contexts/{ => bodies-of-water}/bodiesofwater_en.cxt | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename contexts/{ => bodies-of-water}/bodiesofwater_de.cxt (100%) rename contexts/{ => bodies-of-water}/bodiesofwater_en.cxt (100%) diff --git a/contexts.yaml b/contexts.yaml index cc28896..4bb3db2 100644 --- a/contexts.yaml +++ b/contexts.yaml @@ -8,7 +8,7 @@ animals/animals_en.cxt: language: English description: animals and their characteristics -bodiesofwater_en.cxt: +bodies-of-water/bodiesofwater_en.cxt: title: Bodies of water source: "Wille, R. (1984). Liniendiagramme hierarchischer Begriffssysteme. Studien zur Klassifikation. Indeks Verlag" size: @@ -17,7 +17,7 @@ bodiesofwater_en.cxt: language: English description: bodies of water and their properties -bodiesofwater_de.cxt: +bodies-of-water/bodiesofwater_de.cxt: title: Gewässer source: "Wille, R. (1984). Liniendiagramme hierarchischer Begriffssysteme. Studien zur Klassifikation. Indeks Verlag" size: diff --git a/contexts/bodiesofwater_de.cxt b/contexts/bodies-of-water/bodiesofwater_de.cxt similarity index 100% rename from contexts/bodiesofwater_de.cxt rename to contexts/bodies-of-water/bodiesofwater_de.cxt diff --git a/contexts/bodiesofwater_en.cxt b/contexts/bodies-of-water/bodiesofwater_en.cxt similarity index 100% rename from contexts/bodiesofwater_en.cxt rename to contexts/bodies-of-water/bodiesofwater_en.cxt From 97ee576c8cf634bfa7586128e9c61b9a81bb4d99 Mon Sep 17 00:00:00 2001 From: perasperaadastra <44439208+perasperaadastra@users.noreply.github.com> Date: Tue, 26 Nov 2024 11:20:37 +0100 Subject: [PATCH 03/19] Move drive-concepts-for-motorcars contexts --- contexts.yaml | 4 ++-- .../{ => drive-concepts-for-motorcars}/driveconcepts_de.cxt | 0 .../{ => drive-concepts-for-motorcars}/driveconcepts_en.cxt | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename contexts/{ => drive-concepts-for-motorcars}/driveconcepts_de.cxt (100%) rename contexts/{ => drive-concepts-for-motorcars}/driveconcepts_en.cxt (100%) diff --git a/contexts.yaml b/contexts.yaml index 4bb3db2..e4a6280 100644 --- a/contexts.yaml +++ b/contexts.yaml @@ -27,7 +27,7 @@ bodies-of-water/bodiesofwater_de.cxt: description: bodies of water and their properties note: German version of bodiesofwater_en.cxt -driveconcepts_en.cxt: +drive-concepts-for-motorcars/driveconcepts_en.cxt: title: Drive Concepts source: "Ganter, B., & Wille, R. (1999). Formal Concept analysis. Springer, p. 39" size: @@ -37,7 +37,7 @@ driveconcepts_en.cxt: description: drive concepts for motorcars note: "Derived from a table on page 402 in the book Schlag nach! 100000 Tatsachen aus allen Wissensgebieten. 13. Auflage. Meyers Lexikonverlag, 1988" -driveconcepts_de.cxt: +drive-concepts-for-motorcars/driveconcepts_de.cxt: title: Drive Concepts source: "Ganter, B., & Wille, R. (1996). Formale Begriffsanalyse. Springer. p. 39" size: diff --git a/contexts/driveconcepts_de.cxt b/contexts/drive-concepts-for-motorcars/driveconcepts_de.cxt similarity index 100% rename from contexts/driveconcepts_de.cxt rename to contexts/drive-concepts-for-motorcars/driveconcepts_de.cxt diff --git a/contexts/driveconcepts_en.cxt b/contexts/drive-concepts-for-motorcars/driveconcepts_en.cxt similarity index 100% rename from contexts/driveconcepts_en.cxt rename to contexts/drive-concepts-for-motorcars/driveconcepts_en.cxt From 28e0dd51efbd566aa866fb40d37a9f7e2dbb9cbc Mon Sep 17 00:00:00 2001 From: perasperaadastra <44439208+perasperaadastra@users.noreply.github.com> Date: Tue, 26 Nov 2024 11:27:20 +0100 Subject: [PATCH 04/19] Move famous-animals context --- contexts.yaml | 2 +- contexts/{ => famous-animals}/famous_animals_en.cxt | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename contexts/{ => famous-animals}/famous_animals_en.cxt (100%) diff --git a/contexts.yaml b/contexts.yaml index e4a6280..3b5a75e 100644 --- a/contexts.yaml +++ b/contexts.yaml @@ -47,7 +47,7 @@ drive-concepts-for-motorcars/driveconcepts_de.cxt: description: drive concepts for motorcars note: German version of driveconcepts_en.cxt -famous_animals_en.cxt: +famous-animals/famous_animals_en.cxt: title: Famous Animals source: "Priss, U. (2006), Formal concept analysis in information science. Ann. Rev. Info. Sci. Tech., 40: 521-543. p.525" size: diff --git a/contexts/famous_animals_en.cxt b/contexts/famous-animals/famous_animals_en.cxt similarity index 100% rename from contexts/famous_animals_en.cxt rename to contexts/famous-animals/famous_animals_en.cxt From c62f9fa5fd93b705414f0b6c123e2fae6c973359 Mon Sep 17 00:00:00 2001 From: perasperaadastra <44439208+perasperaadastra@users.noreply.github.com> Date: Tue, 26 Nov 2024 11:29:01 +0100 Subject: [PATCH 05/19] Move living-beings-and-water contexts --- contexts.yaml | 4 ++-- contexts/{ => living-beings-and-water}/livingbeings_de.cxt | 0 contexts/{ => living-beings-and-water}/livingbeings_en.cxt | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename contexts/{ => living-beings-and-water}/livingbeings_de.cxt (100%) rename contexts/{ => living-beings-and-water}/livingbeings_en.cxt (100%) diff --git a/contexts.yaml b/contexts.yaml index 3b5a75e..c1bc87b 100644 --- a/contexts.yaml +++ b/contexts.yaml @@ -56,7 +56,7 @@ famous-animals/famous_animals_en.cxt: language: English description: famous animals and their characteristics -livingbeings_en.cxt: +living-beings-and-water/livingbeings_en.cxt: title: Living Beings and Water source: "Ganter, B., & Wille, R. (1999). Formal Concept analysis. Springer, p. 18" size: @@ -65,7 +65,7 @@ livingbeings_en.cxt: language: English description: conditions different living beings need -livingbeings_de.cxt: +living-beings-and-water/livingbeings_de.cxt: title: Lebewesen und Wasser source: "Ganter, B., & Wille, R. (1996). Formale Begriffsanalyse. Springer. p. 18" size: diff --git a/contexts/livingbeings_de.cxt b/contexts/living-beings-and-water/livingbeings_de.cxt similarity index 100% rename from contexts/livingbeings_de.cxt rename to contexts/living-beings-and-water/livingbeings_de.cxt diff --git a/contexts/livingbeings_en.cxt b/contexts/living-beings-and-water/livingbeings_en.cxt similarity index 100% rename from contexts/livingbeings_en.cxt rename to contexts/living-beings-and-water/livingbeings_en.cxt From d6f9c0508e87f5df046cab2010192cc7b814f9b2 Mon Sep 17 00:00:00 2001 From: perasperaadastra <44439208+perasperaadastra@users.noreply.github.com> Date: Tue, 26 Nov 2024 11:30:33 +0100 Subject: [PATCH 06/19] Move miss-marple contexts --- contexts.yaml | 4 ++-- contexts/{ => miss-marple}/missmarple_de.cxt | 0 contexts/{ => miss-marple}/missmarple_en.cxt | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename contexts/{ => miss-marple}/missmarple_de.cxt (100%) rename contexts/{ => miss-marple}/missmarple_en.cxt (100%) diff --git a/contexts.yaml b/contexts.yaml index c1bc87b..d8832f2 100644 --- a/contexts.yaml +++ b/contexts.yaml @@ -75,7 +75,7 @@ living-beings-and-water/livingbeings_de.cxt: description: conditions different living beings need note: German version of livingbeings_en.cxt -missmarple_en.cxt: +miss-marple/missmarple_en.cxt: title: Methods of murder in Miss Marple novels source: "Schott, B. (2004). Schotts Sammelsurium. Bloomsbury, Berlin" size: @@ -84,7 +84,7 @@ missmarple_en.cxt: language: English description: methods of murder in Miss Marple novels (not short stories!) -missmarple_de.cxt: +miss-marple/missmarple_de.cxt: title: Mordmethoden in Miss-Marple-Romanen source: "Schott, B. (2004). Schotts Sammelsurium. Bloomsbury, Berlin" size: diff --git a/contexts/missmarple_de.cxt b/contexts/miss-marple/missmarple_de.cxt similarity index 100% rename from contexts/missmarple_de.cxt rename to contexts/miss-marple/missmarple_de.cxt diff --git a/contexts/missmarple_en.cxt b/contexts/miss-marple/missmarple_en.cxt similarity index 100% rename from contexts/missmarple_en.cxt rename to contexts/miss-marple/missmarple_en.cxt From 102832e97e8ed8e2cf4307cf8d59e1e7f0bf60e4 Mon Sep 17 00:00:00 2001 From: perasperaadastra <44439208+perasperaadastra@users.noreply.github.com> Date: Tue, 26 Nov 2024 11:31:52 +0100 Subject: [PATCH 07/19] Move music-characteristics context --- contexts.yaml | 2 +- contexts/{ => music-characteristics}/music_en.cxt | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename contexts/{ => music-characteristics}/music_en.cxt (100%) diff --git a/contexts.yaml b/contexts.yaml index d8832f2..940bb0f 100644 --- a/contexts.yaml +++ b/contexts.yaml @@ -94,7 +94,7 @@ miss-marple/missmarple_de.cxt: description: methods of murder in Miss Marple novels (not short stories!) note: German version of missmarple_en.cxt -music_en.cxt: +music-characteristics/music_en.cxt: title: Music source: "Ganter, B., Wille, R., & Stumme, G. (2005). Formal Concept Analysis: Foundations and Applications (Vol. 3626). Springer, p. 22" size: diff --git a/contexts/music_en.cxt b/contexts/music-characteristics/music_en.cxt similarity index 100% rename from contexts/music_en.cxt rename to contexts/music-characteristics/music_en.cxt From a126eda32ef8774b7b92eb58b74116eef8c21c56 Mon Sep 17 00:00:00 2001 From: perasperaadastra <44439208+perasperaadastra@users.noreply.github.com> Date: Tue, 26 Nov 2024 11:33:32 +0100 Subject: [PATCH 08/19] Move new-zealand-activities context --- contexts.yaml | 2 +- contexts/{ => new-zealand-activities}/newzealand_en.cxt | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename contexts/{ => new-zealand-activities}/newzealand_en.cxt (100%) diff --git a/contexts.yaml b/contexts.yaml index 940bb0f..8c6aedd 100644 --- a/contexts.yaml +++ b/contexts.yaml @@ -103,7 +103,7 @@ music-characteristics/music_en.cxt: language: English description: music and their characteristics -newzealand_en.cxt: +new-zealand-activities/newzealand_en.cxt: title: New Zealand Leasure source: "DK Eyewitness Travel Guide New Zealand. Dorling Kindersley Publishing Inc. 2001." size: diff --git a/contexts/newzealand_en.cxt b/contexts/new-zealand-activities/newzealand_en.cxt similarity index 100% rename from contexts/newzealand_en.cxt rename to contexts/new-zealand-activities/newzealand_en.cxt From 3e8156940cbaeac277ee850c934a509e3bf49f77 Mon Sep 17 00:00:00 2001 From: perasperaadastra <44439208+perasperaadastra@users.noreply.github.com> Date: Tue, 26 Nov 2024 11:37:18 +0100 Subject: [PATCH 09/19] Move office-supplies-and-services contexts --- contexts.yaml | 4 ++-- .../{ => office-supplies-and-services}/officesupplies_de.cxt | 0 .../{ => office-supplies-and-services}/officesupplies_en.cxt | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename contexts/{ => office-supplies-and-services}/officesupplies_de.cxt (100%) rename contexts/{ => office-supplies-and-services}/officesupplies_en.cxt (100%) diff --git a/contexts.yaml b/contexts.yaml index 8c6aedd..b86b1a7 100644 --- a/contexts.yaml +++ b/contexts.yaml @@ -112,7 +112,7 @@ new-zealand-activities/newzealand_en.cxt: language: English description: Places in New Zealand and offered activities -officesupplies_en.cxt: +office-supplies-and-services/officesupplies_en.cxt: title: Office Supplies source: "Ganter, B., & Wille, R. (1999). Formal Concept analysis. Springer, p. 25" size: @@ -121,7 +121,7 @@ officesupplies_en.cxt: language: English description: service offers of an office supplies business -officesupplies_de.cxt: +office-supplies-and-services/officesupplies_de.cxt: title: Bürobedarf source: "Ganter, B., & Wille, R. (1996). Formale Begriffsanalyse. Springer. p. 25" size: diff --git a/contexts/officesupplies_de.cxt b/contexts/office-supplies-and-services/officesupplies_de.cxt similarity index 100% rename from contexts/officesupplies_de.cxt rename to contexts/office-supplies-and-services/officesupplies_de.cxt diff --git a/contexts/officesupplies_en.cxt b/contexts/office-supplies-and-services/officesupplies_en.cxt similarity index 100% rename from contexts/officesupplies_en.cxt rename to contexts/office-supplies-and-services/officesupplies_en.cxt From 1dee7b4c57240dc254e27853cea14859bc4c9844 Mon Sep 17 00:00:00 2001 From: perasperaadastra <44439208+perasperaadastra@users.noreply.github.com> Date: Tue, 26 Nov 2024 11:38:36 +0100 Subject: [PATCH 10/19] Move planets context --- contexts.yaml | 2 +- contexts/{ => planets}/planets_en.cxt | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename contexts/{ => planets}/planets_en.cxt (100%) diff --git a/contexts.yaml b/contexts.yaml index b86b1a7..aa041be 100644 --- a/contexts.yaml +++ b/contexts.yaml @@ -131,7 +131,7 @@ office-supplies-and-services/officesupplies_de.cxt: description: service offers of an office supplies business note: German version of officesupplies_en.cxt -planets_en.cxt: +planets/planets_en.cxt: title: Planets source: "Anggraini, D. (2011). Analisis Perubahan Kelompok Berdasarkan Perubahan Nilai Jual Pada Bloomberg Market Data dengan Menggunakan Formal Concept Analysis, p. 7" size: diff --git a/contexts/planets_en.cxt b/contexts/planets/planets_en.cxt similarity index 100% rename from contexts/planets_en.cxt rename to contexts/planets/planets_en.cxt From 96638d12d625ae6ba89151ad08ace51c18aca2c2 Mon Sep 17 00:00:00 2001 From: perasperaadastra <44439208+perasperaadastra@users.noreply.github.com> Date: Tue, 26 Nov 2024 11:42:16 +0100 Subject: [PATCH 11/19] Move seasoning-planner context --- contexts.yaml | 2 +- contexts/{ => seasoning-planner}/seasoningplanner_de.cxt | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename contexts/{ => seasoning-planner}/seasoningplanner_de.cxt (100%) diff --git a/contexts.yaml b/contexts.yaml index aa041be..e891610 100644 --- a/contexts.yaml +++ b/contexts.yaml @@ -140,7 +140,7 @@ planets/planets_en.cxt: language: English description: size and distance of planets -seasoningplanner_de.cxt: +seasoning-planner/seasoningplanner_de.cxt: title: Gewürzplaner source: "Mahn, M. (2014). Gewürze: Das Standardwerk. Christian Verlag GmbH, München" size: diff --git a/contexts/seasoningplanner_de.cxt b/contexts/seasoning-planner/seasoningplanner_de.cxt similarity index 100% rename from contexts/seasoningplanner_de.cxt rename to contexts/seasoning-planner/seasoningplanner_de.cxt From f3d28d1ac0c62dc35de3d60b51d59fac98b0f96e Mon Sep 17 00:00:00 2001 From: perasperaadastra <44439208+perasperaadastra@users.noreply.github.com> Date: Tue, 26 Nov 2024 11:43:21 +0100 Subject: [PATCH 12/19] Move tea-ladies context --- contexts.yaml | 2 +- contexts/{ => tea-ladies}/tealady.cxt | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename contexts/{ => tea-ladies}/tealady.cxt (100%) diff --git a/contexts.yaml b/contexts.yaml index e891610..505a3df 100644 --- a/contexts.yaml +++ b/contexts.yaml @@ -149,7 +149,7 @@ seasoning-planner/seasoningplanner_de.cxt: language: German description: spices and herbs together and the meals they match -tealady.cxt: +tea-ladies/tealady.cxt: title: Tea Ladies source: "Wille, R. (1992). Concept Lattices and Conceptual Knowledge Systems. Computers & Mathematics with Applications, 23, 6-9, p. 493-515" size: diff --git a/contexts/tealady.cxt b/contexts/tea-ladies/tealady.cxt similarity index 100% rename from contexts/tealady.cxt rename to contexts/tea-ladies/tealady.cxt From c9081bac69eb9b8eecdfad1d7a1c287f9f37dc3a Mon Sep 17 00:00:00 2001 From: perasperaadastra <44439208+perasperaadastra@users.noreply.github.com> Date: Tue, 26 Nov 2024 14:27:16 +0100 Subject: [PATCH 13/19] Split contexts metadata and add script and workflow for automatic merging --- .../workflows/merge-contexts-metadata.yaml | 34 +++ contexts/animals/metadata.yaml | 8 + contexts/bodies-of-water/metadata.yaml | 18 ++ .../metadata.yaml | 19 ++ contexts/famous-animals/metadata.yaml | 8 + .../living-beings-and-water/metadata.yaml | 18 ++ contexts/miss-marple/metadata.yaml | 18 ++ contexts/music-characteristics/metadata.yaml | 8 + contexts/new-zealand-activities/metadata.yaml | 8 + .../metadata.yaml | 18 ++ contexts/planets/metadata.yaml | 8 + contexts/seasoning-planner/metadata.yaml | 8 + contexts/tea-ladies/metadata.yaml | 8 + ...exts.yaml => merged-contexts-metadata.yaml | 218 +++++++++--------- scripts/merge-contexts-metadata.py | 68 ++++++ 15 files changed, 355 insertions(+), 112 deletions(-) create mode 100644 .github/workflows/merge-contexts-metadata.yaml create mode 100644 contexts/animals/metadata.yaml create mode 100644 contexts/bodies-of-water/metadata.yaml create mode 100644 contexts/drive-concepts-for-motorcars/metadata.yaml create mode 100644 contexts/famous-animals/metadata.yaml create mode 100644 contexts/living-beings-and-water/metadata.yaml create mode 100644 contexts/miss-marple/metadata.yaml create mode 100644 contexts/music-characteristics/metadata.yaml create mode 100644 contexts/new-zealand-activities/metadata.yaml create mode 100644 contexts/office-supplies-and-services/metadata.yaml create mode 100644 contexts/planets/metadata.yaml create mode 100644 contexts/seasoning-planner/metadata.yaml create mode 100644 contexts/tea-ladies/metadata.yaml rename contexts.yaml => merged-contexts-metadata.yaml (61%) create mode 100644 scripts/merge-contexts-metadata.py diff --git a/.github/workflows/merge-contexts-metadata.yaml b/.github/workflows/merge-contexts-metadata.yaml new file mode 100644 index 0000000..908856c --- /dev/null +++ b/.github/workflows/merge-contexts-metadata.yaml @@ -0,0 +1,34 @@ +name: Merge YAML Files + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + merge-yaml: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + + - name: Install dependencies + run: pip install pyyaml + + - name: Run YAML merge script + run: python scripts/merge_contexts_metadata.py + + - name: Commit and push merged YAML file + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git add contexts.yaml + git diff --quiet && git diff --staged --quiet || git commit -m "Update contexts metadata file" + git push diff --git a/contexts/animals/metadata.yaml b/contexts/animals/metadata.yaml new file mode 100644 index 0000000..bdd5d97 --- /dev/null +++ b/contexts/animals/metadata.yaml @@ -0,0 +1,8 @@ +animals/animals_en.cxt: + title: Animals + source: "Ganter, B., Wille, R., & Stumme, G. (2005). Formal Concept Analysis: Foundations and Applications (Vol. 3626). Springer, p. 27" + size: + objects: 35 + attributes: 11 + language: English + description: animals and their characteristics diff --git a/contexts/bodies-of-water/metadata.yaml b/contexts/bodies-of-water/metadata.yaml new file mode 100644 index 0000000..5122b95 --- /dev/null +++ b/contexts/bodies-of-water/metadata.yaml @@ -0,0 +1,18 @@ +bodies-of-water/bodiesofwater_en.cxt: + title: Bodies of water + source: "Wille, R. (1984). Liniendiagramme hierarchischer Begriffssysteme. Studien zur Klassifikation. Indeks Verlag" + size: + objects: 8 + attributes: 6 + language: English + description: bodies of water and their properties + +bodies-of-water/bodiesofwater_de.cxt: + title: Gewässer + source: "Wille, R. (1984). Liniendiagramme hierarchischer Begriffssysteme. Studien zur Klassifikation. Indeks Verlag" + size: + objects: 8 + attributes: 6 + language: German + description: bodies of water and their properties + note: German version of bodiesofwater_en.cxt diff --git a/contexts/drive-concepts-for-motorcars/metadata.yaml b/contexts/drive-concepts-for-motorcars/metadata.yaml new file mode 100644 index 0000000..59188d2 --- /dev/null +++ b/contexts/drive-concepts-for-motorcars/metadata.yaml @@ -0,0 +1,19 @@ +drive-concepts-for-motorcars/driveconcepts_en.cxt: + title: Drive Concepts + source: "Ganter, B., & Wille, R. (1999). Formal Concept analysis. Springer, p. 39" + size: + objects: 5 + attributes: 25 + language: English + description: drive concepts for motorcars + note: "Derived from a table on page 402 in the book Schlag nach! 100000 Tatsachen aus allen Wissensgebieten. 13. Auflage. Meyers Lexikonverlag, 1988" + +drive-concepts-for-motorcars/driveconcepts_de.cxt: + title: Drive Concepts + source: "Ganter, B., & Wille, R. (1996). Formale Begriffsanalyse. Springer. p. 39" + size: + objects: 5 + attributes: 25 + language: German + description: drive concepts for motorcars + note: German version of driveconcepts_en.cxt diff --git a/contexts/famous-animals/metadata.yaml b/contexts/famous-animals/metadata.yaml new file mode 100644 index 0000000..ec59550 --- /dev/null +++ b/contexts/famous-animals/metadata.yaml @@ -0,0 +1,8 @@ +famous-animals/famous_animals_en.cxt: + title: Famous Animals + source: "Priss, U. (2006), Formal concept analysis in information science. Ann. Rev. Info. Sci. Tech., 40: 521-543. p.525" + size: + objects: 5 + attributes: 6 + language: English + description: famous animals and their characteristics diff --git a/contexts/living-beings-and-water/metadata.yaml b/contexts/living-beings-and-water/metadata.yaml new file mode 100644 index 0000000..3af3cab --- /dev/null +++ b/contexts/living-beings-and-water/metadata.yaml @@ -0,0 +1,18 @@ +living-beings-and-water/livingbeings_en.cxt: + title: Living Beings and Water + source: "Ganter, B., & Wille, R. (1999). Formal Concept analysis. Springer, p. 18" + size: + objects: 8 + attributes: 9 + language: English + description: conditions different living beings need + +living-beings-and-water/livingbeings_de.cxt: + title: Lebewesen und Wasser + source: "Ganter, B., & Wille, R. (1996). Formale Begriffsanalyse. Springer. p. 18" + size: + objects: 8 + attributes: 9 + language: German + description: conditions different living beings need + note: German version of livingbeings_en.cxt diff --git a/contexts/miss-marple/metadata.yaml b/contexts/miss-marple/metadata.yaml new file mode 100644 index 0000000..ade279b --- /dev/null +++ b/contexts/miss-marple/metadata.yaml @@ -0,0 +1,18 @@ +miss-marple/missmarple_en.cxt: + title: Methods of murder in Miss Marple novels + source: "Schott, B. (2004). Schotts Sammelsurium. Bloomsbury, Berlin" + size: + objects: 12 + attributes: 6 + language: English + description: methods of murder in Miss Marple novels (not short stories!) + +miss-marple/missmarple_de.cxt: + title: Mordmethoden in Miss-Marple-Romanen + source: "Schott, B. (2004). Schotts Sammelsurium. Bloomsbury, Berlin" + size: + objects: 12 + attributes: 6 + language: German / English + description: methods of murder in Miss Marple novels (not short stories!) + note: German version of missmarple_en.cxt diff --git a/contexts/music-characteristics/metadata.yaml b/contexts/music-characteristics/metadata.yaml new file mode 100644 index 0000000..7333e40 --- /dev/null +++ b/contexts/music-characteristics/metadata.yaml @@ -0,0 +1,8 @@ +music-characteristics/music_en.cxt: + title: Music + source: "Ganter, B., Wille, R., & Stumme, G. (2005). Formal Concept Analysis: Foundations and Applications (Vol. 3626). Springer, p. 22" + size: + objects: 31 + attributes: 11 + language: English + description: music and their characteristics diff --git a/contexts/new-zealand-activities/metadata.yaml b/contexts/new-zealand-activities/metadata.yaml new file mode 100644 index 0000000..2e5ce3f --- /dev/null +++ b/contexts/new-zealand-activities/metadata.yaml @@ -0,0 +1,8 @@ +new-zealand-activities/newzealand_en.cxt: + title: New Zealand Leasure + source: "DK Eyewitness Travel Guide New Zealand. Dorling Kindersley Publishing Inc. 2001." + size: + objects: 13 + attributes: 8 + language: English + description: Places in New Zealand and offered activities diff --git a/contexts/office-supplies-and-services/metadata.yaml b/contexts/office-supplies-and-services/metadata.yaml new file mode 100644 index 0000000..9612576 --- /dev/null +++ b/contexts/office-supplies-and-services/metadata.yaml @@ -0,0 +1,18 @@ +office-supplies-and-services/officesupplies_en.cxt: + title: Office Supplies + source: "Ganter, B., & Wille, R. (1999). Formal Concept analysis. Springer, p. 25" + size: + objects: 8 + attributes: 5 + language: English + description: service offers of an office supplies business + +office-supplies-and-services/officesupplies_de.cxt: + title: Bürobedarf + source: "Ganter, B., & Wille, R. (1996). Formale Begriffsanalyse. Springer. p. 25" + size: + objects: 8 + attributes: 5 + language: German + description: service offers of an office supplies business + note: German version of officesupplies_en.cxt diff --git a/contexts/planets/metadata.yaml b/contexts/planets/metadata.yaml new file mode 100644 index 0000000..874d811 --- /dev/null +++ b/contexts/planets/metadata.yaml @@ -0,0 +1,8 @@ +planets/planets_en.cxt: + title: Planets + source: "Anggraini, D. (2011). Analisis Perubahan Kelompok Berdasarkan Perubahan Nilai Jual Pada Bloomberg Market Data dengan Menggunakan Formal Concept Analysis, p. 7" + size: + objects: 9 + attributes: 7 + language: English + description: size and distance of planets diff --git a/contexts/seasoning-planner/metadata.yaml b/contexts/seasoning-planner/metadata.yaml new file mode 100644 index 0000000..138a5e7 --- /dev/null +++ b/contexts/seasoning-planner/metadata.yaml @@ -0,0 +1,8 @@ +seasoning-planner/seasoningplanner_de.cxt: + title: Gewürzplaner + source: "Mahn, M. (2014). Gewürze: Das Standardwerk. Christian Verlag GmbH, München" + size: + objects: 56 + attributes: 37 + language: German + description: spices and herbs together and the meals they match diff --git a/contexts/tea-ladies/metadata.yaml b/contexts/tea-ladies/metadata.yaml new file mode 100644 index 0000000..71cb698 --- /dev/null +++ b/contexts/tea-ladies/metadata.yaml @@ -0,0 +1,8 @@ +tea-ladies/tealady.cxt: + title: Tea Ladies + source: "Wille, R. (1992). Concept Lattices and Conceptual Knowledge Systems. Computers & Mathematics with Applications, 23, 6-9, p. 493-515" + size: + objects: 18 + attributes: 14 + language: + description: participation of social events by some ladies in Old City diff --git a/contexts.yaml b/merged-contexts-metadata.yaml similarity index 61% rename from contexts.yaml rename to merged-contexts-metadata.yaml index 505a3df..413a08f 100644 --- a/contexts.yaml +++ b/merged-contexts-metadata.yaml @@ -1,159 +1,153 @@ ---- +# This is the automatically merged metadata. Please do not modify it directly. animals/animals_en.cxt: - title: Animals - source: "Ganter, B., Wille, R., & Stumme, G. (2005). Formal Concept Analysis: Foundations and Applications (Vol. 3626). Springer, p. 27" + description: animals and their characteristics + language: English size: - objects: 35 attributes: 11 - language: English - description: animals and their characteristics - -bodies-of-water/bodiesofwater_en.cxt: - title: Bodies of water - source: "Wille, R. (1984). Liniendiagramme hierarchischer Begriffssysteme. Studien zur Klassifikation. Indeks Verlag" + objects: 35 + source: 'Ganter, B., Wille, R., & Stumme, G. (2005). Formal Concept Analysis: Foundations + and Applications (Vol. 3626). Springer, p. 27' + title: Animals +bodies-of-water/bodiesofwater_de.cxt: + description: bodies of water and their properties + language: German + note: German version of bodiesofwater_en.cxt size: - objects: 8 attributes: 6 - language: English - description: bodies of water and their properties - -bodies-of-water/bodiesofwater_de.cxt: + objects: 8 + source: Wille, R. (1984). Liniendiagramme hierarchischer Begriffssysteme. Studien + zur Klassifikation. Indeks Verlag title: Gewässer - source: "Wille, R. (1984). Liniendiagramme hierarchischer Begriffssysteme. Studien zur Klassifikation. Indeks Verlag" +bodies-of-water/bodiesofwater_en.cxt: + description: bodies of water and their properties + language: English size: - objects: 8 attributes: 6 + objects: 8 + source: Wille, R. (1984). Liniendiagramme hierarchischer Begriffssysteme. Studien + zur Klassifikation. Indeks Verlag + title: Bodies of water +drive-concepts-for-motorcars/driveconcepts_de.cxt: + description: drive concepts for motorcars language: German - description: bodies of water and their properties - note: German version of bodiesofwater_en.cxt - -drive-concepts-for-motorcars/driveconcepts_en.cxt: - title: Drive Concepts - source: "Ganter, B., & Wille, R. (1999). Formal Concept analysis. Springer, p. 39" + note: German version of driveconcepts_en.cxt size: - objects: 5 attributes: 25 - language: English - description: drive concepts for motorcars - note: "Derived from a table on page 402 in the book Schlag nach! 100000 Tatsachen aus allen Wissensgebieten. 13. Auflage. Meyers Lexikonverlag, 1988" - -drive-concepts-for-motorcars/driveconcepts_de.cxt: + objects: 5 + source: Ganter, B., & Wille, R. (1996). Formale Begriffsanalyse. Springer. p. 39 title: Drive Concepts - source: "Ganter, B., & Wille, R. (1996). Formale Begriffsanalyse. Springer. p. 39" +drive-concepts-for-motorcars/driveconcepts_en.cxt: + description: drive concepts for motorcars + language: English + note: Derived from a table on page 402 in the book Schlag nach! 100000 Tatsachen + aus allen Wissensgebieten. 13. Auflage. Meyers Lexikonverlag, 1988 size: - objects: 5 attributes: 25 - language: German - description: drive concepts for motorcars - note: German version of driveconcepts_en.cxt - + objects: 5 + source: Ganter, B., & Wille, R. (1999). Formal Concept analysis. Springer, p. 39 + title: Drive Concepts famous-animals/famous_animals_en.cxt: - title: Famous Animals - source: "Priss, U. (2006), Formal concept analysis in information science. Ann. Rev. Info. Sci. Tech., 40: 521-543. p.525" + description: famous animals and their characteristics + language: English size: - objects: 5 attributes: 6 - language: English - description: famous animals and their characteristics - -living-beings-and-water/livingbeings_en.cxt: - title: Living Beings and Water - source: "Ganter, B., & Wille, R. (1999). Formal Concept analysis. Springer, p. 18" + objects: 5 + source: 'Priss, U. (2006), Formal concept analysis in information science. Ann. + Rev. Info. Sci. Tech., 40: 521-543. p.525' + title: Famous Animals +living-beings-and-water/livingbeings_de.cxt: + description: conditions different living beings need + language: German + note: German version of livingbeings_en.cxt size: - objects: 8 attributes: 9 - language: English - description: conditions different living beings need - -living-beings-and-water/livingbeings_de.cxt: + objects: 8 + source: Ganter, B., & Wille, R. (1996). Formale Begriffsanalyse. Springer. p. 18 title: Lebewesen und Wasser - source: "Ganter, B., & Wille, R. (1996). Formale Begriffsanalyse. Springer. p. 18" +living-beings-and-water/livingbeings_en.cxt: + description: conditions different living beings need + language: English size: - objects: 8 attributes: 9 - language: German - description: conditions different living beings need - note: German version of livingbeings_en.cxt - -miss-marple/missmarple_en.cxt: - title: Methods of murder in Miss Marple novels - source: "Schott, B. (2004). Schotts Sammelsurium. Bloomsbury, Berlin" + objects: 8 + source: Ganter, B., & Wille, R. (1999). Formal Concept analysis. Springer, p. 18 + title: Living Beings and Water +miss-marple/missmarple_de.cxt: + description: methods of murder in Miss Marple novels (not short stories!) + language: German / English + note: German version of missmarple_en.cxt size: - objects: 12 attributes: 6 - language: English - description: methods of murder in Miss Marple novels (not short stories!) - -miss-marple/missmarple_de.cxt: + objects: 12 + source: Schott, B. (2004). Schotts Sammelsurium. Bloomsbury, Berlin title: Mordmethoden in Miss-Marple-Romanen - source: "Schott, B. (2004). Schotts Sammelsurium. Bloomsbury, Berlin" +miss-marple/missmarple_en.cxt: + description: methods of murder in Miss Marple novels (not short stories!) + language: English size: - objects: 12 attributes: 6 - language: German / English - description: methods of murder in Miss Marple novels (not short stories!) - note: German version of missmarple_en.cxt - + objects: 12 + source: Schott, B. (2004). Schotts Sammelsurium. Bloomsbury, Berlin + title: Methods of murder in Miss Marple novels music-characteristics/music_en.cxt: - title: Music - source: "Ganter, B., Wille, R., & Stumme, G. (2005). Formal Concept Analysis: Foundations and Applications (Vol. 3626). Springer, p. 22" + description: music and their characteristics + language: English size: - objects: 31 attributes: 11 - language: English - description: music and their characteristics - + objects: 31 + source: 'Ganter, B., Wille, R., & Stumme, G. (2005). Formal Concept Analysis: Foundations + and Applications (Vol. 3626). Springer, p. 22' + title: Music new-zealand-activities/newzealand_en.cxt: - title: New Zealand Leasure - source: "DK Eyewitness Travel Guide New Zealand. Dorling Kindersley Publishing Inc. 2001." + description: Places in New Zealand and offered activities + language: English size: - objects: 13 attributes: 8 - language: English - description: Places in New Zealand and offered activities - -office-supplies-and-services/officesupplies_en.cxt: - title: Office Supplies - source: "Ganter, B., & Wille, R. (1999). Formal Concept analysis. Springer, p. 25" + objects: 13 + source: DK Eyewitness Travel Guide New Zealand. Dorling Kindersley Publishing Inc. + 2001. + title: New Zealand Leasure +office-supplies-and-services/officesupplies_de.cxt: + description: service offers of an office supplies business + language: German + note: German version of officesupplies_en.cxt size: - objects: 8 attributes: 5 - language: English - description: service offers of an office supplies business - -office-supplies-and-services/officesupplies_de.cxt: + objects: 8 + source: Ganter, B., & Wille, R. (1996). Formale Begriffsanalyse. Springer. p. 25 title: Bürobedarf - source: "Ganter, B., & Wille, R. (1996). Formale Begriffsanalyse. Springer. p. 25" +office-supplies-and-services/officesupplies_en.cxt: + description: service offers of an office supplies business + language: English size: - objects: 8 attributes: 5 - language: German - description: service offers of an office supplies business - note: German version of officesupplies_en.cxt - + objects: 8 + source: Ganter, B., & Wille, R. (1999). Formal Concept analysis. Springer, p. 25 + title: Office Supplies planets/planets_en.cxt: - title: Planets - source: "Anggraini, D. (2011). Analisis Perubahan Kelompok Berdasarkan Perubahan Nilai Jual Pada Bloomberg Market Data dengan Menggunakan Formal Concept Analysis, p. 7" + description: size and distance of planets + language: English size: - objects: 9 attributes: 7 - language: English - description: size and distance of planets - + objects: 9 + source: Anggraini, D. (2011). Analisis Perubahan Kelompok Berdasarkan Perubahan + Nilai Jual Pada Bloomberg Market Data dengan Menggunakan Formal Concept Analysis, + p. 7 + title: Planets seasoning-planner/seasoningplanner_de.cxt: - title: Gewürzplaner - source: "Mahn, M. (2014). Gewürze: Das Standardwerk. Christian Verlag GmbH, München" + description: spices and herbs together and the meals they match + language: German size: - objects: 56 attributes: 37 - language: German - description: spices and herbs together and the meals they match - + objects: 56 + source: 'Mahn, M. (2014). Gewürze: Das Standardwerk. Christian Verlag GmbH, München' + title: Gewürzplaner tea-ladies/tealady.cxt: - title: Tea Ladies - source: "Wille, R. (1992). Concept Lattices and Conceptual Knowledge Systems. Computers & Mathematics with Applications, 23, 6-9, p. 493-515" + description: participation of social events by some ladies in Old City + language: null size: - objects: 18 attributes: 14 - language: - description: participation of social events by some ladies in Old City + objects: 18 + source: Wille, R. (1992). Concept Lattices and Conceptual Knowledge Systems. Computers + & Mathematics with Applications, 23, 6-9, p. 493-515 + title: Tea Ladies diff --git a/scripts/merge-contexts-metadata.py b/scripts/merge-contexts-metadata.py new file mode 100644 index 0000000..1b460a7 --- /dev/null +++ b/scripts/merge-contexts-metadata.py @@ -0,0 +1,68 @@ +import os + +import yaml + +def merge_yaml_files(input_directory, output_file, comment=None): + """ + Merges all YAML files in the specified directory into a single YAML file. + + This function traverses the given input directory recursively, searching for + all files with a `.yaml` or `.yml` extension. It loads the contents of these + files and merges them into a single dictionary. The merged data is then written + to the specified output file. If a comment is provided, it will be added at + the top of the output YAML file. + + Parameters: + ----------- + input_directory : str + The path to the directory containing YAML files to merge. + output_file : str + The path where the merged YAML file will be saved. + comment : str (optional) + A comment to add at the top of the output YAML file. + Defaults to None, which means no comment will be added. + + Raises: + ------- + FileNotFoundError: + If the input directory does not exist. + yaml.YAMLError: + If there is an error reading any of the YAML files. + + Example: + -------- + >>> merge_yaml_files( + ... 'path/to/yaml/files', + ... 'merged_output.yaml', + ... comment='This is a merged YAML configuration', + ... ) + + Note: + ----- + The merged data will overwrite any existing content in the output file. + """ + merged_data = {} + + for root, _, files in os.walk(input_directory): + for file_name in files: + if file_name.endswith('.yaml') or file_name.endswith('.yml'): + file_path = os.path.join(root, file_name) + with open(file_path, mode='r') as f: + try: + data = yaml.safe_load(f) + merged_data = {**merged_data, **data} + except yaml.YAMLError as e: + print(f"Error reading {file_path}: {e}") + + with open(output_file, mode='w') as outfile: + if comment is not None: + outfile.write(f"# {comment}\n") + yaml.dump(merged_data, outfile, default_flow_style=False, allow_unicode=True) + + +if __name__ == "__main__": + input_dir = "contexts" + output_file = "merged-contexts-metadata.yaml" + comment = "This is the automatically merged metadata. Please do not modify it directly." + merge_yaml_files(input_dir, output_file, comment) + print(f"Merged YAML files into {output_file}") From ecda6bd0dbfadedc57d9baaaa8b8aeb7c8c43a45 Mon Sep 17 00:00:00 2001 From: perasperaadastra <44439208+perasperaadastra@users.noreply.github.com> Date: Tue, 26 Nov 2024 14:34:42 +0100 Subject: [PATCH 14/19] Fix script file name --- .../{merge-contexts-metadata.py => merge_contexts_metadata.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename scripts/{merge-contexts-metadata.py => merge_contexts_metadata.py} (100%) diff --git a/scripts/merge-contexts-metadata.py b/scripts/merge_contexts_metadata.py similarity index 100% rename from scripts/merge-contexts-metadata.py rename to scripts/merge_contexts_metadata.py From 0b93b64e04987a0c200ffec885b6fe54b702a85a Mon Sep 17 00:00:00 2001 From: perasperaadastra <44439208+perasperaadastra@users.noreply.github.com> Date: Tue, 26 Nov 2024 14:37:46 +0100 Subject: [PATCH 15/19] Fix merge script output file name --- .github/workflows/merge-contexts-metadata.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/merge-contexts-metadata.yaml b/.github/workflows/merge-contexts-metadata.yaml index 908856c..11be994 100644 --- a/.github/workflows/merge-contexts-metadata.yaml +++ b/.github/workflows/merge-contexts-metadata.yaml @@ -29,6 +29,6 @@ jobs: run: | git config --local user.email "action@github.com" git config --local user.name "GitHub Action" - git add contexts.yaml + git add merged-contexts-metadata.yaml git diff --quiet && git diff --staged --quiet || git commit -m "Update contexts metadata file" git push From 419c92c2c062f0b249def72a04e94cfdb519cf67 Mon Sep 17 00:00:00 2001 From: perasperaadastra <44439208+perasperaadastra@users.noreply.github.com> Date: Tue, 26 Nov 2024 14:49:09 +0100 Subject: [PATCH 16/19] Update readme --- README.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9084a4d..ba180df 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ example, in Python 3 you could do: ```python import urllib.request -url = "https://github.com/fcatools/contexts/raw/main/contexts/livingbeings_en.cxt" +url = "https://github.com/fcatools/contexts/raw/main/contexts/living-beings-and-water/livingbeings_en.cxt" context = urllib.request.urlopen(url).read().decode("utf-8") ``` @@ -42,11 +42,10 @@ If you think your context is suitable, then proceed as follows: 1. [Fork this repository](https://github.com/fcatools/contexts/fork) and make the following changes in your fork: - 1. Add your ASCII-encoded CXT file to the - [contexts](https://github.com/fcatools/contexts/tree/main/contexts) - directory, using a meaningful name (English, all lowercase, with - two letters indicating the [ISO 639 language - code](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) + 1. Add a subfolder to the [contexts](https://github.com/fcatools/contexts/tree/main/contexts) + directory, and add your ASCII-encoded CXT file there. + Using a meaningful name for both (English, all lowercase, with + two letters indicating the [ISO 639 language code](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) at the end, e.g., `bodiesofwater_de.cxt` for the German bodies of water context). 2. Describe your context in [contexts.yaml](contexts.yaml) From 2a37d736d874a5e71bddfb424d536baba0b174bc Mon Sep 17 00:00:00 2001 From: perasperaadastra <44439208+perasperaadastra@users.noreply.github.com> Date: Tue, 26 Nov 2024 14:57:46 +0100 Subject: [PATCH 17/19] Update contributor list --- CITATION.cff | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/CITATION.cff b/CITATION.cff index 75fc89e..9596a2c 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -16,11 +16,15 @@ authors: - given-names: Anna family-names: Schwerdtel affiliation: Humboldt-Universität zu Berlin + - given-names: Tobias + family-names: Hille + affiliation: University of Kassel + orcid: 'https://orcid.org/0000-0001-7813-9799' repository-code: 'https://github.com/fcatools/contexts' abstract: >- - This repository contains a collection of formal contexts to pursue - Formal Concept Analysis. The metadata for the contexts is contained - in the file contexts.yaml. + This repository contains a collection of formal contexts + to pursue Formal Concept Analysis. The metadata for the + contexts is contained in the file contexts.yaml. license: CC0-1.0 commit: 6adc703bcb89c5b97709ac7a60930e9c962cc0c2 date-released: '2024-04-11' From 15d9a232c62cda54adc7be16429162f31dee1c36 Mon Sep 17 00:00:00 2001 From: perasperaadastra <44439208+perasperaadastra@users.noreply.github.com> Date: Tue, 26 Nov 2024 15:04:52 +0100 Subject: [PATCH 18/19] Fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ba180df..046b20d 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ If you think your context is suitable, then proceed as follows: and make the following changes in your fork: 1. Add a subfolder to the [contexts](https://github.com/fcatools/contexts/tree/main/contexts) directory, and add your ASCII-encoded CXT file there. - Using a meaningful name for both (English, all lowercase, with + Use a meaningful name for both (English, all lowercase, with two letters indicating the [ISO 639 language code](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) at the end, e.g., `bodiesofwater_de.cxt` for the German bodies of water context). From 1d6cf3fc74c3bdd538be1654fe047975216e7135 Mon Sep 17 00:00:00 2001 From: perasperaadastra <44439208+perasperaadastra@users.noreply.github.com> Date: Tue, 26 Nov 2024 15:08:18 +0100 Subject: [PATCH 19/19] Update readme --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 046b20d..76d81bf 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ This repository contains a collection of formal contexts to pursue The metadata for [the contexts](https://github.com/fcatools/contexts/tree/main/contexts) is -contained in [this YAML file](contexts.yaml). +contained in [this YAML file](merged-contexts-metadata.yaml). More contexts can be found in the repository for [ConExp-CLJ](https://github.com/tomhanika/conexp-clj/tree/dev/testing-data), @@ -48,9 +48,12 @@ If you think your context is suitable, then proceed as follows: two letters indicating the [ISO 639 language code](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) at the end, e.g., `bodiesofwater_de.cxt` for the German bodies of water context). - 2. Describe your context in [contexts.yaml](contexts.yaml) + 2. Describe your context in a metadata yaml file following the example of the other contexts. Try to be concise and precise. + 3. Optionally: Merge the metadata automatically by running the included python script + ([scripts/merge_contexts_metadata.py](scripts/merge_contexts_metadata.py), + requires ```pyyaml```). 2. Make a pull request to merge your changes into this repository. ## Further information