Skip to content

Commit

Permalink
Split contexts metadata and add script and workflow for automatic mer…
Browse files Browse the repository at this point in the history
…ging
  • Loading branch information
perasperaadastra committed Nov 26, 2024
1 parent f3d28d1 commit c9081ba
Show file tree
Hide file tree
Showing 15 changed files with 355 additions and 112 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/merge-contexts-metadata.yaml
Original file line number Diff line number Diff line change
@@ -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 "[email protected]"
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
8 changes: 8 additions & 0 deletions contexts/animals/metadata.yaml
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions contexts/bodies-of-water/metadata.yaml
Original file line number Diff line number Diff line change
@@ -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
19 changes: 19 additions & 0 deletions contexts/drive-concepts-for-motorcars/metadata.yaml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions contexts/famous-animals/metadata.yaml
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions contexts/living-beings-and-water/metadata.yaml
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions contexts/miss-marple/metadata.yaml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions contexts/music-characteristics/metadata.yaml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions contexts/new-zealand-activities/metadata.yaml
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions contexts/office-supplies-and-services/metadata.yaml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions contexts/planets/metadata.yaml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions contexts/seasoning-planner/metadata.yaml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions contexts/tea-ladies/metadata.yaml
Original file line number Diff line number Diff line change
@@ -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
Loading

0 comments on commit c9081ba

Please sign in to comment.