Skip to content

Commit 58bd629

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 58bd629

File tree

4 files changed

+22
-3
lines changed

4 files changed

+22
-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: 15 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,18 @@ clean:
5053
clean
5154
@rm -f \
5255
.git_submodule_init.done.log
56+
@$(MAKE) \
57+
--directory dependencies/CASE \
58+
clean
59+
@# Restore CASE validation output files that do not affect CASE build process.
60+
@test ! -r dependencies/CASE/README.md \
61+
|| ( \
62+
cd dependencies/CASE \
63+
&& git checkout \
64+
-- \
65+
tests/examples \
66+
|| true \
67+
)
5368
@#Remove flag files that are normally set after deeper submodules and rdf-toolkit are downloaded.
5469
@rm -f \
5570
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)