Skip to content

Commit 7655779

Browse files
Merge pull request #61 from casework/test_against_2_0_0
Test catalog against CASE 2.0.0 branches
2 parents aa8c13a + 5a5248a commit 7655779

9 files changed

+140
-1
lines changed

.gitmodules

+8
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,18 @@
66
path = dependencies/CASE-develop
77
url = https://github.com/casework/CASE.git
88
branch = develop
9+
[submodule "dependencies/CASE-develop-2.0.0"]
10+
path = dependencies/CASE-develop-2.0.0
11+
url = https://github.com/casework/CASE.git
12+
branch = develop-2.0.0
913
[submodule "dependencies/CASE-unstable"]
1014
path = dependencies/CASE-unstable
1115
url = https://github.com/casework/CASE-Archive.git
1216
branch = unstable
17+
[submodule "dependencies/CASE-unstable-2.0.0"]
18+
path = dependencies/CASE-unstable-2.0.0
19+
url = https://github.com/casework/CASE-Archive.git
20+
branch = unstable-2.0.0
1321
[submodule "dependencies/cito"]
1422
path = dependencies/cito
1523
url = https://github.com/SPAROntologies/cito.git

Makefile

+16
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ all: \
5656
$(MAKE) \
5757
--directory dependencies/CASE-develop \
5858
.git_submodule_init.done.log
59+
# CASE-develop-2.0.0
60+
test -r dependencies/CASE-develop-2.0.0/README.md \
61+
|| git submodule update \
62+
--init \
63+
dependencies/CASE-develop-2.0.0
64+
$(MAKE) \
65+
--directory dependencies/CASE-develop-2.0.0 \
66+
.git_submodule_init.done.log
5967
# CASE-unstable
6068
test -r dependencies/CASE-unstable/README.md \
6169
|| git submodule update \
@@ -64,6 +72,14 @@ all: \
6472
$(MAKE) \
6573
--directory dependencies/CASE-unstable \
6674
.git_submodule_init.done.log
75+
# CASE-unstable-2.0.0
76+
test -r dependencies/CASE-unstable-2.0.0/README.md \
77+
|| git submodule update \
78+
--init \
79+
dependencies/CASE-unstable-2.0.0
80+
$(MAKE) \
81+
--directory dependencies/CASE-unstable-2.0.0 \
82+
.git_submodule_init.done.log
6783
# cito
6884
test -r dependencies/cito/README.md \
6985
|| git submodule update \
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
2+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
3+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
4+
@prefix sh: <http://www.w3.org/ns/shacl#> .
5+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
6+
7+
[]
8+
a sh:ValidationReport ;
9+
sh:conforms "true"^^xsd:boolean ;
10+
.
11+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
2+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
3+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
4+
@prefix sh: <http://www.w3.org/ns/shacl#> .
5+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
6+
7+
[]
8+
a sh:ValidationReport ;
9+
sh:conforms "true"^^xsd:boolean ;
10+
.
11+

catalog/postvisit.mk

+55-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ kb_all_dependencies := \
3737
all: \
3838
README.md \
3939
kb-all_validation-develop.ttl \
40-
kb-all_validation-unstable.ttl
40+
kb-all_validation-develop-2.0.0.ttl \
41+
kb-all_validation-unstable.ttl \
42+
kb-all_validation-unstable-2.0.0.ttl
4143

4244
README.md: \
4345
README.md.in \
@@ -135,6 +137,32 @@ kb-all_validation-develop.ttl: \
135137
rm __$@
136138
mv _$@ $@
137139

140+
kb-all_validation-develop-2.0.0.ttl: \
141+
$(top_srcdir)/dependencies/CASE-develop-2.0.0.ttl \
142+
kb-all.ttl
143+
rm -f __$@ _$@
144+
source $(top_srcdir)/venv/bin/activate \
145+
&& case_validate \
146+
--allow-infos \
147+
--built-version none \
148+
--format turtle \
149+
--inference rdfs \
150+
--ontology-graph $(top_srcdir)/dependencies/CASE-develop-2.0.0.ttl \
151+
--ontology-graph $(top_srcdir)/dependencies/dependencies.ttl \
152+
--ontology-graph $(top_srcdir)/ontology/case-corpora.ttl \
153+
--ontology-graph $(top_srcdir)/shapes/local.ttl \
154+
--ontology-graph $(top_srcdir)/shapes/shapes.ttl \
155+
--output __$@ \
156+
kb-all.ttl
157+
java -jar $(rdf_toolkit_jar) \
158+
--inline-blank-nodes \
159+
--source-format turtle \
160+
--source __$@ \
161+
--target-format turtle \
162+
--target _$@
163+
rm __$@
164+
mv _$@ $@
165+
138166
kb-all_validation-unstable.ttl: \
139167
$(top_srcdir)/dependencies/CASE-unstable.ttl \
140168
kb-all.ttl
@@ -161,6 +189,32 @@ kb-all_validation-unstable.ttl: \
161189
rm __$@
162190
mv _$@ $@
163191

