-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add or modify Makefile recipes to enable regeneration of *.rdf files and retain expected *.ttl files content #216
Merged
Merged
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
abde78b
Add or modify Makefile recipes to enable regeneration of *.rdf files …
gkostkowski f4a9247
Parametrize get_namespaces.sh and set the required file path in the M…
gkostkowski a8596c6
Implement generation of enriched namespaces file, reorganize project …
gkostkowski 63a9fb4
Fix a test assertion and disable irrelevant check
gkostkowski ce129be
Pass required parameter to the testing process
gkostkowski 1de5742
Accomodate for the new ns file, use make in the github action
gkostkowski 2309087
Remove fixed declaration of derived internal ns from namespaces file,…
gkostkowski 580bccc
Update and refine docstrings in the Makefile
gkostkowski 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 |
---|---|---|
|
@@ -325,3 +325,4 @@ lib64 | |
pyvenv.cfg | ||
/build/ | ||
/node_modules/ | ||
.temp |
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,30 @@ | ||
#!/bin/bash | ||
# | ||
# Gets namespaces from an XML file with the model2owl project namespaces and | ||
# prepares argument list from them to be used with `rdfpipe` tool. Uses Saxon | ||
# installed in the project main directory. | ||
# | ||
# USAGE: get_namespaces.sh NAMESPACES_XML_FILE_PATH | ||
PROJECT_DIR=$(dirname $(dirname $(realpath ${BASH_SOURCE[0]}))) | ||
SAXON=${PROJECT_DIR}/saxon/saxon.jar | ||
|
||
if [ -z "$1" ]; then | ||
echo "ERROR: path to *.xml file with namespaces not given." | ||
exit 1 | ||
fi | ||
namespaces_file_path="$1" | ||
|
||
namespaces_file_dir=$(dirname $(realpath $namespaces_file_path)) | ||
namespaces_file_name=$(basename $namespaces_file_path) | ||
|
||
cd ${namespaces_file_dir} | ||
namespaces=$( | ||
java -cp $SAXON net.sf.saxon.Query -s:${namespaces_file_name} \ | ||
-qs:'for $x in /*:prefixes/*:prefix return concat(string($x/@name), "=", string($x/@value))' \ | ||
\!method=text | ||
) | ||
ns_args=$( \ | ||
echo "$namespaces" | tr ' ' '\n' | awk '{printf("--ns='\''%s'\'' ", $0)}' | ||
) | ||
|
||
echo "$ns_args" |
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
Oops, something went wrong.
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.
Move namespace path to the Makefile
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.
we still need to work and discuss on this
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.
The change has been made