Skip to content
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
12 changes: 12 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,15 @@
path = dependencies/CASE-unstable-2.0.0
url = https://github.com/casework/CASE-Archive.git
branch = unstable-2.0.0
[submodule "dependencies/CDO-Shapes-BFO"]
path = dependencies/CDO-Shapes-BFO
url = https://github.com/Cyber-Domain-Ontology/CDO-Shapes-BFO.git
branch = main
[submodule "dependencies/CDO-Shapes-Time"]
path = dependencies/CDO-Shapes-Time
url = https://github.com/Cyber-Domain-Ontology/CDO-Shapes-Time.git
branch = main
[submodule "dependencies/CDO-Shapes-gufo"]
path = dependencies/CDO-Shapes-gufo
url = https://github.com/Cyber-Domain-Ontology/CDO-Shapes-gufo.git
branch = main
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,21 @@ all: \
$(MAKE) \
--directory dependencies/CASE-unstable-2.0.0 \
.git_submodule_init.done.log
# CDO-Shapes-BFO
test -r dependencies/CDO-Shapes-BFO/README.md \
|| git submodule update --init dependencies/CDO-Shapes-BFO
test -r dependencies/CDO-Shapes-BFO/README.md \
|| (echo "ERROR:Makefile:CDO-Shapes-BFO submodule README.md file not found, even though CDO-Shapes-BFO submodule initialized." >&2 ; exit 2)
# CDO-Shapes-Time
test -r dependencies/CDO-Shapes-Time/README.md \
|| git submodule update --init dependencies/CDO-Shapes-Time
test -r dependencies/CDO-Shapes-Time/README.md \
|| (echo "ERROR:Makefile:CDO-Shapes-Time submodule README.md file not found, even though CDO-Shapes-Time submodule initialized." >&2 ; exit 2)
# CDO-Shapes-gufo
test -r dependencies/CDO-Shapes-gufo/README.md \
|| git submodule update --init dependencies/CDO-Shapes-gufo
test -r dependencies/CDO-Shapes-gufo/README.md \
|| (echo "ERROR:Makefile:CDO-Shapes-gufo submodule README.md file not found, even though CDO-Shapes-gufo submodule initialized." >&2 ; exit 2)
# Retrieve rdf-toolkit.jar.
$(MAKE) \
--directory dependencies/CASE-develop \
Expand Down
1 change: 1 addition & 0 deletions dependencies/CDO-Shapes-BFO
Submodule CDO-Shapes-BFO added at b25016
1 change: 1 addition & 0 deletions dependencies/CDO-Shapes-Time
Submodule CDO-Shapes-Time added at 6a5a0b
1 change: 1 addition & 0 deletions dependencies/CDO-Shapes-gufo
Submodule CDO-Shapes-gufo added at 9a41df
55 changes: 55 additions & 0 deletions examples/illustrations/existence_intervals/postvisit.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
#!/usr/bin/make -f

# Portions of this file contributed by NIST are governed by the
# following statement:
#
# This software was developed at the National Institute of Standards
# and Technology by employees of the Federal Government in the course
# of their official duties. Pursuant to Title 17 Section 105 of the
# United States Code, this software is not subject to copyright
# protection within the United States. NIST assumes no responsibility
# whatsoever for its use by other parties, and makes no guarantees,
# expressed or implied, about its quality, reliability, or any other
# characteristic.
#
# We would appreciate acknowledgement if the software is used.

SHELL := /bin/bash

top_srcdir := $(shell cd ../../.. ; pwd)

bfo_ttl := $(top_srcdir)/dependencies/CDO-Shapes-BFO/dependencies/BFO.ttl
sh_bfo_ttl := $(top_srcdir)/dependencies/CDO-Shapes-BFO/shapes/sh-bfo.ttl

gufo_ttl := $(top_srcdir)/dependencies/CDO-Shapes-gufo/dependencies/gufo.ttl
sh_gufo_ttl := $(top_srcdir)/dependencies/CDO-Shapes-gufo/shapes/sh-gufo.ttl

time_ttl := $(top_srcdir)/dependencies/CDO-Shapes-Time/dependencies/time.ttl
sh_time_ttl := $(top_srcdir)/dependencies/CDO-Shapes-Time/shapes/sh-time.ttl

all:

.cdo-shapes.done.log: \
$(bfo_ttl) \
$(gufo_ttl) \
$(sh_bfo_ttl) \
$(sh_gufo_ttl) \
$(sh_time_ttl) \
$(time_ttl) \
$(top_srcdir)/.venv.done.log \
existence_intervals.json
source $(top_srcdir)/venv/bin/activate \
&& case_validate \
--ontology-graph $(bfo_ttl) \
--ontology-graph $(gufo_ttl) \
--ontology-graph $(sh_bfo_ttl) \
--ontology-graph $(sh_gufo_ttl) \
--ontology-graph $(sh_time_ttl) \
--ontology-graph $(time_ttl) \
existence_intervals.json
touch $@

check: \
.cdo-shapes.done.log

clean:
11 changes: 11 additions & 0 deletions examples/illustrations/src/illustration-nosrc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ all: \
test ! -r figures/Makefile \
|| $(MAKE) \
--directory figures
test ! -r postvisit.mk \
|| $(MAKE) \
--file postvisit.mk

.PHONY: \
check-pytest
Expand Down Expand Up @@ -335,6 +338,10 @@ check: \
$(example_name)_validation-develop-2.0.0.ttl \
$(example_name)_validation-unstable.ttl \
$(example_name)_validation-unstable-2.0.0.ttl
test ! -r postvisit.mk \
|| $(MAKE) \
--file postvisit.mk \
check

# Run pytest tests only if any are written.
# (Pytest exits in an error state if called with no tests found.)
Expand All @@ -348,6 +355,10 @@ check-pytest: \
)

clean:
@test ! -r postvisit.mk \
|| $(MAKE) \
--file postvisit.mk \
clean
@rm -f \
.drafting.ttl.*.log \
figures/*.dot \
Expand Down
Loading