Skip to content
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

update_repo #432

Merged
merged 1 commit into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/odk-workflows/ManageDocumentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ The documentation is _not_ automatically updated from the Markdown, and needs to
Just make sure you give GitHub 2-5 minutes to build the pages!



matentzn marked this conversation as resolved.
Show resolved Hide resolved
115 changes: 89 additions & 26 deletions src/ontology/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ----------------------------------------
# Makefile for mondo-ingest
# Generated using ontology-development-kit
# ODK Version: v1.5
# ODK Version: v1.5-dev
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that we are using an unstable development snapshot of ODK here - I am cool with this, indeed, I have been testing this very same pipeline locally (with the updates in this PR), but we need to remember that it is.

Copy link
Contributor Author

@joeflack4 joeflack4 Feb 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I actually forgot you'd already told me to do this.

Questions / issues

  1. This will be tricky for me to remember the next time I do it months from now. Is there any way to automate this so that I don't have to remember it?

  2. Is there a specific reason why we're you're asking for ODK_TAG=v1.4.3 instead of latest?

  3. If I don't specify an ODK_TAG, why isn't it defaulting to latest?
    I would figure that's what would happen, since in run.sh it has: ODK_TAG=${ODK_TAG:-latest}

  4. I'm getting the same results if I run ODK_TAG=v1.4.3 sh run.sh make update_repo or sh run.sh make ODK_TAG=v1.4.3 update_repo as when I run sh run.sh make update_repo. Why?
    The changes are exactly the same; there is no diff. I started on a fresh branch and compared the results. Even the Makefile still says # ODK Version: v1.5-dev.
    Also, I recollect you saying something a few months ago about how now "dev would run by default". Do you remember that? Is this simply a result of some configuration you did regarding that? Given (3), I would expect -latest to run, but it appears that is not so.

Log

ODK_TAG=v1.4.3 sh run.sh make update_repo

