Skip to content

Commit

Permalink
testing renaming of files and folders with new release of model2owl
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragos0000 committed Sep 14, 2023
1 parent c88a87e commit 4ff470e
Show file tree
Hide file tree
Showing 139 changed files with 38 additions and 98,791 deletions.
43 changes: 24 additions & 19 deletions .github/workflows/transform_epo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on:
- "**"
- "!demo"
paths:
- "implementation/ePO/xmi_conceptual_model/ePO_CM.xml"
- "implementation/eCatalogue/xmi_conceptual_model/eCatalogue_CM.xml"
- "implementation/eNotice/xmi_conceptual_model/eNotice_CM.xml"
- "implementation/eOrdering/xmi_conceptual_model/eOrdering_CM.xml"
- "implementation/eFulfilment/xmi_conceptual_model/eFulfilment_CM.xml"
- "implementation/eFulfilment/xmi_conceptual_model/eContract_CM.xml"
- "implementation/Core/xmi_conceptual_model/ePO_Core.xml"
- "implementation/Catalogue/xmi_conceptual_model/ePO_Catalogue.xml"
- "implementation/Notice/xmi_conceptual_model/ePO_Notice.xml"
- "implementation/Ordering/xmi_conceptual_model/ePO_Ordering.xml"
- "implementation/Fulfilment/xmi_conceptual_model/ePO_Fulfilment.xml"
- "implementation/Contract/xmi_conceptual_model/ePO_Contract.xml"
jobs:
report_and_glossary:
runs-on: ubuntu-latest
Expand All @@ -23,7 +23,7 @@ jobs:

- name: get model2owl
run: |
git clone --branch 2.1.2 https://github.com/OP-TED/model2owl.git
git clone --branch 2.1.4 https://github.com/OP-TED/model2owl.git
pwd
- name: get-saxon
Expand All @@ -32,15 +32,15 @@ jobs:

- name: generate convention report and glossary
run: |
AVAILABLE_IMPLEMENTATIONS=(eOrdering eFulfilment eCatalogue eNotice eContract ePO)
AVAILABLE_IMPLEMENTATIONS=(Ordering Fulfilment Catalogue Notice Contract Core)
for implementation in "${AVAILABLE_IMPLEMENTATIONS[@]}"
do
echo "-------------------${implementation}---------------------------------"
sed -i "s/test\/ePO-default-config/..\/implementation\/${implementation}\/model2owl-config/g" model2owl/config-proxy.xsl
cat model2owl/config-proxy.xsl
CM_FILE_NAME=$(echo "${implementation}_CM.xml")
CM_FILE_NAME=$(echo "ePO_${implementation}.xml")
CM_FILE_PATH=$(echo "implementation/$implementation/xmi_conceptual_model/${CM_FILE_NAME}")
OUTPUT_CONVENTION_REPORT_PATH=$(echo "implementation/$implementation/conventions_report/")
Expand All @@ -65,30 +65,30 @@ jobs:

