Skip to content

Commit 0b19779

Browse files
authored
Merge pull request #159 from casework/release-0.16.0
Release 0.16.0
2 parents b722e77 + 6f13ad8 commit 0b19779

22 files changed

+24294
-100
lines changed

Makefile

+12-1
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,23 @@ clean:
116116
|| $(MAKE) \
117117
--directory dependencies/CASE \
118118
clean
119-
@# Restore CASE validation output files that do not affect CASE build process.
119+
@# Restore CASE validation and catalog output files that do not affect CASE build process.
120120
@test ! -r dependencies/CASE/README.md \
121121
|| ( \
122122
cd dependencies/CASE \
123123
&& git checkout \
124124
-- \
125+
ontology \
126+
tests/examples \
127+
|| true \
128+
)
129+
@# Restore UCO catalog output files that do not affect CASE build process.
130+
@test ! -r dependencies/CASE/dependencies/UCO/README.md \
131+
|| ( \
132+
cd dependencies/CASE/dependencies/UCO \
133+
&& git checkout \
134+
-- \
135+
ontology \
125136
tests/examples \
126137
|| true \
127138
)

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ case_sparql_select output.md input.sparql input.json [input-2.json ...]
122122

123123
### `local_uuid`
124124

125-
_Migration:_ Functionality previously in [`case_utils.local_uuid`](case_utils/local_uuid.py) has been exported to [`cdo-local-uuid`](https://github.com/Cyber-Domain-Ontology/CDO-Utility-Local-UUID). A future `case-utils` release will drop this re-export.
125+
_Migration:_ Functionality previously in [`case_utils.local_uuid`](case_utils/local_uuid.py) has been exported to [`cdo-local-uuid`](https://github.com/Cyber-Domain-Ontology/CDO-Utility-Local-UUID).
126126

127127

128128
### Built versions

case_utils/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
#
1515
# We would appreciate acknowledgement if the software is used.
1616

17-
__version__ = "0.15.0"
17+
__version__ = "0.16.0"

case_utils/case_validate/validate_utils.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#
1515
# We would appreciate acknowledgement if the software is used.
1616

17-
__version__ = "0.2.0"
17+
__version__ = "0.3.0"
1818

1919
import importlib
2020
import logging
@@ -197,10 +197,18 @@ def disable_tbox_review(graph: rdflib.Graph) -> None:
197197
"Disjointedness-AP-OP-shape",
198198
"Disjointedness-C-DT-shape",
199199
"Disjointedness-DP-OP-shape",
200-
"List-shape",
201200
"ObjectProperty-shacl-constraints-shape",
201+
"Sequence-shape",
202+
"disjointUnionOf-subjects-shape",
203+
"hasKey-subjects-shape",
204+
"intersectionOf-subjects-shape",
205+
"onProperties-subjects-shape",
206+
"oneOf-subjects-shape",
202207
"ontologyIRI-versionIRI-prerequisite-shape",
208+
"propertyChainAxiom-subjects-shape",
209+
"unionOf-subjects-shape",
203210
"versionIRI-nodeKind-shape",
211+
"withRestrictions-subjects-shape",
204212
}:
205213
n_tbox_shape = ns_uco_owl[tbox_shape_basename]
206214
graph.add((n_tbox_shape, NS_SH.deactivated, l_true))

case_utils/local_uuid.py

-32
This file was deleted.

case_utils/ontology/Makefile

+18-3
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,30 @@ $(case_srcdir)/.venv.done.log: \
4040
touch -c $@
4141
test -r $@
4242

43+
# Build monolith including transitive import closure outside of
44+
# CDO-maintained ontologies, removing need for network retrieval for
45+
# non-CDO class and property definitions.
4346
case-$(case_version).ttl: \
4447
$(case_srcdir)/.venv.done.log \
4548
$(RDF_TOOLKIT_JAR)
4649
$(MAKE) \
4750
--directory $(case_srcdir)/tests \
4851
case_monolithic.ttl
49-
cp \
50-
$(case_srcdir)/tests/case_monolithic.ttl \
51-
$@
52+
source $(case_srcdir)/venv/bin/activate \
53+
&& rdfpipe \
54+
--output-format turtle \
55+
$(case_srcdir)/tests/case_monolithic.ttl \
56+
$(uco_srcdir)/dependencies/collections-ontology/collections.owl \
57+
$(uco_srcdir)/dependencies/error/docs/current/error.ttl \
58+
> __$@
59+
java -jar $(RDF_TOOLKIT_JAR) \
60+
--inline-blank-nodes \
61+
--source __$@ \
62+
--source-format turtle \
63+
--target _$@ \
64+
--target-format turtle
65+
rm __$@
66+
mv _$@ $@
5267

5368
case-$(case_version)-subclasses.ttl: \
5469
case-$(case_version).ttl \

case_utils/ontology/case-1.0.0-subclasses.ttl

+16
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,26 @@
33
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
44
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .
55

6+
<http://purl.org/co/Bag>
7+
rdfs:subClassOf <http://purl.org/co/Collection> ;
8+
.
9+
10+
<http://purl.org/co/Collection>
11+
rdfs:subClassOf owl:Thing ;
12+
.
13+
14+
<http://purl.org/co/Item>
15+
rdfs:subClassOf owl:Thing ;
16+
.
17+
618
<http://purl.org/co/ListItem>
719
rdfs:subClassOf <http://purl.org/co/Item> ;
820
.
921

22+
<http://purl.org/co/Set>
23+
rdfs:subClassOf <http://purl.org/co/Collection> ;
24+
.
25+
1026
<https://ontology.caseontology.org/case/investigation/Attorney>
1127
rdfs:subClassOf <https://ontology.unifiedcyberontology.org/uco/role/Role> ;
1228
.

0 commit comments

Comments
 (0)