-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refscan reports validation error when has_calibration
value is id
of something other than a CalibrationInformation
#26
Comments
Edit: @eecavanna added this "light" copy of the same screenshot (the "light" copy was achieved by switching the GitHub UI to the "daytime" theme). I suspect the original screenshot has a transparent background. |
Here's how I think that slot is defined in has_calibration:
name: has_calibration
description: a calibration instance associated with a process
notes:
- '...'
from_schema: https://w3id.org/nmdc/nmdc
any_of:
- range: CalibrationInformation
- range: string
Refscan ignores ranges that aren't classes. |
has_calibration
value is id
of something other than a CalibrationInformation
what you have for the schema for this has_calibration is correct. |
Maybe related (🤷): microbiomedata/nmdc-schema#2139 I'm still seeing this as a modeling issue. I think the schema authors want people to be able to use this slot to both (a) refer to a |
This is on a path to resolution but the information needs to be moved off of WorkflowExeuction subclasses to CalibrationInformation. The linked ticket you mention is what will address this. Short answer is that refscan should not ignore ranges that aren't classes. A few weeks ago we discussed separating out records which can't be validated (b/c of issues like this) vs values which do not have referential integrity. |
I don't see how that can be generalized without refscan trying to interpret every |
I could add some kind of |
My thought is you would do the inverse, any slot where String is part of the allowable range, either as the range or with an any_of range, you would report that you can't validate those records. FWIW Brynn and Katherine are fixing this shortly so we could also just leave this for now as it is not a use case we expect to see going forward. |
Ah, gotcha! I found the PR where they are fixing this. It's microbiomedata/nmdc-schema#2235 That PR's description includes this statement:
I'll leave refscan as is and then re-run the scan (with the new schema version) once the schema has undergone the changes being introduced in that PR. |
this slot uses an any_of range where a string is allowed so nmdc:wfnom-11-0mzdja70.1 for example should not show up as a violoation.
The text was updated successfully, but these errors were encountered: