diff --git a/Makefile b/Makefile index 15fa466..e50c231 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,8 @@ all: \ .git_submodule_init.done.log \ dependencies/UCO/dependencies/CASE-Utility-SHACL-Inheritance-Reviewer/case_shacl_inheritance_reviewer/__init__.py \ dependencies/UCO/dependencies/CASE-Utility-SHACL-Inheritance-Reviewer/setup.cfg \ - dependencies/UCO/requirements.txt + dependencies/UCO/requirements.txt \ + requirements.txt rm -rf venv $(PYTHON3) -m venv \ venv @@ -62,6 +63,9 @@ all: \ source venv/bin/activate \ && pip install \ --requirement dependencies/UCO/requirements.txt + source venv/bin/activate \ + && pip install \ + --requirement requirements.txt touch $@ check: \ diff --git a/ontology/investigation/investigation.ttl b/ontology/investigation/investigation.ttl index fa1b970..76a2f84 100644 --- a/ontology/investigation/investigation.ttl +++ b/ontology/investigation/investigation.ttl @@ -178,14 +178,34 @@ investigation:InvestigativeAction owl:Class , sh:NodeShape ; - rdfs:subClassOf uco-action:Action ; + rdfs:subClassOf + uco-action:Action , + [ + a owl:Restriction ; + owl:onProperty uco-action:result ; + owl:onClass investigation:ProvenanceRecord ; + owl:minQualifiedCardinality "1"^^xsd:nonNegativeInteger ; + ] + ; rdfs:label "InvestigativeAction"@en ; rdfs:comment "An investigative action is something that may be done or performed within the context of an investigation, typically to examine or analyze evidence or other data."@en ; - sh:property [ - sh:class investigation:InvestigativeAction ; - sh:nodeKind sh:BlankNodeOrIRI ; - sh:path investigation:wasInformedBy ; - ] ; + sh:property + [ + sh:class investigation:InvestigativeAction ; + sh:nodeKind sh:BlankNodeOrIRI ; + sh:path investigation:wasInformedBy ; + ] , + [ + sh:message "An InvestigativeAction should have a ProvenanceRecord among its results. This will be a requirement in CASE 2.0.0."@en ; + sh:path uco-action:result ; + sh:qualifiedMinCount "1"^^xsd:integer ; + sh:qualifiedValueShape [ + a sh:NodeShape ; + sh:class investigation:ProvenanceRecord ; + ] ; + sh:severity sh:Warning ; + ] + ; sh:targetClass investigation:InvestigativeAction ; . diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..d33bca9 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +pyshacl >= 0.24.0