From 61600193bdd1c693b9a167aa03e74e2c6e2dcd01 Mon Sep 17 00:00:00 2001 From: Alex Nelson Date: Thu, 21 Dec 2023 11:16:18 -0500 Subject: [PATCH] Warn if target or source on an ObservableRelationship are not Observables No effects were observed on Make-managed files. References: * https://github.com/ucoProject/UCO/issues/573 Signed-off-by: Alex Nelson --- ontology/uco/observable/observable.ttl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ontology/uco/observable/observable.ttl b/ontology/uco/observable/observable.ttl index d4fb17ea..7cfa4a4a 100644 --- a/ontology/uco/observable/observable.ttl +++ b/ontology/uco/observable/observable.ttl @@ -5056,6 +5056,20 @@ observable:ObservableRelationship ; rdfs:label "ObservableRelationship"@en ; rdfs:comment "An observable relationship is a grouping of characteristics unique to an assertion of an association between two observable objects."@en ; + sh:property + [ + sh:class observable:Observable ; + sh:message "The source on an ObservableRelationship is expected to be typed as an Observable, and the noted value node is not. This will be an error in UCO 2.0.0."@en ; + sh:path core:source ; + sh:severity sh:Warning ; + ] , + [ + sh:class observable:Observable ; + sh:message "The target on an ObservableRelationship is expected to be typed as an Observable, and the noted value node is not. This will be an error in UCO 2.0.0."@en ; + sh:path core:target ; + sh:severity sh:Warning ; + ] + ; sh:targetClass observable:ObservableRelationship ; .