Running  with -Xmx20G of memory for ROBOT and Java-based pipeline steps.
mondo-ingest.Makefile:65: warning: overriding recipe for target 'components/omim.owl'
Makefile:447: warning: ignoring old recipe for target 'components/omim.owl'
mondo-ingest.Makefile:80: warning: overriding recipe for target 'components/ordo.owl'
Makefile:458: warning: ignoring old recipe for target 'components/ordo.owl'
mondo-ingest.Makefile:99: warning: overriding recipe for target 'components/ncit.owl'
Makefile:436: warning: ignoring old recipe for target 'components/ncit.owl'
mondo-ingest.Makefile:110: warning: overriding recipe for target 'components/doid.owl'
Makefile:392: warning: ignoring old recipe for target 'components/doid.owl'
mondo-ingest.Makefile:132: warning: overriding recipe for target 'component-download-icd10cm.owl'
Makefile:410: warning: ignoring old recipe for target 'component-download-icd10cm.owl'
mondo-ingest.Makefile:138: warning: overriding recipe for target 'components/icd10cm.owl'
Makefile:414: warning: ignoring old recipe for target 'components/icd10cm.owl'
mondo-ingest.Makefile:153: warning: overriding recipe for target 'components/icd10who.owl'
Makefile:425: warning: ignoring old recipe for target 'components/icd10who.owl'
mondo-ingest.Makefile:168: warning: overriding recipe for target 'component-download-gard.owl'
Makefile:399: warning: ignoring old recipe for target 'component-download-gard.owl'
mondo-ingest.Makefile:172: warning: overriding recipe for target 'components/gard.owl'
Makefile:403: warning: ignoring old recipe for target 'components/gard.owl'
mondo-ingest.Makefile:177: warning: overriding recipe for target 'mondo-ingest-full.owl'
Makefile:588: warning: ignoring old recipe for target 'mondo-ingest-full.owl'
mondo-ingest.Makefile:584: warning: overriding recipe for target 'help'
Makefile:659: warning: ignoring old recipe for target 'help'
sh ../scripts/update_repo.sh
This (experimental) update script will create a new repo according to your config file. It will:
(1) overwrite your repositories Makefile, ODK sparql queries (your custom queries wont be touched) and docker wrapper (run.sh).
(2) and add missing files, if any.
INFO:root:  Copying: /tools/templates/CONTRIBUTING.md.jinja2 -> target/mondo-ingest/CONTRIBUTING.md.jinja2
INFO:root:  Copying: /tools/templates/.gitignore.jinja2 -> target/mondo-ingest/.gitignore.jinja2
INFO:root:  Copying: /tools/templates/README.md.jinja2 -> target/mondo-ingest/README.md.jinja2
INFO:root:  Copying: /tools/templates/issue_template.md.jinja2 -> target/mondo-ingest/issue_template.md.jinja2
INFO:root:  Copying: /tools/templates/_dynamic_files.jinja2 -> target/mondo-ingest/_dynamic_files.jinja2
INFO:root:  Copying: /tools/templates/CODE_OF_CONDUCT.md -> target/mondo-ingest/CODE_OF_CONDUCT.md
INFO:root:Applying templates
INFO:root:  Compiling: /tools/templates/CONTRIBUTING.md.jinja2 -> target/mondo-ingest/CONTRIBUTING.md
INFO:root:  Compiling: /tools/templates/.gitignore.jinja2 -> target/mondo-ingest/.gitignore
INFO:root:  Compiling: /tools/templates/README.md.jinja2 -> target/mondo-ingest/README.md
INFO:root:  Compiling: /tools/templates/issue_template.md.jinja2 -> target/mondo-ingest/issue_template.md
INFO:root:  Unpacking: target/mondo-ingest/_dynamic_files
INFO:root:  Unpacking into: target/mondo-ingest/src/ontology/mondo-ingest-edit.owl
INFO:root:  Unpacking into: target/mondo-ingest/src/ontology/mondo-ingest-idranges.owl
INFO:root:  Unpacking into: target/mondo-ingest/src/ontology/mondo-ingest.Makefile
INFO:root:  Unpacking into: target/mondo-ingest/src/ontology/imports/ro_import.owl
INFO:root:  Unpacking into: target/mondo-ingest/src/ontology/imports/omo_import.owl
INFO:root:  Unpacking into: target/mondo-ingest/src/ontology/imports/ro_terms.txt
INFO:root:  Unpacking into: target/mondo-ingest/src/ontology/imports/omo_terms.txt
INFO:root:  Unpacking into: target/mondo-ingest/src/sparql/mondo-ingest_terms.sparql
INFO:root:  Unpacking into: target/mondo-ingest/src/ontology/components/doid.owl
INFO:root:  Unpacking into: target/mondo-ingest/src/ontology/components/gard.owl
INFO:root:  Unpacking into: target/mondo-ingest/src/ontology/components/icd10cm.owl
INFO:root:  Unpacking into: target/mondo-ingest/src/ontology/components/icd10who.owl
INFO:root:  Unpacking into: target/mondo-ingest/src/ontology/components/ncit.owl
INFO:root:  Unpacking into: target/mondo-ingest/src/ontology/components/omim.owl
INFO:root:  Unpacking into: target/mondo-ingest/src/ontology/components/ordo.owl
INFO:root:  Unpacking into: target/mondo-ingest/src/ontology/profile.txt
INFO:root:  Unpacking into: target/mondo-ingest/.github/workflows/qc.yml
INFO:root:  Unpacking into: target/mondo-ingest/docs/index.md
INFO:root:  Unpacking into: target/mondo-ingest/docs/cite.md
INFO:root:  Unpacking into: target/mondo-ingest/docs/contributing.md
INFO:root:  Unpacking into: target/mondo-ingest/docs/odk-workflows/index.md
INFO:root:  Unpacking into: target/mondo-ingest/docs/odk-workflows/ContinuousIntegration.md
INFO:root:  Unpacking into: target/mondo-ingest/docs/odk-workflows/EditorsWorkflow.md
INFO:root:  Unpacking into: target/mondo-ingest/docs/odk-workflows/ReleaseWorkflow.md
INFO:root:  Unpacking into: target/mondo-ingest/docs/odk-workflows/RepoManagement.md
INFO:root:  Unpacking into: target/mondo-ingest/docs/odk-workflows/RepositoryFileStructure.md
INFO:root:  Unpacking into: target/mondo-ingest/docs/odk-workflows/SettingUpDockerForODK.md
INFO:root:  Unpacking into: target/mondo-ingest/docs/odk-workflows/UpdateImports.md
INFO:root:  Unpacking into: target/mondo-ingest/docs/odk-workflows/components.md
INFO:root:  Unpacking into: target/mondo-ingest/docs/odk-workflows/ManageDocumentation.md
INFO:root:  Unpacking into: target/mondo-ingest/mkdocs.yaml
INFO:root:  Unpacking into: target/mondo-ingest/.github/workflows/docs.yml
INFO:root:Applying templates
INFO:root:  Copying: /tools/templates/src/sparql/xrefs.sparql -> target/mondo-ingest/src/sparql/xrefs.sparql
INFO:root:  Copying: /tools/templates/src/sparql/labels.sparql -> target/mondo-ingest/src/sparql/labels.sparql
INFO:root:  Copying: /tools/templates/src/sparql/subsets-labeled.sparql -> target/mondo-ingest/src/sparql/subsets-labeled.sparql
INFO:root:  Copying: /tools/templates/src/sparql/edges.sparql -> target/mondo-ingest/src/sparql/edges.sparql
INFO:root:  Copying: /tools/templates/src/sparql/inject-synonymtype-declaration.ru.jinja2 -> target/mondo-ingest/src/sparql/inject-synonymtype-declaration.ru.jinja2
INFO:root:  Copying: /tools/templates/src/sparql/obsoletes.sparql -> target/mondo-ingest/src/sparql/obsoletes.sparql
INFO:root:  Copying: /tools/templates/src/sparql/README.md.jinja2 -> target/mondo-ingest/src/sparql/README.md.jinja2
INFO:root:  Copying: /tools/templates/src/sparql/preprocess-module.ru -> target/mondo-ingest/src/sparql/preprocess-module.ru
INFO:root:  Copying: /tools/templates/src/sparql/terms.sparql -> target/mondo-ingest/src/sparql/terms.sparql
INFO:root:  Copying: /tools/templates/src/sparql/inject-subset-declaration.ru.jinja2 -> target/mondo-ingest/src/sparql/inject-subset-declaration.ru.jinja2
INFO:root:  Copying: /tools/templates/src/sparql/basic-report.sparql -> target/mondo-ingest/src/sparql/basic-report.sparql
INFO:root:  Copying: /tools/templates/src/sparql/simple-seed.sparql -> target/mondo-ingest/src/sparql/simple-seed.sparql
INFO:root:  Copying: /tools/templates/src/sparql/synonyms.sparql -> target/mondo-ingest/src/sparql/synonyms.sparql
INFO:root:  Copying: /tools/templates/src/sparql/postprocess-module.ru -> target/mondo-ingest/src/sparql/postprocess-module.ru
INFO:root:Applying templates
INFO:root:  Compiling: /tools/templates/src/sparql/inject-synonymtype-declaration.ru.jinja2 -> target/mondo-ingest/src/sparql/inject-synonymtype-declaration.ru
INFO:root:  Compiling: /tools/templates/src/sparql/README.md.jinja2 -> target/mondo-ingest/src/sparql/README.md
INFO:root:  Compiling: /tools/templates/src/sparql/inject-subset-declaration.ru.jinja2 -> target/mondo-ingest/src/sparql/inject-subset-declaration.ru
INFO:root:  Copying: /tools/templates/src/scripts/update_repo.sh.jinja2 -> target/mondo-ingest/src/scripts/update_repo.sh.jinja2
INFO:root:  Copying: /tools/templates/src/scripts/validate_id_ranges.sc -> target/mondo-ingest/src/scripts/validate_id_ranges.sc
INFO:root:  Copying: /tools/templates/src/scripts/run-command.sh -> target/mondo-ingest/src/scripts/run-command.sh
INFO:root:Applying templates
INFO:root:  Compiling: /tools/templates/src/scripts/update_repo.sh.jinja2 -> target/mondo-ingest/src/scripts/update_repo.sh
INFO:root:  Copying: /tools/templates/src/ontology/run.sh.jinja2 -> target/mondo-ingest/src/ontology/run.sh.jinja2
INFO:root:  Copying: /tools/templates/src/ontology/README-editors.md.jinja2 -> target/mondo-ingest/src/ontology/README-editors.md.jinja2
INFO:root:  Copying: /tools/templates/src/ontology/run.bat.jinja2 -> target/mondo-ingest/src/ontology/run.bat.jinja2
INFO:root:  Copying: /tools/templates/src/ontology/catalog-v001.xml.jinja2 -> target/mondo-ingest/src/ontology/catalog-v001.xml.jinja2
INFO:root:  Copying: /tools/templates/src/ontology/Makefile.jinja2 -> target/mondo-ingest/src/ontology/Makefile.jinja2
INFO:root:Applying templates
INFO:root:  Compiling: /tools/templates/src/ontology/run.sh.jinja2 -> target/mondo-ingest/src/ontology/run.sh
INFO:root:  Compiling: /tools/templates/src/ontology/README-editors.md.jinja2 -> target/mondo-ingest/src/ontology/README-editors.md
INFO:root:  Compiling: /tools/templates/src/ontology/run.bat.jinja2 -> target/mondo-ingest/src/ontology/run.bat
INFO:root:  Compiling: /tools/templates/src/ontology/catalog-v001.xml.jinja2 -> target/mondo-ingest/src/ontology/catalog-v001.xml
INFO:root:  Compiling: /tools/templates/src/ontology/Makefile.jinja2 -> target/mondo-ingest/src/ontology/Makefile
INFO:root:Created files:
INFO:root:  File: target/mondo-ingest/CODE_OF_CONDUCT.md
INFO:root:  File: target/mondo-ingest/CONTRIBUTING.md
INFO:root:  File: target/mondo-ingest/.gitignore
INFO:root:  File: target/mondo-ingest/README.md
INFO:root:  File: target/mondo-ingest/issue_template.md
INFO:root:  File: target/mondo-ingest/src/ontology/mondo-ingest-edit.owl
INFO:root:  File: target/mondo-ingest/src/ontology/mondo-ingest-idranges.owl
INFO:root:  File: target/mondo-ingest/src/ontology/mondo-ingest.Makefile
INFO:root:  File: target/mondo-ingest/src/ontology/imports/ro_import.owl
INFO:root:  File: target/mondo-ingest/src/ontology/imports/omo_import.owl
INFO:root:  File: target/mondo-ingest/src/ontology/imports/ro_terms.txt
INFO:root:  File: target/mondo-ingest/src/ontology/imports/omo_terms.txt
INFO:root:  File: target/mondo-ingest/src/sparql/mondo-ingest_terms.sparql
INFO:root:  File: target/mondo-ingest/src/ontology/components/doid.owl
INFO:root:  File: target/mondo-ingest/src/ontology/components/gard.owl
INFO:root:  File: target/mondo-ingest/src/ontology/components/icd10cm.owl
INFO:root:  File: target/mondo-ingest/src/ontology/components/icd10who.owl
INFO:root:  File: target/mondo-ingest/src/ontology/components/ncit.owl
INFO:root:  File: target/mondo-ingest/src/ontology/components/omim.owl
INFO:root:  File: target/mondo-ingest/src/ontology/components/ordo.owl
INFO:root:  File: target/mondo-ingest/src/ontology/profile.txt
INFO:root:  File: target/mondo-ingest/.github/workflows/qc.yml
INFO:root:  File: target/mondo-ingest/docs/index.md
INFO:root:  File: target/mondo-ingest/docs/cite.md
INFO:root:  File: target/mondo-ingest/docs/contributing.md
INFO:root:  File: target/mondo-ingest/docs/odk-workflows/index.md
INFO:root:  File: target/mondo-ingest/docs/odk-workflows/ContinuousIntegration.md
INFO:root:  File: target/mondo-ingest/docs/odk-workflows/EditorsWorkflow.md
INFO:root:  File: target/mondo-ingest/docs/odk-workflows/ReleaseWorkflow.md
INFO:root:  File: target/mondo-ingest/docs/odk-workflows/RepoManagement.md
INFO:root:  File: target/mondo-ingest/docs/odk-workflows/RepositoryFileStructure.md
INFO:root:  File: target/mondo-ingest/docs/odk-workflows/SettingUpDockerForODK.md
INFO:root:  File: target/mondo-ingest/docs/odk-workflows/UpdateImports.md
INFO:root:  File: target/mondo-ingest/docs/odk-workflows/components.md
INFO:root:  File: target/mondo-ingest/docs/odk-workflows/ManageDocumentation.md
INFO:root:  File: target/mondo-ingest/mkdocs.yaml
INFO:root:  File: target/mondo-ingest/.github/workflows/docs.yml
INFO:root:  File: target/mondo-ingest/src/sparql/xrefs.sparql
INFO:root:  File: target/mondo-ingest/src/sparql/labels.sparql
INFO:root:  File: target/mondo-ingest/src/sparql/subsets-labeled.sparql
INFO:root:  File: target/mondo-ingest/src/sparql/edges.sparql
INFO:root:  File: target/mondo-ingest/src/sparql/obsoletes.sparql
INFO:root:  File: target/mondo-ingest/src/sparql/preprocess-module.ru
INFO:root:  File: target/mondo-ingest/src/sparql/terms.sparql
INFO:root:  File: target/mondo-ingest/src/sparql/basic-report.sparql
INFO:root:  File: target/mondo-ingest/src/sparql/simple-seed.sparql
INFO:root:  File: target/mondo-ingest/src/sparql/synonyms.sparql
INFO:root:  File: target/mondo-ingest/src/sparql/postprocess-module.ru
INFO:root:  File: target/mondo-ingest/src/sparql/inject-synonymtype-declaration.ru
INFO:root:  File: target/mondo-ingest/src/sparql/README.md
INFO:root:  File: target/mondo-ingest/src/sparql/inject-subset-declaration.ru
INFO:root:  File: target/mondo-ingest/src/scripts/validate_id_ranges.sc
INFO:root:  File: target/mondo-ingest/src/scripts/run-command.sh
INFO:root:  File: target/mondo-ingest/src/scripts/update_repo.sh
INFO:root:  File: target/mondo-ingest/src/ontology/run.sh
INFO:root:  File: target/mondo-ingest/src/ontology/README-editors.md
INFO:root:  File: target/mondo-ingest/src/ontology/run.bat
INFO:root:  File: target/mondo-ingest/src/ontology/catalog-v001.xml
INFO:root:  File: target/mondo-ingest/src/ontology/Makefile
INFO:root:  File: target/mondo-ingest/src/ontology/mondo-ingest-odk.yaml
Repository files have been successfully copied, but no git commands have been run.
total 0
drwxr-xr-x 14 odkuser dialout 448 Feb  7 19:37 ontology
drwxr-xr-x  5 odkuser dialout 160 Feb  7 19:37 scripts
drwxr-xr-x 17 odkuser dialout 544 Feb  7 19:37 sparql
total 0
drwxr-xr-x  3 odkuser dialout   96 Oct 14 21:32 analysis
drwxr-xr-x 14 odkuser dialout  448 Feb  6 22:31 mappings
drwxr-xr-x 28 root    root     896 Feb  7 19:37 ontology
drwxr-xr-x 24 odkuser dialout  768 Feb  7 19:37 scripts
drwxr-xr-x 72 odkuser dialout 2304 Feb  6 22:31 sparql
WARNING: These files should be manually migrated: mkdocs.yaml, .gitignore, src/ontology/catalog.xml (if you added a new import or component)
WARNING: Your QC workflows have not been updated automatically. Please update the ODK version number(s) in .github/workflows/qc.yml.
../scripts/update_repo.sh: 39: Syntax error: Unterminated quoted string
make: *** [Makefile:642: update_repo] Error 2
Command exited with non-zero status 2
### DEBUG STATS ###
Elapsed time: 0:00.33
Peak memory: 33172 kb
run.sh: line 100: DEBUG: command not found
run.sh: line 101: syntax error near unexpected token `fi'
run.sh: line 101: `fi'
ODK_TAG=v1.4.3 sh run.sh make update_repo

