Skip to content

Commit

Permalink
Merge pull request #574 from ucoProject/Feature-Issue-573
Browse files Browse the repository at this point in the history
Issue 573: Warn if target or source on an ObservableRelationship are not Observables
  • Loading branch information
plbt5 authored Apr 30, 2024
2 parents 38c21b7 + 6160019 commit 27ca6b0
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 27ca6b0

Please sign in to comment.