Skip to content

UCO Issue 651: Review time-aligning concepts in Spear Phishing example #153

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft
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
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@
path = dependencies/CASE-unstable-2.0.0
url = https://github.com/casework/CASE-Archive.git
branch = unstable-2.0.0
[submodule "dependencies/UCO-Profile-Time"]
path = dependencies/UCO-Profile-Time
url = https://github.com/ucoProject/UCO-Profile-Time.git
branch = main
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ all: \
$(MAKE) \
--directory dependencies/CASE-unstable-2.0.0 \
.git_submodule_init.done.log
# UCO-Profile-Time
test -r dependencies/UCO-Profile-Time/README.md \
|| git submodule update --init dependencies/UCO-Profile-Time
$(MAKE) \
--directory dependencies/UCO-Profile-Time \
.git_submodule_init.done.log
# Retrieve rdf-toolkit.jar.
$(MAKE) \
--directory dependencies/CASE-develop \
Expand Down
1 change: 1 addition & 0 deletions dependencies/UCO-Profile-Time
Submodule UCO-Profile-Time added at e6b497
21 changes: 19 additions & 2 deletions examples/illustrations/spear_phishing/drafting.ttl
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
@prefix drafting: <http://example.org/ontology/drafting/> .
@prefix ep: <http://www.semanticweb.org/OpenCyberSecurityAlliance/Ontology/EndpointProtection/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix time: <http://www.w3.org/2006/time#> .
@prefix uco-core: <https://ontology.unifiedcyberontology.org/uco/core/> .
@prefix unmapped: <urn:example:unmapped/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
Expand All @@ -12,6 +14,17 @@ uco-core:UcoThing-identifier-regex-shape
sh:deactivated "true"^^xsd:boolean ;
.

drafting:Perdurant
a owl:Class ;
rdfs:subClassOf uco-core:UcoObject ;
rdfs:isDefinedBy <https://github.com/ucoProject/UCO/issues/544> ;
.

drafting:intervalIn
a owl:ObjectProperty ;
rdfs:isDefinedBy <https://github.com/ucoProject/UCO/issues/651> ;
.

ep:bearerOf-shape
a sh:PropertyShape ;
sh:message "This property is unmapped and intended to be replaced."@en ;
Expand Down Expand Up @@ -107,8 +120,7 @@ ep:intervalIn-shape
sh:message "This property is unmapped and intended to be replaced."@en ;
sh:maxCount 0 ;
sh:path unmapped:intervalIn ;
sh:severity sh:Info ;
sh:targetClass uco-core:UcoThing ;
sh:targetSubjectsOf unmapped:intervalIn ;
.

ep:isCarrierOf-shape
Expand Down Expand Up @@ -194,3 +206,8 @@ ep:uses-shape
sh:targetClass uco-core:UcoThing ;
.

time:Interval
a owl:Class ;
rdfs:isDefinedBy time:2016 ;
.

51 changes: 51 additions & 0 deletions examples/illustrations/spear_phishing/postvisit.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#!/usr/bin/make -f

# Portions of this file contributed by NIST are governed by the
# following statement:
#
# This software was developed at the National Institute of Standards
# and Technology by employees of the Federal Government in the course
# of their official duties. Pursuant to Title 17 Section 105 of the
# United States Code, this software is not subject to copyright
# protection within the United States. NIST assumes no responsibility
# whatsoever for its use by other parties, and makes no guarantees,
# expressed or implied, about its quality, reliability, or any other
# characteristic.
#
# We would appreciate acknowledgement if the software is used.

SHELL := /bin/bash

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

time_ttl := $(top_srcdir)/dependencies/UCO-Profile-Time/dependencies/CDO-Shapes-Time/dependencies/time.ttl
sh_time_ttl := $(top_srcdir)/dependencies/UCO-Profile-Time/dependencies/CDO-Shapes-Time/shapes/sh-time.ttl
profile_uco_time_ttl := $(top_srcdir)/dependencies/UCO-Profile-Time/ontology/uco-time.ttl
sh_uco_time_ttl := $(top_srcdir)/dependencies/UCO-Profile-Time/ontology/uco-time.ttl

all:

.uco-profiles.done.log: \
$(profile_uco_time_ttl) \
$(sh_time_ttl) \
$(sh_uco_time_ttl) \
$(time_ttl) \
$(top_srcdir)/.venv.done.log \
spear_phishing.json
source $(top_srcdir)/venv/bin/activate \
&& case_validate \
--allow-infos \
--ontology-graph $(profile_uco_time_ttl) \
--ontology-graph $(sh_time_ttl) \
--ontology-graph $(sh_uco_time_ttl) \
--ontology-graph $(time_ttl) \
--ontology-graph drafting.ttl \
spear_phishing.json
touch $@

check: \
.uco-profiles.done.log

clean:
@rm -f \
.uco-profiles.done.log
Loading
Loading