Skip to content

Commit

Permalink
EFO: make axiom_source required in xref_sources query (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
bfoltyn authored Nov 15, 2023
1 parent 92e6ade commit f227600
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nxontology_data/efo/queries/xref_sources.rq
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ WHERE {
?axiom owl:annotatedProperty oboInOwl:hasDbXref.
?axiom owl:annotatedTarget ?xref.

OPTIONAL { ?axiom oboInOwl:source ?axiom_source }.
# Require axiom source. OPTIONAL would include extra results where axiom source is not present
?axiom oboInOwl:source ?axiom_source.

BIND( REPLACE( STR(?source), "^http.+/([^:]+)_(.+)$", "$1:$2" ) AS ?efo_id )
}
Expand Down

0 comments on commit f227600

Please sign in to comment.