-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature epo 614 #117
Merged
Merged
Feature epo 614 #117
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
5c9dd20
epo-614
dbd311 a3bca34
Merge branch 'master' into feature-epo-614
dbd311 ea02c3a
epo-614
dbd311 adf8a3e
EPO-620
dbd311 59400f8
generate glossary
dbd311 93b1118
updated
dbd311 5dc5798
Update Makefile and README.md
dbd311 056ece9
update gitignore
dbd311 08b54cc
update gitignore
dbd311 2a39bca
update gitignore
dbd311 7cfef0f
adding doc
dbd311 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,50 @@ | ||
#curBranch := $(shell git branch --show-current) | ||
curBranch := $(shell git rev-parse --abbrev-ref HEAD) | ||
export curBranch | ||
# Number of file under .git repo (to test if the git repo was already cloned) | ||
gitRepoFiles := $(shell ls -l transform/model2owl/.git >/dev/null 2>&1 | wc -l ) | ||
secrets.GITHUB_TOKEN := ******* | ||
# One of the xmi input file | ||
FIRST_INPUT_XMI_FILE := "transform/model2owl/test/test-multi-xmi/ePO_CM.xml" | ||
# Output directory containing combined file from multiple xmi / xml UML models | ||
OUTPUT_COMBINED_XMI_PATH := "transform/output/combined-xmi/" | ||
# Glossary output directory | ||
OUTPUT_GLOSSARY_PATH := "transform/output/glossary/" | ||
# download saxon library | ||
get-saxon: | ||
mkdir -p transform | ||
cd transform && curl -L -o saxon.zip "https://kumisystems.dl.sourceforge.net/project/saxon/Saxon-HE/10/Java/SaxonHE10-6J.zip" && unzip saxon.zip && rm -rf saxon.zip | ||
|
||
# Clone model2owl if the directory model2owl does not exist | ||
get-model2owl-repo: | ||
@mkdir -p transform | ||
@cd transform && git clone https://github.com/OP-TED/model2owl.git | ||
|
||
# download xspec framework to run unit tests | ||
get-xspec: | ||
cd transform && rm -rf xspec && curl -L -o xspec.zip https://github.com/xspec/xspec/archive/refs/tags/v2.2.4.zip && unzip xspec.zip -d model2owl && rm -rf xspec.zip && cd model2owl && ln -s xspec-* xspec | ||
|
||
list: | ||
ls -l | ||
install: | ||
echo Your current branch is: ${curBranch} | ||
git checkout utilities -- frameworks.zip lib.zip | ||
cp frameworks.zip /tmp/ | ||
cp lib.zip /tmp/ | ||
git checkout ${curBranch} | ||
# Initialize the project, download model2owl repo, install saxon and dependencies | ||
init: get-saxon get-model2owl-repo get-xspec | ||
|
||
# Run unit_tests | ||
unit-tests: | ||
@cd transform/model2owl && ant -lib ../saxon-he-10.6.jar unit_tests | ||
|
||
# Unzip | ||
unzip /tmp/frameworks.zip -d . | ||
unzip /tmp/lib.zip -d . | ||
# Combine xmi UML files | ||
merge-xmi: | ||
@mkdir -p transform/output/combined-xmi/ | ||
@java -jar transform/saxon-he-10.6.jar -s:${FIRST_INPUT_XMI_FILE} -xsl:transform/model2owl/src/xml/merge-multi-xmi.xsl -o:${OUTPUT_COMBINED_XMI_PATH}/ePO-combined.xml | ||
@echo The combined document is located at "${OUTPUT_COMBINED_XMI_PATH}/ePO-combined.xml" | ||
@ls -lh ${OUTPUT_COMBINED_XMI_PATH}/ePO-combined.xml | ||
|
||
# Clean up | ||
rm -rf /tmp/frameworks.zip | ||
rm -rf /tmp/lib.zip | ||
git rm -rf frameworks.zip | ||
git rm -rf lib.zip | ||
tests: | ||
ant -lib lib/saxon*.jar unit_tests | ||
# Generate the glossary | ||
generate-glossary: | ||
@mkdir -p "${OUTPUT_GLOSSARY_PATH}" | ||
@java -jar transform/saxon-he-10.6.jar -s:${OUTPUT_COMBINED_XMI_PATH}/ePO-combined.xml -xsl:transform/model2owl/src/html-model-glossary.xsl -o:${OUTPUT_GLOSSARY_PATH}/glossary.html | ||
@echo The combined glossary is located at ${OUTPUT_GLOSSARY_PATH}/glossary.html | ||
@echo | ||
@ls -lh ${OUTPUT_GLOSSARY_PATH}/glossary.html | ||
@echo | ||
@head ${OUTPUT_GLOSSARY_PATH}/glossary.html | ||
@echo ... | ||
@tail ${OUTPUT_GLOSSARY_PATH}/glossary.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="windows-1252"?> | ||
<metadata> | ||
<title>eProcurement core ontology</title> | ||
<!-- Ontology version --> | ||
<version>3.0.1</version> | ||
<!-- Description for the CORE module --> | ||
<description> | ||
This module provides the definitions for the core eProcurement ontology. | ||
Procurement data has been identified as data with a high-reuse potential. | ||
Given the increasing importance of data standards for eProcurement, a number of initiatives | ||
driven by the public sector, the industry and academia have been kick-started in recent years. | ||
Some have grown organically, while others are the result of standardisation work. | ||
The vocabularies and the semantics that they are introducing, the phases of public procurement that they are covering, | ||
and the technologies that they are using all differ. These differences hamper data interoperability and thus its reuse by them or by the wider public. | ||
This creates the need for a common data standard for publishing procurement data, hence allowing data | ||
from different sources to be easily accessed and linked, and consequently reused. | ||
</description> | ||
<!-- default imports for each module --> | ||
<imports resource="http://purl.org/dc/terms/"/> | ||
<imports resource="http://www.w3.org/2004/02/skos/core"/> | ||
</metadata> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="windows-1252"?> | ||
<metadata> | ||
<title>eProcurement core ontology</title> | ||
<!-- Ontology version --> | ||
<version>3.0.1</version> | ||
<!-- Description for the CORE module --> | ||
<description> | ||
This module provides the definitions for the core eProcurement ontology. | ||
Procurement data has been identified as data with a high-reuse potential. | ||
Given the increasing importance of data standards for eProcurement, a number of initiatives | ||
driven by the public sector, the industry and academia have been kick-started in recent years. | ||
Some have grown organically, while others are the result of standardisation work. | ||
The vocabularies and the semantics that they are introducing, the phases of public procurement that they are covering, | ||
and the technologies that they are using all differ. These differences hamper data interoperability and thus its reuse by them or by the wider public. | ||
This creates the need for a common data standard for publishing procurement data, hence allowing data | ||
from different sources to be easily accessed and linked, and consequently reused. | ||
</description> | ||
<!-- default imports for each module --> | ||
<imports resource="http://purl.org/dc/terms/"/> | ||
<imports resource="http://www.w3.org/2004/02/skos/core"/> | ||
</metadata> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool!