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
21 changes: 18 additions & 3 deletions case_utils/ontology/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,30 @@ $(case_srcdir)/.venv.done.log: \
touch -c $@
test -r $@

# Build monolith including transitive import closure outside of
# CDO-maintained ontologies, removing need for network retrieval for
# non-CDO class and property definitions.
case-$(case_version).ttl: \
$(case_srcdir)/.venv.done.log \
$(RDF_TOOLKIT_JAR)
$(MAKE) \
--directory $(case_srcdir)/tests \
case_monolithic.ttl
cp \
$(case_srcdir)/tests/case_monolithic.ttl \
$@
source $(case_srcdir)/venv/bin/activate \
&& rdfpipe \
--output-format turtle \
$(case_srcdir)/tests/case_monolithic.ttl \
$(uco_srcdir)/dependencies/collections-ontology/collections.owl \
$(uco_srcdir)/dependencies/error/docs/current/error.ttl \
> __$@
java -jar $(RDF_TOOLKIT_JAR) \
--inline-blank-nodes \
--source __$@ \
--source-format turtle \
--target _$@ \
--target-format turtle
rm __$@
mv _$@ $@

case-$(case_version)-subclasses.ttl: \
case-$(case_version).ttl \
Expand Down
16 changes: 16 additions & 0 deletions case_utils/ontology/case-1.0.0-subclasses.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,26 @@
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .

<http://purl.org/co/Bag>
rdfs:subClassOf <http://purl.org/co/Collection> ;
.

<http://purl.org/co/Collection>
rdfs:subClassOf owl:Thing ;
.

<http://purl.org/co/Item>
rdfs:subClassOf owl:Thing ;
.

<http://purl.org/co/ListItem>
rdfs:subClassOf <http://purl.org/co/Item> ;
.

<http://purl.org/co/Set>
rdfs:subClassOf <http://purl.org/co/Collection> ;
.

<https://ontology.caseontology.org/case/investigation/Attorney>
rdfs:subClassOf <https://ontology.unifiedcyberontology.org/uco/role/Role> ;
.
Expand Down
Loading