Skip to content

Commit

Permalink
Change OWL shapes review to use CDO shapes separated from UCO
Browse files Browse the repository at this point in the history
A follow-on patch will regenerate Make-managed files.

Signed-off-by: Alex Nelson <[email protected]>
  • Loading branch information
ajnelson-nist committed Sep 11, 2023
1 parent a144470 commit 0a5ed8b
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
path = dependencies/CDO-Shapes-FOAF
url = https://github.com/Cyber-Domain-Ontology/CDO-Shapes-FOAF.git
branch = main
[submodule "dependencies/UCO"]
path = dependencies/UCO
url = https://github.com/ucoProject/UCO.git
branch = master
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ all: \
.git_submodule_init_imports.done.log
git submodule update \
--init
$(MAKE) \
--directory dependencies/UCO \
.git_submodule_init.done.log \
.lib.done.log
touch $@

.venv.done.log: \
Expand Down
2 changes: 1 addition & 1 deletion dependencies/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ SHELL := /bin/bash

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

uco_srcdir := $(top_srcdir)/dependencies/CDO-Shapes-FOAF/dependencies/UCO
uco_srcdir := $(top_srcdir)/dependencies/UCO

all: \
catalog-v001.xml
Expand Down
1 change: 1 addition & 0 deletions dependencies/UCO
Submodule UCO added at 5bb924
2 changes: 1 addition & 1 deletion etc/domain_directories.tsv
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
https://example.org/ ${top_srcdir}/ontology/
https://ontology.unifiedcyberontology.org/ ${top_srcdir}/dependencies/CDO-Shapes-FOAF/dependencies/UCO/ontology/
https://ontology.unifiedcyberontology.org/ ${top_srcdir}/dependencies/UCO/ontology/
2 changes: 1 addition & 1 deletion ontology/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ SHELL := /bin/bash

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

uco_srcdir := $(top_srcdir)/dependencies/CDO-Shapes-FOAF/dependencies/UCO
uco_srcdir := $(top_srcdir)/dependencies/UCO

RDF_TOOLKIT_JAR := $(uco_srcdir)/lib/rdf-toolkit.jar

Expand Down
13 changes: 8 additions & 5 deletions tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ SHELL := /bin/bash

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

uco_srcdir := $(top_srcdir)/dependencies/CDO-Shapes-FOAF/dependencies/UCO
cdo_owl_srcdir := $(top_srcdir)/dependencies/CDO-Shapes-FOAF/dependencies/CDO-Shapes-OWL

uco_srcdir := $(top_srcdir)/dependencies/UCO

profile_ttls := $(wildcard $(top_srcdir)/ontology/uco-*.ttl)

Expand Down Expand Up @@ -57,10 +59,11 @@ clean:
monolithic.ttl

monolithic.ttl: \
$(top_srcdir)/.venv.done.log \
$(top_srcdir)/dependencies/imports-transitive.ttl \
$(cdo_owl_srcdir)/shapes/sh-owl.ttl \
$(profile_ttls) \
$(shape_ttls)
$(shape_ttls) \
$(top_srcdir)/.venv.done.log \
$(top_srcdir)/dependencies/imports-transitive.ttl
$(MAKE) \
--directory $(uco_srcdir) \
.venv.done.log
Expand All @@ -79,6 +82,6 @@ monolithic.ttl: \
> _$@
source $(top_srcdir)/venv/bin/activate \
&& pyshacl \
--shacl $(uco_srcdir)/ontology/owl/owl.ttl \
--shacl $(cdo_owl_srcdir)/shapes/sh-owl.ttl \
_$@
mv _$@ $@

0 comments on commit 0a5ed8b

Please sign in to comment.