Skip to content

Commit c0912b3

Browse files
committed
Fork CASE-Profile-Example from UCO-Profile-Example
A follow-on patch will regenerate Make-managed files. Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
1 parent 9d0b780 commit c0912b3

File tree

14 files changed

+43
-34
lines changed

14 files changed

+43
-34
lines changed

.gitmodules

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[submodule "dependencies/UCO"]
2-
path = dependencies/UCO
3-
url = https://github.com/ucoProject/UCO.git
1+
[submodule "dependencies/CASE"]
2+
path = dependencies/CASE
3+
url = https://github.com/casework/CASE.git
44
branch = master

CONTRIBUTE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ Profile repositories are started with an in-common Git history, rather than rely
1414

1515
To create a new profile repository for the ontology with short name `Foo`, we suggest:
1616

17-
1. Clone the upstream example repository: `git clone https://github.com/ucoProject/UCO-Profile-Example.git UCO-Profile-Foo`.
17+
1. Clone the upstream example repository: `git clone https://github.com/casework/CASE-Profile-Example.git CASE-Profile-Foo`.
1818
1. Substitute all references to the "example" ontology with the desired ontology. Generally, this is handled by:
1919
1. Update the [README](README.md) to change the name of the repository. (Minimally, the title line should be revised.)
2020
1. Addressing the "TODOs" in [`dependencies/Makefile`](dependencies/Makefile)
2121
1. Updating the TSV files under [`etc/`](etc/). This is to support local-file editing with some ontology tooling (developed for [UCO Issue 449](https://github.com/ucoProject/UCO/issues/449)). [These lines](https://github.com/ucoProject/UCO/blob/1.2.0/src/create-catalog-v001.xml.py#L68-L77) describe the file formats.
22-
1. Renaming the [ontology file under `/ontology`](ontology/uco-example.ttl), and updating its contents.
23-
1. Renaming the [shapes file under `/shapes`](shapes/sh-uco-example.ttl), and updating its contents. If the profile does not require shapes, the directory `shapes` can be removed.
22+
1. Renaming the [ontology file under `/ontology`](ontology/case-example.ttl), and updating its contents.
23+
1. Renaming the [shapes file under `/shapes`](shapes/sh-case-example.ttl), and updating its contents. If the profile does not require shapes, the directory `shapes` can be removed.
2424
1. Updating the [exemplars file under `/tests`](tests/exemplars.ttl) to use all classes mapped in the profile ontology.
2525
1. After all of the above edits are completed, running `make check` from the top source directory should confirm Turtle files are normalized and unit tests pass.
2626
1. Push the updated profile to a new repository.

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ all: \
4949
git submodule update \
5050
--init
5151
$(MAKE) \
52-
--directory dependencies/UCO \
52+
--directory dependencies/CASE \
5353
.git_submodule_init.done.log \
5454
.lib.done.log
5555
touch $@
@@ -169,7 +169,7 @@ check-supply-chain-cdo-profile:
169169
_CHECK_SUPPLY_CHAIN_upstream \
170170
|| git remote add \
171171
_CHECK_SUPPLY_CHAIN_upstream \
172-
https://github.com/ucoProject/UCO-Profile-Example.git
172+
https://github.com/casework/CASE-Profile-Example.git
173173
git fetch \
174174
_CHECK_SUPPLY_CHAIN_upstream
175175
@echo "DEBUG:Makefile:$$(git merge-base _CHECK_SUPPLY_CHAIN_upstream/base HEAD) (merge-base)" >&2

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# UCO Profile: Example
1+
# CASE Profile: Example
22

33
![Repository Status](https://img.shields.io/badge/-exploratory-informational)
44

5-
This repository explores UCO under a usage profile assuming adoption of [Example](http://example.org/ontology).
5+
This repository explores CASE under a usage profile assuming adoption of [Example](http://example.org/ontology).
66

77
The CDO Profile development rationale and design is [here](https://cyberdomainontology.org/ontology/development/#profiles).
88

dependencies/CASE

Submodule CASE added at fa84ffb

dependencies/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ SHELL := /bin/bash
1818

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

21-
uco_srcdir := $(top_srcdir)/dependencies/UCO
21+
case_srcdir := CASE
22+
23+
uco_srcdir := $(case_srcdir)/dependencies/UCO
2224

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

@@ -65,7 +67,7 @@ example.ttl: \
6567
$(top_srcdir)/.venv.done.log
6668
source $(top_srcdir)/venv/bin/activate \
6769
&& pyshacl \
68-
--shacl UCO/ontology/owl/owl.ttl \
70+
--shacl $(uco_srcdir)/ontology/owl/owl.ttl \
6971
$<
7072
java -jar $(RDF_TOOLKIT_JAR) \
7173
--inline-blank-nodes \

dependencies/UCO

Lines changed: 0 additions & 1 deletion
This file was deleted.

etc/domain_directories.tsv

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
https://example.org/ ${top_srcdir}/ontology/
2-
https://ontology.unifiedcyberontology.org/ ${top_srcdir}/dependencies/UCO/ontology/
2+
https://ontology.caseontology.org/ ${top_srcdir}/dependencies/CASE/ontology/
3+
https://ontology.unifiedcyberontology.org/ ${top_srcdir}/dependencies/CASE/dependencies/UCO/ontology/

ontology/Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ SHELL := /bin/bash
1818

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

21-
uco_srcdir := $(top_srcdir)/dependencies/UCO
21+
case_srcdir := $(top_srcdir)/dependencies/CASE
22+
23+
uco_srcdir := $(case_srcdir)/dependencies/UCO
2224

2325
test_pys := $(wildcard test_*.py)
2426

25-
ttl_basenames := $(wildcard uco-*.ttl)
27+
ttl_basenames := $(wildcard case-*.ttl)
2628

2729
all: \
2830
catalog-v001.xml
@@ -37,16 +39,16 @@ all: \
3739
touch $@
3840

3941
catalog-v001.xml: \
42+
$(case_srcdir)/ontology/master/catalog-v001.xml \
4043
$(top_srcdir)/.venv.done.log \
4144
$(top_srcdir)/etc/domain_directories.tsv \
4245
$(top_srcdir)/etc/dependency_files.tsv \
4346
$(ttl_basenames) \
44-
$(uco_srcdir)/ontology/uco/master/catalog-v001.xml \
4547
$(uco_srcdir)/src/create-catalog-v001.xml.py
4648
rm -f _$@
4749
source $(top_srcdir)/venv/bin/activate \
4850
&& python3 $(uco_srcdir)/src/create-catalog-v001.xml.py \
49-
--catalog-xml $(uco_srcdir)/ontology/uco/master/catalog-v001.xml \
51+
--catalog-xml $(case_srcdir)/ontology/master/catalog-v001.xml \
5052
_$@ \
5153
$(top_srcdir)/etc/domain_directories.tsv \
5254
$(top_srcdir)/etc/dependency_files.tsv \
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# imports: http://example.org/ontology/example/0.0.1
2-
# imports: https://ontology.unifiedcyberontology.org/uco/uco/1.3.0
2+
# imports: https://ontology.caseontology.org/case/case/1.3.0
33

44
@prefix drafting: <http://example.org/ontology/drafting/> .
55
@prefix ex: <http://example.org/ontology/example/> .
@@ -9,11 +9,11 @@
99
@prefix uco-core: <https://ontology.unifiedcyberontology.org/uco/core/> .
1010
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
1111

12-
<http://example.org/ontology/uco-example>
12+
<http://example.org/ontology/case-example>
1313
a owl:Ontology ;
1414
owl:imports
1515
ex:0.0.1 ,
16-
<https://ontology.unifiedcyberontology.org/uco/uco/1.3.0>
16+
<https://ontology.caseontology.org/case/case/1.3.0>
1717
;
1818
.
1919

0 commit comments

Comments
 (0)