Skip to content

Commit

Permalink
added eurovoc modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragos0000 committed Feb 14, 2024
1 parent 3232a47 commit 0550bfb
Show file tree
Hide file tree
Showing 52 changed files with 13,791 additions and 23 deletions.
46 changes: 24 additions & 22 deletions .github/workflows/transform_with_model2owl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
paths:
- "implementation/demo_ontology/xmi_conceptual_model/demo_ontology_CM.xml"
- "implementation/demo_ontology_module/xmi_conceptual_model/demo_ontology_module_CM.xml"
- "implementation/common_src_ap/xmi_conceptual_model/common_src_ap_CM.xml"
- "implementation/currency_src_ap/xmi_conceptual_model/currency_src_ap_CM.xml"
jobs:
report_and_glossary:
runs-on: ubuntu-latest
Expand All @@ -30,7 +32,7 @@ jobs:

- name: generate convention report and glossary and respec
run: |
AVAILABLE_IMPLEMENTATIONS=(demo_ontology demo_ontology_module)
AVAILABLE_IMPLEMENTATIONS=(demo_ontology demo_ontology_module common_src_ap currency_src_ap)
for implementation in "${AVAILABLE_IMPLEMENTATIONS[@]}"
do
echo "-------------------${implementation}---------------------------------"
Expand Down Expand Up @@ -68,27 +70,27 @@ jobs:
done
shell: bash

- name: merge implementations xmi files into one
run: |
AVAILABLE_IMPLEMENTATIONS=(demo_ontology demo_ontology_module)
cd model2owl
mkdir -p merge-xmis
for implementation in "${AVAILABLE_IMPLEMENTATIONS[@]}"
do
cp ../implementation/$implementation/xmi_conceptual_model/*_CM.xml merge-xmis
done
ls merge-xmis
make merge-xmi FIRST_XMI_TO_BE_MERGED_FILE_PATH=merge-xmis/demo_ontology_CM.xml
echo "merged XMI file"
ls output/combined-xmi
shell: bash

- name: generate combined glossary from the merged xmi
run: |
cd model2owl
make generate-glossary XMI_INPUT_FILE_PATH=output/combined-xmi/ontologies-combined.xmi OUTPUT_GLOSSARY_PATH=../$OUTPUT_GLOSSARY_PATH
# - name: merge implementations xmi files into one
# run: |
# AVAILABLE_IMPLEMENTATIONS=(demo_ontology demo_ontology_module common_src_ap)
# cd model2owl
# mkdir -p merge-xmis
# for implementation in "${AVAILABLE_IMPLEMENTATIONS[@]}"
# do
# cp ../implementation/$implementation/xmi_conceptual_model/*_CM.xml merge-xmis
# done
# ls merge-xmis
#
# make merge-xmi FIRST_XMI_TO_BE_MERGED_FILE_PATH=merge-xmis/demo_ontology_CM.xml
#
# echo "merged XMI file"
# ls output/combined-xmi
# shell: bash
#
# - name: generate combined glossary from the merged xmi
# run: |
# cd model2owl
# make generate-glossary XMI_INPUT_FILE_PATH=output/combined-xmi/ontologies-combined.xmi OUTPUT_GLOSSARY_PATH=../$OUTPUT_GLOSSARY_PATH

- name: remove unnecessary files
run: |
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0550bfb

Please sign in to comment.