- name: merge implementations xmi files into one
run: |
AVAILABLE_IMPLEMENTATIONS=(eOrdering eFulfilment eCatalogue eNotice eContract ePO)
AVAILABLE_IMPLEMENTATIONS=(Ordering Fulfilment Catalogue Notice Contract Core)
cd model2owl
mkdir -p merge-xmis
for implementation in "${AVAILABLE_IMPLEMENTATIONS[@]}"
do
cp ../implementation/$implementation/xmi_conceptual_model/*_CM.xml merge-xmis
cp ../implementation/$implementation/xmi_conceptual_model/ePO_*.xml merge-xmis
done
ls merge-xmis
make merge-xmi FIRST_XMI_TO_BE_MERGED_FILE_PATH=merge-xmis/ePO_CM.xml MERGED_XMIS_FILE_NAME=ePO-combined.xmi
make merge-xmi FIRST_XMI_TO_BE_MERGED_FILE_PATH=merge-xmis/ePO_Core.xml MERGED_XMIS_FILE_NAME=ePO_combined.xmi
echo "merged XMI file"
ls output/combined-xmi
shell: bash

- name: change config to core
run: |
sed -i "s/test\/ePO-default-config/..\/implementation\/ePO\/model2owl-config/g" model2owl/config-proxy.xsl
sed -i "s/test\/ePO-default-config/..\/implementation\/Core\/model2owl-config/g" model2owl/config-proxy.xsl
cat model2owl/config-proxy.xsl
- name: generate combined glossary from the merged xmi
run: |
cd model2owl
make generate-glossary XMI_INPUT_FILE_PATH=output/combined-xmi/ePO-combined.xmi OUTPUT_GLOSSARY_PATH=../$OUTPUT_GLOSSARY_PATH
make generate-glossary XMI_INPUT_FILE_PATH=output/combined-xmi/ePO_combined.xmi OUTPUT_GLOSSARY_PATH=../$OUTPUT_GLOSSARY_PATH
# - name: generate widoco
# run: |
Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:

- name: get model2owl
run: |
git clone --branch 2.1.1 https://github.com/OP-TED/model2owl.git
git clone --branch 2.1.4 https://github.com/OP-TED/model2owl.git
pwd
- name: get-saxon
Expand All @@ -145,15 +145,15 @@ jobs:

- name: transform step
run: |
AVAILABLE_IMPLEMENTATIONS=(eOrdering eFulfilment eCatalogue eNotice eContract ePO)
AVAILABLE_IMPLEMENTATIONS=(Ordering Fulfilment Catalogue Notice Contract Core)
for implementation in "${AVAILABLE_IMPLEMENTATIONS[@]}"
do
echo "-------------------${implementation} transform---------------------------------"
sed -i "s/test\/ePO-default-config/..\/implementation\/${implementation}\/model2owl-config/g" model2owl/config-proxy.xsl
cat model2owl/config-proxy.xsl
CM_FILE_NAME=$(echo "${implementation}_CM.xml")
CM_FILE_NAME=$(echo "ePO_${implementation}.xml")
CM_FILE_PATH=$(echo "implementation/$implementation/xmi_conceptual_model/${CM_FILE_NAME}")
OUTPUT_PATH_OWL=$(echo "implementation/$implementation/owl_ontology/")
OUTPUT_PATH_SHACL=$(echo "implementation/$implementation/shacl_shapes/")
Expand All @@ -171,11 +171,16 @@ jobs:
make owl-restrictions XMI_INPUT_FILE_PATH=../$CM_FILE_PATH OUTPUT_FOLDER_PATH=../$OUTPUT_PATH_OWL
make shacl XMI_INPUT_FILE_PATH=../$CM_FILE_PATH OUTPUT_FOLDER_PATH=../$OUTPUT_PATH_SHACL
echo "+++++++++++++++++transform to rdf++++++++++++++++++++++++++++"
echo $(ls ${OUTPUT_PATH_OWL}/*.rdf)
make convert-rdf-to-rdf ONTOLOGY_FOLDER_PATH=../$OUTPUT_PATH_OWL
echo $(ls ${OUTPUT_PATH_SHACL}/*.rdf)
make convert-rdf-to-rdf ONTOLOGY_FOLDER_PATH=../$OUTPUT_PATH_SHACL
echo "+++++++++++++++++transform to turtle++++++++++++++++++++++++++++"
echo $(ls ${OUTPUT_PATH_OWL}/*.rdf)
make convert-to-turtle ONTOLOGY_FOLDER_PATH=../$OUTPUT_PATH_OWL
make convert-rdf-to-turtle ONTOLOGY_FOLDER_PATH=../$OUTPUT_PATH_OWL
echo $(ls ${OUTPUT_PATH_SHACL}/*.rdf)
make convert-to-turtle ONTOLOGY_FOLDER_PATH=../$OUTPUT_PATH_SHACL
make convert-rdf-to-turtle ONTOLOGY_FOLDER_PATH=../$OUTPUT_PATH_SHACL
echo "-------------------end transform---------------------------------"
sed -i "s/..\/implementation\/${implementation}\/model2owl-config/test\/ePO-default-config/g" config-proxy.xsl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,5 +144,7 @@
<xsl:variable name="licenseURI" select="'http://creativecommons.org/licenses/by-sa/4.0'"/>
<xsl:variable name="attributionNameLiteral" select="'European Union'"/>
<xsl:variable name="attributionURL" select="'http://publications.europa.eu/resource/authority/corporate-body/EURUN'"/>
<!-- dct:publisher-->
<xsl:variable name="publisher" select="'http://publications.europa.eu/resource/authority/corporate-body/PUBL'"/>

</xsl:stylesheet>
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,6 @@
<xsl:variable name="attributionNameLiteral" select="'European Union'"/>
<xsl:variable name="attributionURL" select="'http://publications.europa.eu/resource/authority/corporate-body/EURUN'"/>

<!-- dct:publisher-->
<xsl:variable name="publisher" select="'http://publications.europa.eu/resource/authority/corporate-body/PUBL'"/>
</xsl:stylesheet>
Original file line number Diff line number Diff line change
Expand Up @@ -146,5 +146,6 @@
<xsl:variable name="licenseURI" select="'http://creativecommons.org/licenses/by-sa/4.0'"/>
<xsl:variable name="attributionNameLiteral" select="'European Union'"/>
<xsl:variable name="attributionURL" select="'http://publications.europa.eu/resource/authority/corporate-body/EURUN'"/>

<!-- dct:publisher-->
<xsl:variable name="publisher" select="'http://publications.europa.eu/resource/authority/corporate-body/PUBL'"/>
</xsl:stylesheet>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="windows-1252"?>
<xmi:XMI xmlns:uml="http://www.omg.org/spec/UML/20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:umldi="http://www.omg.org/spec/UML/20131001/UMLDI" xmlns:dc="http://www.omg.org/spec/UML/20131001/UMLDC" xmlns:thecustomprofile="http://www.sparxsystems.com/profiles/thecustomprofile/1.0">
<xmi:Documentation exporter="Enterprise Architect" exporterVersion="6.5" exporterID="1559"/>
<xmi:Documentation exporter="Enterprise Architect" exporterVersion="6.5" exporterID="1559"/>
<uml:Model xmi:type="uml:Model" name="EA_Model">
<packagedElement xmi:type="uml:Package" xmi:id="EAPK_DB0C4677_88DC_4767_8DE5_76387A40E5AE" name="ePO">
<packagedElement xmi:type="uml:Package" xmi:id="EAPK_6B65084A_798D_4f35_BA8F_EF75ACEBC684" name="eProcurementOntology">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,5 +146,7 @@
<xsl:variable name="licenseURI" select="'http://creativecommons.org/licenses/by-sa/4.0'"/>
<xsl:variable name="attributionNameLiteral" select="'European Union'"/>
<xsl:variable name="attributionURL" select="'http://publications.europa.eu/resource/authority/corporate-body/EURUN'"/>
<!-- dct:publisher-->
<xsl:variable name="publisher" select="'http://publications.europa.eu/resource/authority/corporate-body/PUBL'"/>

</xsl:stylesheet>
Original file line number Diff line number Diff line change
Expand Up @@ -146,5 +146,7 @@
<xsl:variable name="licenseURI" select="'http://creativecommons.org/licenses/by-sa/4.0'"/>
<xsl:variable name="attributionNameLiteral" select="'European Union'"/>
<xsl:variable name="attributionURL" select="'http://publications.europa.eu/resource/authority/corporate-body/EURUN'"/>
<!-- dct:publisher-->
<xsl:variable name="publisher" select="'http://publications.europa.eu/resource/authority/corporate-body/PUBL'"/>

</xsl:stylesheet>
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,7 @@
<xsl:variable name="attributionNameLiteral" select="'European Union'"/>
<xsl:variable name="attributionURL" select="'http://publications.europa.eu/resource/authority/corporate-body/EURUN'"/>

<!-- dct:publisher-->
<xsl:variable name="publisher" select="'http://publications.europa.eu/resource/authority/corporate-body/PUBL'"/>

</xsl:stylesheet>
Loading

0 comments on commit 4ff470e

Please sign in to comment.