Skip to content

Commit 73800db

Browse files
committed
Track CASE ontology as submodule
References: * [AC-210] Add validation command to CASE-Utilities-Python Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
1 parent 3b2ba8e commit 73800db

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[submodule "dependencies/CASE"]
2+
path = dependencies/CASE
3+
url = https://github.com/casework/CASE.git
14
[submodule "dependencies/CASE-Examples-QC"]
25
path = dependencies/CASE-Examples-QC
36
url = https://github.com/ajnelson-nist/CASE-Examples-QC.git

Makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ all:
3535
$(MAKE) \
3636
--directory dependencies/CASE-Examples-QC/tests \
3737
ontology_vocabulary.txt
38+
test -r dependencies/CASE/ontology/master/case.ttl \
39+
|| (git submodule init dependencies/CASE && git submodule update dependencies/CASE)
40+
test -r dependencies/CASE/ontology/master/case.ttl
3841
touch $@
3942

4043
check: \
@@ -50,6 +53,19 @@ clean:
5053
clean
5154
@rm -f \
5255
.git_submodule_init.done.log
56+
@test ! -r dependencies/CASE/README.md \
57+
|| @$(MAKE) \
58+
--directory dependencies/CASE \
59+
clean
60+
@# Restore CASE validation output files that do not affect CASE build process.
61+
@test ! -r dependencies/CASE/README.md \
62+
|| ( \
63+
cd dependencies/CASE \
64+
&& git checkout \
65+
-- \
66+
tests/examples \
67+
|| true \
68+
)
5369
@#Remove flag files that are normally set after deeper submodules and rdf-toolkit are downloaded.
5470
@rm -f \
5571
dependencies/CASE-Examples-QC/.git_submodule_init.done.log \

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ This project follows [SEMVER 2.0.0](https://semver.org/) where versions are decl
8686

8787
## Ontology versions supported
8888

89-
This repository supports the ontology versions that are linked as submodules in the [CASE Examples QC](https://github.com/ajnelson-nist/CASE-Examples-QC) repository. Currently, the ontology versions are:
89+
This repository supports the CASE ontology version that is linked as a submodule [here](dependencies/CASE). Currently, the ontology versions are:
9090

91-
* CASE - 0.4.0
92-
* UCO - 0.6.0
91+
* CASE - 0.5.0
92+
* UCO - 0.7.0
9393

9494

9595
## Repository locations

dependencies/CASE

Submodule CASE added at 6f55b7b

0 commit comments

Comments
 (0)