geneontology / go-ontology

Source ontology files for the Gene Ontology
http://geneontology.org/page/download-ontology
Creative Commons Attribution 4.0 International
220 stars 40 forks source link

Change SPARQL validation queries to output a useful descriptive message #22045

Open balhoff opened 3 years ago

balhoff commented 3 years ago

Example: right now we have console output like this:

FAIL Rule ../sparql/synonym-label-match-violation.sparql: 1 violation(s)
c1,n,c2
http://purl.obolibrary.org/obo/GO_0070197,attachment of telomeric heterochromatin to nuclear envelope,http://purl.obolibrary.org/obo/GO_0140698

Instead, we should use the bound variables to generate a message:

FAIL Rule ../sparql/synonym-label-match-violation.sparql: 1 violation(s)
error
http://purl.obolibrary.org/obo/GO_0070197 uses the exact synonym "attachment of telomeric heterochromatin to nuclear envelope", but http://purl.obolibrary.org/obo/GO_0140698 uses it as a label
balhoff commented 1 year ago

Related: #23404