Running  with -Xmx20G of memory for ROBOT and Java-based pipeline steps.
mondo-ingest.Makefile:65: warning: overriding recipe for target 'components/omim.owl'
Makefile:501: warning: ignoring old recipe for target 'components/omim.owl'
mondo-ingest.Makefile:80: warning: overriding recipe for target 'components/ordo.owl'
Makefile:515: warning: ignoring old recipe for target 'components/ordo.owl'
mondo-ingest.Makefile:99: warning: overriding recipe for target 'components/ncit.owl'
Makefile:487: warning: ignoring old recipe for target 'components/ncit.owl'
mondo-ingest.Makefile:110: warning: overriding recipe for target 'components/doid.owl'
Makefile:431: warning: ignoring old recipe for target 'components/doid.owl'
mondo-ingest.Makefile:132: warning: overriding recipe for target 'component-download-icd10cm.owl'
Makefile:455: warning: ignoring old recipe for target 'component-download-icd10cm.owl'
mondo-ingest.Makefile:138: warning: overriding recipe for target 'components/icd10cm.owl'
Makefile:459: warning: ignoring old recipe for target 'components/icd10cm.owl'
mondo-ingest.Makefile:153: warning: overriding recipe for target 'components/icd10who.owl'
Makefile:473: warning: ignoring old recipe for target 'components/icd10who.owl'
mondo-ingest.Makefile:168: warning: overriding recipe for target 'component-download-gard.owl'
Makefile:441: warning: ignoring old recipe for target 'component-download-gard.owl'
mondo-ingest.Makefile:172: warning: overriding recipe for target 'components/gard.owl'
Makefile:445: warning: ignoring old recipe for target 'components/gard.owl'
mondo-ingest.Makefile:177: warning: overriding recipe for target 'mondo-ingest-full.owl'
Makefile:651: warning: ignoring old recipe for target 'mondo-ingest-full.owl'
mondo-ingest.Makefile:584: warning: overriding recipe for target 'help'
Makefile:722: warning: ignoring old recipe for target 'help'
sh ../scripts/update_repo.sh
This (experimental) update script will create a new repo according to your config file. It will:
(1) overwrite your repositories Makefile, ODK sparql queries (your custom queries wont be touched) and docker wrapper (run.sh).
(2) and add missing files, if any.
INFO:root:  Copying: /tools/templates/CONTRIBUTING.md.jinja2 -> target/mondo-ingest/CONTRIBUTING.md.jinja2
INFO:root:  Copying: /tools/templates/.gitignore.jinja2 -> target/mondo-ingest/.gitignore.jinja2
INFO:root:  Copying: /tools/templates/README.md.jinja2 -> target/mondo-ingest/README.md.jinja2
INFO:root:  Copying: /tools/templates/issue_template.md.jinja2 -> target/mondo-ingest/issue_template.md.jinja2
INFO:root:  Copying: /tools/templates/_dynamic_files.jinja2 -> target/mondo-ingest/_dynamic_files.jinja2
INFO:root:  Copying: /tools/templates/CODE_OF_CONDUCT.md -> target/mondo-ingest/CODE_OF_CONDUCT.md
INFO:root:Applying templates
INFO:root:  Compiling: /tools/templates/CONTRIBUTING.md.jinja2 -> target/mondo-ingest/CONTRIBUTING.md
INFO:root:  Compiling: /tools/templates/.gitignore.jinja2 -> target/mondo-ingest/.gitignore
INFO:root:  Compiling: /tools/templates/README.md.jinja2 -> target/mondo-ingest/README.md
INFO:root:  Compiling: /tools/templates/issue_template.md.jinja2 -> target/mondo-ingest/issue_template.md
INFO:root:  Unpacking: target/mondo-ingest/_dynamic_files
INFO:root:  Unpacking into: target/mondo-ingest/src/ontology/mondo-ingest-edit.owl
INFO:root:  Unpacking into: target/mondo-ingest/src/ontology/mondo-ingest-idranges.owl
INFO:root:  Unpacking into: target/mondo-ingest/src/ontology/mondo-ingest.Makefile
INFO:root:  Unpacking into: target/mondo-ingest/src/ontology/imports/ro_import.owl
INFO:root:  Unpacking into: target/mondo-ingest/src/ontology/imports/omo_import.owl
INFO:root:  Unpacking into: target/mondo-ingest/src/ontology/imports/ro_terms.txt
INFO:root:  Unpacking into: target/mondo-ingest/src/ontology/imports/omo_terms.txt
INFO:root:  Unpacking into: target/mondo-ingest/src/sparql/mondo-ingest_terms.sparql
INFO:root:  Unpacking into: target/mondo-ingest/src/ontology/components/doid.owl
INFO:root:  Unpacking into: target/mondo-ingest/src/ontology/components/gard.owl
INFO:root:  Unpacking into: target/mondo-ingest/src/ontology/components/icd10cm.owl
INFO:root:  Unpacking into: target/mondo-ingest/src/ontology/components/icd10who.owl
INFO:root:  Unpacking into: target/mondo-ingest/src/ontology/components/ncit.owl
INFO:root:  Unpacking into: target/mondo-ingest/src/ontology/components/omim.owl
INFO:root:  Unpacking into: target/mondo-ingest/src/ontology/components/ordo.owl
INFO:root:  Unpacking into: target/mondo-ingest/src/ontology/profile.txt
INFO:root:  Unpacking into: target/mondo-ingest/.github/workflows/qc.yml
INFO:root:  Unpacking into: target/mondo-ingest/docs/index.md
INFO:root:  Unpacking into: target/mondo-ingest/docs/cite.md
INFO:root:  Unpacking into: target/mondo-ingest/docs/contributing.md
INFO:root:  Unpacking into: target/mondo-ingest/docs/odk-workflows/index.md
INFO:root:  Unpacking into: target/mondo-ingest/docs/odk-workflows/ContinuousIntegration.md
INFO:root:  Unpacking into: target/mondo-ingest/docs/odk-workflows/EditorsWorkflow.md
INFO:root:  Unpacking into: target/mondo-ingest/docs/odk-workflows/ReleaseWorkflow.md
INFO:root:  Unpacking into: target/mondo-ingest/docs/odk-workflows/RepoManagement.md
INFO:root:  Unpacking into: target/mondo-ingest/docs/odk-workflows/RepositoryFileStructure.md
INFO:root:  Unpacking into: target/mondo-ingest/docs/odk-workflows/SettingUpDockerForODK.md
INFO:root:  Unpacking into: target/mondo-ingest/docs/odk-workflows/UpdateImports.md
INFO:root:  Unpacking into: target/mondo-ingest/docs/odk-workflows/components.md
INFO:root:  Unpacking into: target/mondo-ingest/docs/odk-workflows/ManageDocumentation.md
INFO:root:  Unpacking into: target/mondo-ingest/mkdocs.yaml
INFO:root:  Unpacking into: target/mondo-ingest/.github/workflows/docs.yml
INFO:root:Applying templates
INFO:root:  Copying: /tools/templates/src/sparql/xrefs.sparql -> target/mondo-ingest/src/sparql/xrefs.sparql
INFO:root:  Copying: /tools/templates/src/sparql/labels.sparql -> target/mondo-ingest/src/sparql/labels.sparql
INFO:root:  Copying: /tools/templates/src/sparql/subsets-labeled.sparql -> target/mondo-ingest/src/sparql/subsets-labeled.sparql
INFO:root:  Copying: /tools/templates/src/sparql/edges.sparql -> target/mondo-ingest/src/sparql/edges.sparql
INFO:root:  Copying: /tools/templates/src/sparql/inject-synonymtype-declaration.ru.jinja2 -> target/mondo-ingest/src/sparql/inject-synonymtype-declaration.ru.jinja2
INFO:root:  Copying: /tools/templates/src/sparql/obsoletes.sparql -> target/mondo-ingest/src/sparql/obsoletes.sparql
INFO:root:  Copying: /tools/templates/src/sparql/README.md.jinja2 -> target/mondo-ingest/src/sparql/README.md.jinja2
INFO:root:  Copying: /tools/templates/src/sparql/preprocess-module.ru -> target/mondo-ingest/src/sparql/preprocess-module.ru
INFO:root:  Copying: /tools/templates/src/sparql/terms.sparql -> target/mondo-ingest/src/sparql/terms.sparql
INFO:root:  Copying: /tools/templates/src/sparql/inject-subset-declaration.ru.jinja2 -> target/mondo-ingest/src/sparql/inject-subset-declaration.ru.jinja2
INFO:root:  Copying: /tools/templates/src/sparql/basic-report.sparql -> target/mondo-ingest/src/sparql/basic-report.sparql
INFO:root:  Copying: /tools/templates/src/sparql/simple-seed.sparql -> target/mondo-ingest/src/sparql/simple-seed.sparql
INFO:root:  Copying: /tools/templates/src/sparql/synonyms.sparql -> target/mondo-ingest/src/sparql/synonyms.sparql
INFO:root:  Copying: /tools/templates/src/sparql/postprocess-module.ru -> target/mondo-ingest/src/sparql/postprocess-module.ru
INFO:root:Applying templates
INFO:root:  Compiling: /tools/templates/src/sparql/inject-synonymtype-declaration.ru.jinja2 -> target/mondo-ingest/src/sparql/inject-synonymtype-declaration.ru
INFO:root:  Compiling: /tools/templates/src/sparql/README.md.jinja2 -> target/mondo-ingest/src/sparql/README.md
INFO:root:  Compiling: /tools/templates/src/sparql/inject-subset-declaration.ru.jinja2 -> target/mondo-ingest/src/sparql/inject-subset-declaration.ru
INFO:root:  Copying: /tools/templates/src/scripts/update_repo.sh.jinja2 -> target/mondo-ingest/src/scripts/update_repo.sh.jinja2
INFO:root:  Copying: /tools/templates/src/scripts/validate_id_ranges.sc -> target/mondo-ingest/src/scripts/validate_id_ranges.sc
INFO:root:  Copying: /tools/templates/src/scripts/run-command.sh -> target/mondo-ingest/src/scripts/run-command.sh
INFO:root:Applying templates
INFO:root:  Compiling: /tools/templates/src/scripts/update_repo.sh.jinja2 -> target/mondo-ingest/src/scripts/update_repo.sh
INFO:root:  Copying: /tools/templates/src/ontology/run.sh.jinja2 -> target/mondo-ingest/src/ontology/run.sh.jinja2
INFO:root:  Copying: /tools/templates/src/ontology/README-editors.md.jinja2 -> target/mondo-ingest/src/ontology/README-editors.md.jinja2
INFO:root:  Copying: /tools/templates/src/ontology/run.bat.jinja2 -> target/mondo-ingest/src/ontology/run.bat.jinja2
INFO:root:  Copying: /tools/templates/src/ontology/catalog-v001.xml.jinja2 -> target/mondo-ingest/src/ontology/catalog-v001.xml.jinja2
INFO:root:  Copying: /tools/templates/src/ontology/Makefile.jinja2 -> target/mondo-ingest/src/ontology/Makefile.jinja2
INFO:root:Applying templates
INFO:root:  Compiling: /tools/templates/src/ontology/run.sh.jinja2 -> target/mondo-ingest/src/ontology/run.sh
INFO:root:  Compiling: /tools/templates/src/ontology/README-editors.md.jinja2 -> target/mondo-ingest/src/ontology/README-editors.md
INFO:root:  Compiling: /tools/templates/src/ontology/run.bat.jinja2 -> target/mondo-ingest/src/ontology/run.bat
INFO:root:  Compiling: /tools/templates/src/ontology/catalog-v001.xml.jinja2 -> target/mondo-ingest/src/ontology/catalog-v001.xml
INFO:root:  Compiling: /tools/templates/src/ontology/Makefile.jinja2 -> target/mondo-ingest/src/ontology/Makefile
INFO:root:Created files:
INFO:root:  File: target/mondo-ingest/CODE_OF_CONDUCT.md
INFO:root:  File: target/mondo-ingest/CONTRIBUTING.md
INFO:root:  File: target/mondo-ingest/.gitignore
INFO:root:  File: target/mondo-ingest/README.md
INFO:root:  File: target/mondo-ingest/issue_template.md
INFO:root:  File: target/mondo-ingest/src/ontology/mondo-ingest-edit.owl
INFO:root:  File: target/mondo-ingest/src/ontology/mondo-ingest-idranges.owl
INFO:root:  File: target/mondo-ingest/src/ontology/mondo-ingest.Makefile
INFO:root:  File: target/mondo-ingest/src/ontology/imports/ro_import.owl
INFO:root:  File: target/mondo-ingest/src/ontology/imports/omo_import.owl
INFO:root:  File: target/mondo-ingest/src/ontology/imports/ro_terms.txt
INFO:root:  File: target/mondo-ingest/src/ontology/imports/omo_terms.txt
INFO:root:  File: target/mondo-ingest/src/sparql/mondo-ingest_terms.sparql
INFO:root:  File: target/mondo-ingest/src/ontology/components/doid.owl
INFO:root:  File: target/mondo-ingest/src/ontology/components/gard.owl
INFO:root:  File: target/mondo-ingest/src/ontology/components/icd10cm.owl
INFO:root:  File: target/mondo-ingest/src/ontology/components/icd10who.owl
INFO:root:  File: target/mondo-ingest/src/ontology/components/ncit.owl
INFO:root:  File: target/mondo-ingest/src/ontology/components/omim.owl
INFO:root:  File: target/mondo-ingest/src/ontology/components/ordo.owl
INFO:root:  File: target/mondo-ingest/src/ontology/profile.txt
INFO:root:  File: target/mondo-ingest/.github/workflows/qc.yml
INFO:root:  File: target/mondo-ingest/docs/index.md
INFO:root:  File: target/mondo-ingest/docs/cite.md
INFO:root:  File: target/mondo-ingest/docs/contributing.md
INFO:root:  File: target/mondo-ingest/docs/odk-workflows/index.md
INFO:root:  File: target/mondo-ingest/docs/odk-workflows/ContinuousIntegration.md
INFO:root:  File: target/mondo-ingest/docs/odk-workflows/EditorsWorkflow.md
INFO:root:  File: target/mondo-ingest/docs/odk-workflows/ReleaseWorkflow.md
INFO:root:  File: target/mondo-ingest/docs/odk-workflows/RepoManagement.md
INFO:root:  File: target/mondo-ingest/docs/odk-workflows/RepositoryFileStructure.md
INFO:root:  File: target/mondo-ingest/docs/odk-workflows/SettingUpDockerForODK.md
INFO:root:  File: target/mondo-ingest/docs/odk-workflows/UpdateImports.md
INFO:root:  File: target/mondo-ingest/docs/odk-workflows/components.md
INFO:root:  File: target/mondo-ingest/docs/odk-workflows/ManageDocumentation.md
INFO:root:  File: target/mondo-ingest/mkdocs.yaml
INFO:root:  File: target/mondo-ingest/.github/workflows/docs.yml
INFO:root:  File: target/mondo-ingest/src/sparql/xrefs.sparql
INFO:root:  File: target/mondo-ingest/src/sparql/labels.sparql
INFO:root:  File: target/mondo-ingest/src/sparql/subsets-labeled.sparql
INFO:root:  File: target/mondo-ingest/src/sparql/edges.sparql
INFO:root:  File: target/mondo-ingest/src/sparql/obsoletes.sparql
INFO:root:  File: target/mondo-ingest/src/sparql/preprocess-module.ru
INFO:root:  File: target/mondo-ingest/src/sparql/terms.sparql
INFO:root:  File: target/mondo-ingest/src/sparql/basic-report.sparql
INFO:root:  File: target/mondo-ingest/src/sparql/simple-seed.sparql
INFO:root:  File: target/mondo-ingest/src/sparql/synonyms.sparql
INFO:root:  File: target/mondo-ingest/src/sparql/postprocess-module.ru
INFO:root:  File: target/mondo-ingest/src/sparql/inject-synonymtype-declaration.ru
INFO:root:  File: target/mondo-ingest/src/sparql/README.md
INFO:root:  File: target/mondo-ingest/src/sparql/inject-subset-declaration.ru
INFO:root:  File: target/mondo-ingest/src/scripts/validate_id_ranges.sc
INFO:root:  File: target/mondo-ingest/src/scripts/run-command.sh
INFO:root:  File: target/mondo-ingest/src/scripts/update_repo.sh
INFO:root:  File: target/mondo-ingest/src/ontology/run.sh
INFO:root:  File: target/mondo-ingest/src/ontology/README-editors.md
INFO:root:  File: target/mondo-ingest/src/ontology/run.bat
INFO:root:  File: target/mondo-ingest/src/ontology/catalog-v001.xml
INFO:root:  File: target/mondo-ingest/src/ontology/Makefile
INFO:root:  File: target/mondo-ingest/src/ontology/mondo-ingest-odk.yaml
Repository files have been successfully copied, but no git commands have been run.
total 0
drwxr-xr-x 14 odkuser dialout 448 Feb  7 19:37 ontology
drwxr-xr-x  5 odkuser dialout 160 Feb  7 19:37 scripts
drwxr-xr-x 17 odkuser dialout 544 Feb  7 19:37 sparql
total 0
drwxr-xr-x  3 odkuser dialout   96 Oct 14 21:32 analysis
drwxr-xr-x 14 odkuser dialout  448 Feb  6 22:31 mappings
drwxr-xr-x 28 root    root     896 Feb  7 19:37 ontology
drwxr-xr-x 25 odkuser dialout  800 Feb  7 19:37 scripts
drwxr-xr-x 72 odkuser dialout 2304 Feb  6 22:31 sparql
WARNING: These files should be manually migrated: mkdocs.yaml, .gitignore, src/ontology/catalog.xml (if you added a new import or component)
WARNING: Your QC workflows have not been updated automatically. Please update the ODK version number(s) in .github/workflows/qc.yml.
Ontology repository update successfully completed.
### DEBUG STATS ###
Elapsed time: 0:00.34
Peak memory: 33180 kb
Please remember to update your ODK image from time to time: https://oboacademy.github.io/obook/howto/odk-update/.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a specific reason why we're you're asking for ODK_TAG=v1.4.3 instead of latest?