192+
kb-all_validation-unstable-2.0.0.ttl: \
193+
$(top_srcdir)/dependencies/CASE-unstable-2.0.0.ttl \
194+
kb-all.ttl
195+
rm -f __$@ _$@
196+
source $(top_srcdir)/venv/bin/activate \
197+
&& case_validate \
198+
--allow-infos \
199+
--built-version none \
200+
--format turtle \
201+
--inference rdfs \
202+
--ontology-graph $(top_srcdir)/dependencies/CASE-unstable-2.0.0.ttl \
203+
--ontology-graph $(top_srcdir)/dependencies/dependencies.ttl \
204+
--ontology-graph $(top_srcdir)/ontology/case-corpora.ttl \
205+
--ontology-graph $(top_srcdir)/shapes/local.ttl \
206+
--ontology-graph $(top_srcdir)/shapes/shapes.ttl \
207+
--output __$@ \
208+
kb-all.ttl
209+
java -jar $(rdf_toolkit_jar) \
210+
--inline-blank-nodes \
211+
--source-format turtle \
212+
--source __$@ \
213+
--target-format turtle \
214+
--target _$@
215+
rm __$@
216+
mv _$@ $@
217+
164218
kb-datasets.ttl: \
165219
$(kb_datasets_dependencies) \
166220
$(rdf_toolkit_jar) \

dependencies/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
CASE-develop.ttl
2+
CASE-develop-2.0.0.ttl
23
CASE-unstable.ttl
4+
CASE-unstable-2.0.0.ttl

dependencies/CASE-develop-2.0.0

Submodule CASE-develop-2.0.0 added at 8c58d65

dependencies/CASE-unstable-2.0.0

Submodule CASE-unstable-2.0.0 added at cb98994

dependencies/Makefile

+35
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,21 @@ case_develop_ttls := \
2424
$(wildcard CASE-develop/dependencies/UCO/ontology/*/*.ttl) \
2525
$(wildcard CASE-develop/dependencies/UCO/ontology/uco/*/*.ttl)
2626

27+
case_develop_2_0_0_ttls := \
28+
$(wildcard CASE-develop-2.0.0/ontology/*/*.ttl) \
29+
$(wildcard CASE-develop-2.0.0/dependencies/UCO/ontology/*/*.ttl) \
30+
$(wildcard CASE-develop-2.0.0/dependencies/UCO/ontology/uco/*/*.ttl)
31+
2732
case_unstable_ttls := \
2833
$(wildcard CASE-unstable/ontology/*/*.ttl) \
2934
$(wildcard CASE-unstable/dependencies/UCO/ontology/*/*.ttl) \
3035
$(wildcard CASE-unstable/dependencies/UCO/ontology/uco/*/*.ttl)
3136

37+
case_unstable_2_0_0_ttls := \
38+
$(wildcard CASE-unstable-2.0.0/ontology/*/*.ttl) \
39+
$(wildcard CASE-unstable-2.0.0/dependencies/UCO/ontology/*/*.ttl) \
40+
$(wildcard CASE-unstable-2.0.0/dependencies/UCO/ontology/uco/*/*.ttl)
41+
3242
dependent_ontology_files := \
3343
cito.ttl \
3444
cpannotationschema.ttl \
@@ -53,7 +63,9 @@ rdf_toolkit_jar := $(top_srcdir)/dependencies/CASE/dependencies/UCO/lib/rdf-tool
5363

5464
all: \
5565
CASE-develop.ttl \
66+
CASE-develop-2.0.0.ttl \
5667
CASE-unstable.ttl \
68+
CASE-unstable-2.0.0.ttl \
5769
catalog-v001.xml \
5870
dcat-us.jsonld
5971

@@ -68,16 +80,39 @@ CASE-develop.ttl: \
6880
> _$@
6981
mv _$@ $@
7082

83+
CASE-develop-2.0.0.ttl: \
84+
$(top_srcdir)/.venv.done.log \
85+
$(case_develop_2_0_0_ttls)
86+
rm -f _$@
87+
source $(top_srcdir)/venv/bin/activate \
88+
&& rdfpipe \
89+
--output-format turtle \
90+
$(case_develop_2_0_0_ttls) \
91+
> _$@
92+
mv _$@ $@
93+
7194
CASE-unstable.ttl: \
7295
$(top_srcdir)/.venv.done.log \
7396
$(case_unstable_ttls)
7497
rm -f _$@
7598
source $(top_srcdir)/venv/bin/activate \
7699
&& rdfpipe \
100+
--output-format turtle \
77101
$(case_unstable_ttls) \
78102
> _$@
79103
mv _$@ $@
80104

105+
CASE-unstable-2.0.0.ttl: \
106+
$(top_srcdir)/.venv.done.log \
107+
$(case_unstable_2_0_0_ttls)
108+
rm -f _$@
109+
source $(top_srcdir)/venv/bin/activate \
110+
&& rdfpipe \
111+
--output-format turtle \
112+
$(case_unstable_2_0_0_ttls) \
113+
> _$@
114+
mv _$@ $@
115+
81116
catalog-v001.xml: \
82117
$(case_srcdir)/ontology/master/catalog-v001.xml \
83118
$(top_srcdir)/.venv.done.log \

0 commit comments

Comments
 (0)