openownership / lib-cove-bods

Check that your data complies with the Beneficial Ownership Data Standard (BODS) using our install our data review library to analyse files via your command line interface
https://datareview.openownership.org/
Other
1 stars 0 forks source link

Additional check: isComponent must be false on some OOC statements #77

Closed kd-ods closed 2 years ago

kd-ods commented 2 years ago

If an OOC statement contains one or more interests where beneficialOwnershipOrControl is true then isComponent at the statement level must be false.

See: https://standard.openownership.org/en/master/schema/guidance/repr-beneficial-ownership.html (replace 'master' with '0.3.0' once released)

odscjames commented 2 years ago

Is this only for 0.3, or for older versions too?

StephenAbbott commented 2 years ago

@odscjames Test should be applied to 0.2, 0.3 and 0.3+

kd-ods commented 2 years ago

@StephenAbbott - I'm not sure we really can apply this test to 0.2 fairly, since we only set out these requirements clearly with the 0.3 release. What do you think?

StephenAbbott commented 2 years ago

@kd-ods Hmmm. I was thinking that since we wrote the extra documentation for 0.3 in light of observations that 0.2 publishers were not using isComponent as intended, then it would be a useful test for 0.2 as well. But happy to defer to your better judgment on this front...

kd-ods commented 2 years ago

@StephenAbbott - If there were a way of doing the test and then providing a warning for 0.2 data, but a validation error for 0.3 data that would be ideal. @odscjames - is that possible?

kd-ods commented 2 years ago

Talking to @odscjames, there is no difference between a warning and a validation error. Given that, I think we should apply this as a validation check for both 0.2 and 0.3 data.

odscjames commented 2 years ago

The library will output checks with no difference between them and others.

However:

This also comes up in another issue; maybe thinking about this can move to another issue so that things are considered together. For now I'll just write the check into the library.

Blueskies00 commented 2 years ago

@kd-ods I need to talk through the isComponent rules with you again please, before I'm comfortable with what I'm testing! Having said that, on the first test, the review tool is doing as instructed.

kd-ods commented 2 years ago

@odscjames , @Blueskies00 has rightly pointed out a flaw in my logic on this test. (There are actually some cases where an OOC statement could be a component and have a true beneficialOwnerhsipOrControl interest.)

Huge apologies, but can we remove this test.

odscjames commented 2 years ago

It's gone