Conversation
|
Looks good. I think we fixed the errors in this PR: #2231 Do we have a way to tailor the error text in these cases, or some doc to help editors interpret the errors? If do I'd like to add some text, if not I'm happy to approve and make this a more general issue for discussion. |
|
This is awesome thank you! @dosumis this is odd - I would have expected a proper summary of the SPARQL verify command. @anitacaron can you check that if you run |
|
@matentzn it's not generating the reports either way. I think the problem is with the command |
|
Ah no, sorry. It's normally generating the report, but the |
|
My question was more about whether/how it is possible to specify some more specific, editor friendly error message. Something more than just the name of the test / sparql file or details of the sparql query? Should I just create an ODK issue for this? |
|
@dosumis @anitacaron my bad. Because of the enormous size of the Uberon Log, I have piped it to a log file: https://github.com/obophenotype/uberon/blob/master/.github/workflows/qc.yml#L33 Whose last rows are shown in the QC report: We need to prime curators to look in there, sorry about that. That is standard output and should be sufficient to understand the problem. Sorry @anitacaron to send you on a goose chase, all good! |
|
The way we do it at Mondo is this: When the curator sees this error, they can go here: They can then find the check that has failed. If you include actually human readable descriptions of the SPARQL query inline as a comment on the query, that should do that trick. A more hacky way is to grep the last lines of log for the failing SPARQLS and cat grep the Human readable description from out there. All that said - I think its better to train people to look at the SPARQL queries when in doubt and include good human readable explanations in the metadata. |
|
One other thing: I think this SPARQL check should be built into ODK and configurable per repo. It's needed by CL and GO as well as Uberon. |
|
We have a check in GO for IRI values: https://github.com/geneontology/go-ontology/blob/master/src/sparql/non-IRI-value-violation.sparql We do use non-NCBITaxon_ IRIs: the taxon union classes. |
Good point. We could extend to check both patterns, but maybe it's better to use a generic IRI check here (in the absence of a way of specifying range semantically). I guess the same check could be used with in_subset too and will work for any other AP shortcut. Maybe we should just add the generic check to ODK? |
ok think its probably less messy if we merged #2260 first then update this to check |

This is a test for this INCATools/ontology-development-kit#520
At the moment, there're 18 violations: