diff --git a/.gitmodules b/.gitmodules index 6922aea9..3615a653 100644 --- a/.gitmodules +++ b/.gitmodules @@ -14,3 +14,7 @@ path = dependencies/CASE-unstable-2.0.0 url = https://github.com/casework/CASE-Archive.git branch = unstable-2.0.0 +[submodule "dependencies/UCO-Profile-Time"] + path = dependencies/UCO-Profile-Time + url = https://github.com/ucoProject/UCO-Profile-Time.git + branch = main diff --git a/Makefile b/Makefile index 23738d53..aeb22f83 100644 --- a/Makefile +++ b/Makefile @@ -61,6 +61,12 @@ all: \ $(MAKE) \ --directory dependencies/CASE-unstable-2.0.0 \ .git_submodule_init.done.log + # UCO-Profile-Time + test -r dependencies/UCO-Profile-Time/README.md \ + || git submodule update --init dependencies/UCO-Profile-Time + $(MAKE) \ + --directory dependencies/UCO-Profile-Time \ + .git_submodule_init.done.log # Retrieve rdf-toolkit.jar. $(MAKE) \ --directory dependencies/CASE-develop \ diff --git a/dependencies/UCO-Profile-Time b/dependencies/UCO-Profile-Time new file mode 160000 index 00000000..e6b497d4 --- /dev/null +++ b/dependencies/UCO-Profile-Time @@ -0,0 +1 @@ +Subproject commit e6b497d415430223c05a79638690f79a03727583 diff --git a/examples/illustrations/spear_phishing/postvisit.mk b/examples/illustrations/spear_phishing/postvisit.mk new file mode 100644 index 00000000..56396645 --- /dev/null +++ b/examples/illustrations/spear_phishing/postvisit.mk @@ -0,0 +1,51 @@ +#!/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) + +time_ttl := $(top_srcdir)/dependencies/UCO-Profile-Time/dependencies/CDO-Shapes-Time/dependencies/time.ttl +sh_time_ttl := $(top_srcdir)/dependencies/UCO-Profile-Time/dependencies/CDO-Shapes-Time/shapes/sh-time.ttl +profile_uco_time_ttl := $(top_srcdir)/dependencies/UCO-Profile-Time/ontology/uco-time.ttl +sh_uco_time_ttl := $(top_srcdir)/dependencies/UCO-Profile-Time/ontology/uco-time.ttl + +all: + +.uco-profiles.done.log: \ + $(profile_uco_time_ttl) \ + $(sh_time_ttl) \ + $(sh_uco_time_ttl) \ + $(time_ttl) \ + $(top_srcdir)/.venv.done.log \ + spear_phishing.json + source $(top_srcdir)/venv/bin/activate \ + && case_validate \ + --allow-infos \ + --ontology-graph $(profile_uco_time_ttl) \ + --ontology-graph $(sh_time_ttl) \ + --ontology-graph $(sh_uco_time_ttl) \ + --ontology-graph $(time_ttl) \ + --ontology-graph drafting.ttl \ + spear_phishing.json + touch $@ + +check: \ + .uco-profiles.done.log + +clean: + @rm -f \ + .uco-profiles.done.log diff --git a/examples/illustrations/src/illustration-nosrc.mk b/examples/illustrations/src/illustration-nosrc.mk index bc4d63ff..52f52ed5 100644 --- a/examples/illustrations/src/illustration-nosrc.mk +++ b/examples/illustrations/src/illustration-nosrc.mk @@ -85,6 +85,9 @@ all: \ test ! -r figures/Makefile \ || $(MAKE) \ --directory figures + test ! -r postvisit.mk \ + || $(MAKE) \ + --file postvisit.mk .PHONY: \ check-pytest @@ -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.) @@ -348,6 +355,10 @@ check-pytest: \ ) clean: + @test ! -r postvisit.mk \ + || $(MAKE) \ + --file postvisit.mk \ + clean @rm -f \ .drafting.ttl.*.log \ figures/*.dot \