No, using latest and v1.4.3 would be the same. I need to use v1.4.3 because I also built the ODK locally on my machine, so my latest is not the official latest.

If I don't specify an ODK_TAG, why isn't it defaulting to latest?

see file src/ontology/run.sh.conf which specifies the default environment variables. We need dev for everything other than update_repo.

I'm getting the same results if I run ODK_TAG=v1.4.3 sh run.sh make update_repo or sh run.sh make ODK_TAG=v1.4.3 update_repo as when I run sh run.sh make update_repo. Why?

I dont know. I run ODK_TAG=v1.4.3 ./run.sh make update_repo but I cant imagine that makes a difference. run.sh.conf should determine your defaults.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't looked at run.sh.conf before, I'll take a look. If I'm still confounded after that, maybe I can show you on Monday.

# ----------------------------------------
# IMPORTANT: DO NOT EDIT THIS FILE. To override default make goals, use mondo-ingest.Makefile instead

Expand All @@ -10,7 +10,7 @@
# More information: https://github.com/INCATools/ontology-development-kit/

# Fingerprint of the configuration file when this Makefile was last generated
CONFIG_HASH= cb9c226c830886e98787ddf41795ed278d091ca821b301895ae80ac5429e9379
CONFIG_HASH= 75f9fac53818e7a8265abd51f2671d660b4e535d51c9226f29b815e013af0edf


