Fetch the file, following any redirects (I've sometimes had trouble with Clojure following redirects from HTTP to FTP, and with HTTPS).
The file should be XML, and it could be large. We need to extract the value of the <owl:versionIRI> element, which is the Ontology Version IRI.
Use the version IRI to create a unique path inside tmp/ so we can store multiple versions of the same ontology. (Make sure the path will work cross-platform.)
Given an ontology IRI such as http://purl.obolibrary.org/obo/mro.owl, we need to fetch the file and store a copy in our
tmp/
directory:<owl:versionIRI>
element, which is the Ontology Version IRI.tmp/
so we can store multiple versions of the same ontology. (Make sure the path will work cross-platform.)