Skip to content

Commit

Permalink
Warn if target or source on an ObservableRelationship are not Observa…
Browse files Browse the repository at this point in the history
…bles

No effects were observed on Make-managed files.

References:
* #573

Signed-off-by: Alex Nelson <[email protected]>
  • Loading branch information
ajnelson-nist committed Dec 21, 2023
1 parent 429cfa7 commit 6160019
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ontology/uco/observable/observable.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;
.

Expand Down

0 comments on commit 6160019

Please sign in to comment.