# ----------------------------------------
Expand Down Expand Up @@ -47,7 +47,7 @@ REPORT_PROFILE_OPTS = --profile $(ROBOT_PROFILE)
OBO_FORMAT_OPTIONS =
SPARQL_VALIDATION_CHECKS = properties-as-annotation-and-object ordo-mapping-annotations
SPARQL_EXPORTS = basic-report
ODK_VERSION_MAKEFILE = v1.5
ODK_VERSION_MAKEFILE = v1.5-dev

TODAY ?= $(shell date +%Y-%m-%d)
OBODATE ?= $(shell date +'%d:%m:%Y %H:%M')
Expand All @@ -62,6 +62,11 @@ FORMATS = $(sort owl obo json owl)
FORMATS_INCL_TSV = $(sort $(FORMATS) tsv)
RELEASE_ARTEFACTS = $(sort $(ONT)-base $(ONT)-full )

ifeq ($(ODK_DEBUG),yes)
ODK_DEBUG_FILE = $(TMPDIR)/debug.log
SHELL = $(SCRIPTSDIR)/run-command.sh
endif

# ----------------------------------------
# Top-level targets
# ----------------------------------------
Expand Down Expand Up @@ -105,6 +110,40 @@ config_check:
$(TMPDIR) $(REPORTDIR) $(MIRRORDIR) $(IMPORTDIR) $(COMPONENTSDIR) $(SUBSETDIR):
mkdir -p $@

