Skip to content

Commit

Permalink
documenting URI hack, cc @kltm
Browse files Browse the repository at this point in the history
  • Loading branch information
cmungall committed Feb 1, 2019
1 parent 2c849c1 commit c18d20f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,18 @@ foo:
# see below for regenerating this
include Makefile-gafs

# This is very hacky:
# - The neo solr index has an ID field (which is a CURIE), but no URI
# - Minerva requires OWL which uses URIs
#
# When loading solr, owltools will use the oboInOwl:id field as priority to load the ID field (see https://github.com/owlcollab/owltools/pull/247)
# Otherwise, the owltools built-in URI contraction method is used, which assumes OBO purls, with unpredictable behavior non-OBO PURLs
#
# Neo entities are NOT OBO ontologies, so they have a mix of prefixes, including identifiers.org
#
# Our hack is as follows. The perl code first generates an OBO file with CURIEs like FlyBase:FBgn111
# The default owltools expansion makes this an OBO PURLs
# We then "reverse" this with some hacky regexes...
neo.owl: neo.obo
owltools $< -o $@.tmp && ./bin/fix-obo-uris.pl $@.tmp > $@.tmp2 && mv $@.tmp2 $@

Expand Down

0 comments on commit c18d20f

Please sign in to comment.