Skip to content

Latest commit

 

History

History
48 lines (39 loc) · 1.39 KB

gorule-0000014.md

File metadata and controls

48 lines (39 loc) · 1.39 KB
layout id title contact status fail_mode implementations
rule
GORULE:0000014
Valid GO term ID
Proposed
soft
language code
sparql
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX RO: <http://purl.obolibrary.org/obo/RO_> PREFIX has_evidence: <http://geneontology.org/lego/evidence> PREFIX ECO: <http://purl.obolibrary.org/obo/ECO_> PREFIX GO: <http://purl.obolibrary.org/obo/GO_> PREFIX metago: <http://geneontology.org/> SELECT ?subj ?subjClass ?relation ?object ?go_term ?s ?evidence WHERE { GRAPH ?g { ?g metago:graphType metago:gafCam . ?s has_evidence: ?evidence . ?s owl:annotatedSource ?subj . ?s owl:annotatedProperty ?relation . ?s owl:annotatedTarget ?object . ?subj ?relation ?object . ?subj a ?subjClass . ?object a ?go_term . # annotations to terms that have owl:deprecated true (obsolete) ?go_term owl:deprecated true FILTER (?subjClass != owl:NamedIndividual) FILTER (?go_term != owl:NamedIndividual) } } LIMIT 100

This check ensures that the GO IDs used for annotations are valid IDs and are not obsolete.