# ----------------------------------------
# ODK-managed ROBOT plugins
# ----------------------------------------

# Make sure ROBOT knows where to find plugins
export ROBOT_PLUGINS_DIRECTORY=$(TMPDIR)/plugins

# Override this rule in mondo-ingest.Makefile to install custom plugins
.PHONY: custom_robot_plugins
custom_robot_plugins:


.PHONY: extra_robot_plugins
extra_robot_plugins:


# Install all ROBOT plugins to the runtime plugins directory
.PHONY: all_robot_plugins
all_robot_plugins: $(foreach plugin,$(notdir $(wildcard /tools/robot-plugins/*.jar)),$(ROBOT_PLUGINS_DIRECTORY)/$(plugin)) \
$(foreach plugin,$(notdir $(wildcard ../../plugins/*.jar)),$(ROBOT_PLUGINS_DIRECTORY)/$(plugin)) \
custom_robot_plugins extra_robot_plugins \

# Default rule to install plugins
$(ROBOT_PLUGINS_DIRECTORY)/%.jar:
@mkdir -p $(ROBOT_PLUGINS_DIRECTORY)
@if [ -f ../../plugins/$*.jar ]; then \
ln ../../plugins/$*.jar $@ ; \
elif [ -f /tools/robot-plugins/$*.jar ]; then \
cp /tools/robot-plugins/$*.jar $@ ; \
fi

# Specific rules for supplementary plugins defined in configuration


# ----------------------------------------
# Release assets
# ----------------------------------------
Expand Down Expand Up @@ -226,15 +265,15 @@ RELEASE_ASSETS = \
$(SUBSET_FILES)

.PHONY: all_assets
all_assets: $(ASSETS)
all_assets: $(ASSETS) check_rdfxml_assets

.PHONY: show_assets
show_assets:
echo $(ASSETS)
du -sh $(ASSETS)

check_rdfxml_%: %
@check-rdfxml $<
@check-rdfxml $<

.PHONY: check_rdfxml_assets
check_rdfxml_assets: $(foreach product,$(MAIN_PRODUCTS),check_rdfxml_$(product).owl)
Expand Down Expand Up @@ -388,8 +427,11 @@ component-download-doid.owl: | $(TMPDIR)
if [ $(MIR) = true ] && [ $(COMP) = true ]; then $(ROBOT) merge -I http://purl.obolibrary.org/obo/doid.owl \
annotate --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) -o $(TMPDIR)/[email protected]; fi

$(COMPONENTSDIR)/doid.owl: component-download-doid.owl
if [ $(COMP) = true ] ; then if cmp -s $(TMPDIR)/component-download-doid.owl.owl $@ ; then echo "Component identical."; else echo "Component is different, updating." && cp $(TMPDIR)/component-download-doid.owl.owl $@; fi; fi
$(COMPONENTSDIR)/doid.owl: component-download-doid.owl
if [ $(COMP) = true ]; then if cmp -s $(TMPDIR)/component-download-doid.owl.owl $(TMPDIR)/component-download-doid.owl.tmp.owl ; then echo "Component identical."; \
else echo "Component is different, updating." &&\
cp $(TMPDIR)/component-download-doid.owl.owl $(TMPDIR)/component-download-doid.owl.tmp.owl &&\
$(ROBOT) annotate -i $(TMPDIR)/component-download-doid.owl.owl --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) -o $@; fi; fi

.PRECIOUS: $(COMPONENTSDIR)/doid.owl

Expand All @@ -399,8 +441,11 @@ component-download-gard.owl: | $(TMPDIR)
if [ $(MIR) = true ] && [ $(COMP) = true ]; then $(ROBOT) merge -I https://github.com/monarch-initiative/gard/releases/latest/download/gard.owl \
annotate --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) -o $(TMPDIR)/[email protected]; fi

$(COMPONENTSDIR)/gard.owl: component-download-gard.owl
if [ $(COMP) = true ] ; then if cmp -s $(TMPDIR)/component-download-gard.owl.owl $@ ; then echo "Component identical."; else echo "Component is different, updating." && cp $(TMPDIR)/component-download-gard.owl.owl $@; fi; fi
$(COMPONENTSDIR)/gard.owl: component-download-gard.owl
if [ $(COMP) = true ]; then if cmp -s $(TMPDIR)/component-download-gard.owl.owl $(TMPDIR)/component-download-gard.owl.tmp.owl ; then echo "Component identical."; \
else echo "Component is different, updating." &&\
cp $(TMPDIR)/component-download-gard.owl.owl $(TMPDIR)/component-download-gard.owl.tmp.owl &&\
$(ROBOT) annotate -i $(TMPDIR)/component-download-gard.owl.owl --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) -o $@; fi; fi

.PRECIOUS: $(COMPONENTSDIR)/gard.owl

Expand All @@ -410,8 +455,11 @@ component-download-icd10cm.owl: | $(TMPDIR)
if [ $(MIR) = true ] && [ $(COMP) = true ]; then $(ROBOT) merge -I https://data.bioontology.org/ontologies/ICD10CM/submissions/23/download?apikey=8b5b7825-538d-40e0-9e9e-5ab9274a9aeb \
annotate --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) -o $(TMPDIR)/[email protected]; fi

$(COMPONENTSDIR)/icd10cm.owl: component-download-icd10cm.owl
if [ $(COMP) = true ] ; then if cmp -s $(TMPDIR)/component-download-icd10cm.owl.owl $@ ; then echo "Component identical."; else echo "Component is different, updating." && cp $(TMPDIR)/component-download-icd10cm.owl.owl $@; fi; fi
$(COMPONENTSDIR)/icd10cm.owl: component-download-icd10cm.owl
if [ $(COMP) = true ]; then if cmp -s $(TMPDIR)/component-download-icd10cm.owl.owl $(TMPDIR)/component-download-icd10cm.owl.tmp.owl ; then echo "Component identical."; \
else echo "Component is different, updating." &&\
cp $(TMPDIR)/component-download-icd10cm.owl.owl $(TMPDIR)/component-download-icd10cm.owl.tmp.owl &&\
$(ROBOT) annotate -i $(TMPDIR)/component-download-icd10cm.owl.owl --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) -o $@; fi; fi

.PRECIOUS: $(COMPONENTSDIR)/icd10cm.owl

Expand All @@ -421,8 +469,11 @@ component-download-icd10who.owl: | $(TMPDIR)
if [ $(MIR) = true ] && [ $(COMP) = true ]; then $(ROBOT) merge -I https://github.com/monarch-initiative/icd10who/releases/latest/download/icd10who.ttl \
annotate --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) -o $(TMPDIR)/[email protected]; fi

$(COMPONENTSDIR)/icd10who.owl: component-download-icd10who.owl
if [ $(COMP) = true ] ; then if cmp -s $(TMPDIR)/component-download-icd10who.owl.owl $@ ; then echo "Component identical."; else echo "Component is different, updating." && cp $(TMPDIR)/component-download-icd10who.owl.owl $@; fi; fi
$(COMPONENTSDIR)/icd10who.owl: component-download-icd10who.owl
if [ $(COMP) = true ]; then if cmp -s $(TMPDIR)/component-download-icd10who.owl.owl $(TMPDIR)/component-download-icd10who.owl.tmp.owl ; then echo "Component identical."; \
else echo "Component is different, updating." &&\
cp $(TMPDIR)/component-download-icd10who.owl.owl $(TMPDIR)/component-download-icd10who.owl.tmp.owl &&\
$(ROBOT) annotate -i $(TMPDIR)/component-download-icd10who.owl.owl --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) -o $@; fi; fi

.PRECIOUS: $(COMPONENTSDIR)/icd10who.owl

Expand All @@ -432,8 +483,11 @@ component-download-ncit.owl: | $(TMPDIR)
if [ $(MIR) = true ] && [ $(COMP) = true ]; then $(ROBOT) merge -I http://purl.obolibrary.org/obo/ncit.owl \
annotate --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) -o $(TMPDIR)/[email protected]; fi

$(COMPONENTSDIR)/ncit.owl: component-download-ncit.owl
if [ $(COMP) = true ] ; then if cmp -s $(TMPDIR)/component-download-ncit.owl.owl $@ ; then echo "Component identical."; else echo "Component is different, updating." && cp $(TMPDIR)/component-download-ncit.owl.owl $@; fi; fi
$(COMPONENTSDIR)/ncit.owl: component-download-ncit.owl
if [ $(COMP) = true ]; then if cmp -s $(TMPDIR)/component-download-ncit.owl.owl $(TMPDIR)/component-download-ncit.owl.tmp.owl ; then echo "Component identical."; \
else echo "Component is different, updating." &&\
cp $(TMPDIR)/component-download-ncit.owl.owl $(TMPDIR)/component-download-ncit.owl.tmp.owl &&\
$(ROBOT) annotate -i $(TMPDIR)/component-download-ncit.owl.owl --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) -o $@; fi; fi

.PRECIOUS: $(COMPONENTSDIR)/ncit.owl

Expand All @@ -443,8 +497,11 @@ component-download-omim.owl: | $(TMPDIR)
if [ $(MIR) = true ] && [ $(COMP) = true ]; then $(ROBOT) merge -I https://github.com/monarch-initiative/omim/releases/latest/download/omim.ttl \
annotate --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) -o $(TMPDIR)/[email protected]; fi

$(COMPONENTSDIR)/omim.owl: component-download-omim.owl
if [ $(COMP) = true ] ; then if cmp -s $(TMPDIR)/component-download-omim.owl.owl $@ ; then echo "Component identical."; else echo "Component is different, updating." && cp $(TMPDIR)/component-download-omim.owl.owl $@; fi; fi
$(COMPONENTSDIR)/omim.owl: component-download-omim.owl
if [ $(COMP) = true ]; then if cmp -s $(TMPDIR)/component-download-omim.owl.owl $(TMPDIR)/component-download-omim.owl.tmp.owl ; then echo "Component identical."; \
else echo "Component is different, updating." &&\
cp $(TMPDIR)/component-download-omim.owl.owl $(TMPDIR)/component-download-omim.owl.tmp.owl &&\
$(ROBOT) annotate -i $(TMPDIR)/component-download-omim.owl.owl --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) -o $@; fi; fi

.PRECIOUS: $(COMPONENTSDIR)/omim.owl

Expand All @@ -454,8 +511,11 @@ component-download-ordo.owl: | $(TMPDIR)
if [ $(MIR) = true ] && [ $(COMP) = true ]; then $(ROBOT) merge -I http://www.orphadata.org/data/ORDO/ordo_orphanet.owl \
annotate --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) -o $(TMPDIR)/[email protected]; fi

$(COMPONENTSDIR)/ordo.owl: component-download-ordo.owl
if [ $(COMP) = true ] ; then if cmp -s $(TMPDIR)/component-download-ordo.owl.owl $@ ; then echo "Component identical."; else echo "Component is different, updating." && cp $(TMPDIR)/component-download-ordo.owl.owl $@; fi; fi
$(COMPONENTSDIR)/ordo.owl: component-download-ordo.owl
if [ $(COMP) = true ]; then if cmp -s $(TMPDIR)/component-download-ordo.owl.owl $(TMPDIR)/component-download-ordo.owl.tmp.owl ; then echo "Component identical."; \
else echo "Component is different, updating." &&\
cp $(TMPDIR)/component-download-ordo.owl.owl $(TMPDIR)/component-download-ordo.owl.tmp.owl &&\
$(ROBOT) annotate -i $(TMPDIR)/component-download-ordo.owl.owl --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) -o $@; fi; fi

.PRECIOUS: $(COMPONENTSDIR)/ordo.owl
# ----------------------------------------
Expand All @@ -466,30 +526,33 @@ IMP=true # Global parameter to bypass import generation
MIR=true # Global parameter to bypass mirror generation
IMP_LARGE=true # Global parameter to bypass handling of large imports

ifeq ($(strip $(MIR)),true)


## ONTOLOGY: ro
.PHONY: mirror-ro
.PRECIOUS: $(MIRRORDIR)/ro.owl
mirror-ro: | $(TMPDIR)
if [ $(MIR) = true ] && [ $(IMP) = true ]; then curl -L $(OBOBASE)/ro.owl --create-dirs -o $(TMPDIR)/ro-download.owl --retry 4 --max-time 200 &&\
$(ROBOT) convert -i $(TMPDIR)/ro-download.owl -o [email protected] &&\
mv [email protected] $(TMPDIR)/[email protected]; fi
curl -L $(OBOBASE)/ro.owl --create-dirs -o $(TMPDIR)/ro-download.owl --retry 4 --max-time 200 && \
$(ROBOT) convert -i $(TMPDIR)/ro-download.owl -o $(TMPDIR)/[email protected]


## ONTOLOGY: omo
.PHONY: mirror-omo
.PRECIOUS: $(MIRRORDIR)/omo.owl
mirror-omo: | $(TMPDIR)
if [ $(MIR) = true ] && [ $(IMP) = true ]; then curl -L $(OBOBASE)/omo.owl --create-dirs -o $(TMPDIR)/omo-download.owl --retry 4 --max-time 200 &&\
$(ROBOT) convert -i $(TMPDIR)/omo-download.owl -o [email protected] &&\
mv [email protected] $(TMPDIR)/[email protected]; fi
curl -L $(OBOBASE)/omo.owl --create-dirs -o $(TMPDIR)/omo-download.owl --retry 4 --max-time 200 && \
$(ROBOT) convert -i $(TMPDIR)/omo-download.owl -o $(TMPDIR)/[email protected]


$(MIRRORDIR)/%.owl: mirror-% | $(MIRRORDIR)
if [ $(IMP) = true ] && [ $(MIR) = true ] && [ -f $(TMPDIR)/mirror-$*.owl ]; then if cmp -s $(TMPDIR)/mirror-$*.owl $@ ; then echo "Mirror identical, ignoring."; else echo "Mirrors different, updating." &&\
if [ -f $(TMPDIR)/mirror-$*.owl ]; then if cmp -s $(TMPDIR)/mirror-$*.owl $@ ; then echo "Mirror identical, ignoring."; else echo "Mirrors different, updating." &&\
cp $(TMPDIR)/mirror-$*.owl $@; fi; fi

else # MIR=false
$(MIRRORDIR)/%.owl:
@echo "Not refreshing $@ because the mirrorring pipeline is disabled (MIR=$(MIR))."
endif



Expand Down
7 changes: 5 additions & 2 deletions src/ontology/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
#
# See README-editors.md for more details.

set -e

if [ -f run.sh.conf ]; then
. ./run.sh.conf
fi
Expand Down Expand Up @@ -75,6 +77,7 @@ if [ x$ODK_DEBUG = xyes ]; then
echo "Running ${IMAGE} with ${ODK_JAVA_OPTS} of memory for ROBOT and Java-based pipeline steps."
TIMECMD="/usr/bin/time -f ### DEBUG STATS ###\nElapsed time: %E\nPeak memory: %M kb"
fi
rm -f tmp/debug.log

VOLUME_BIND=$PWD/../../:/work$ODK_SSH_BIND
WORK_DIR=/work/src/ontology
Expand All @@ -86,14 +89,14 @@ fi
if [ -n "$USE_SINGULARITY" ]; then

singularity exec --cleanenv $ODK_SINGULARITY_OPTIONS \
--env "ROBOT_JAVA_ARGS=$ODK_JAVA_OPTS,JAVA_OPTS=$ODK_JAVA_OPTS,SSH_AUTH_SOCK=/run/host-services/ssh-auth.sock,ODK_USER_ID=$ODK_USER_ID,ODK_GROUP_ID=$ODK_GROUP_ID" \
--env "ROBOT_JAVA_ARGS=$ODK_JAVA_OPTS,JAVA_OPTS=$ODK_JAVA_OPTS,SSH_AUTH_SOCK=/run/host-services/ssh-auth.sock,ODK_USER_ID=$ODK_USER_ID,ODK_GROUP_ID=$ODK_GROUP_ID,ODK_DEBUG=$ODK_DEBUG" \
--bind $VOLUME_BIND \
-W $WORK_DIR \
docker://obolibrary/$ODK_IMAGE:$ODK_TAG $TIMECMD "$@"
else
BIND_OPTIONS="-v $(echo $VOLUME_BIND | sed 's/,/ -v /')"
docker run $ODK_DOCKER_OPTIONS $BIND_OPTIONS -w $WORK_DIR \
-e ROBOT_JAVA_ARGS="$ODK_JAVA_OPTS" -e JAVA_OPTS="$ODK_JAVA_OPTS" -e SSH_AUTH_SOCK=/run/host-services/ssh-auth.sock -e ODK_USER_ID=$ODK_USER_ID -e ODK_GROUP_ID=$ODK_GROUP_ID \
-e ROBOT_JAVA_ARGS="$ODK_JAVA_OPTS" -e JAVA_OPTS="$ODK_JAVA_OPTS" -e SSH_AUTH_SOCK=/run/host-services/ssh-auth.sock -e ODK_USER_ID=$ODK_USER_ID -e ODK_GROUP_ID=$ODK_GROUP_ID -e ODK_DEBUG=$ODK_DEBUG \
--rm -ti obolibrary/$ODK_IMAGE:$ODK_TAG $TIMECMD "$@"
fi

Expand Down
4 changes: 4 additions & 0 deletions src/scripts/run-command.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
ODK_DEBUG_FILE=${ODK_DEBUG_FILE:-tmp/debug.log}
echo "Command: sh $@" >> $ODK_DEBUG_FILE
/usr/bin/time -a -o $ODK_DEBUG_FILE -f "Elapsed time: %E\nPeak memory: %M kb" /bin/sh "$@"
1 change: 1 addition & 0 deletions src/scripts/update_repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ mkdir -p $ROOTDIR/.github/workflows
cp -n target/$OID/.github/workflows/qc.yml $ROOTDIR/.github/workflows/qc.yml



cp target/$OID/.github/workflows/docs.yml $ROOTDIR/.github/workflows/docs.yml


Expand Down