Creating FileObject from external url

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Creating FileObject from external url

aacain
I have created FileObjects in my layer file that include references to external urls.

    <folder name="OboFiles">
        <folder name="LATEST">
            <file name="Latest_gene_ontology_edit.obo" url="http://www.geneontology.org/ontology/gene_ontology_edit.obo"/>
           <file name="Latest_ goslim_generic.obo" url="http://www.geneontology.org/GO_slims/goslim_generic.obo"/>
        </folder>
    </folder>

Now, I want to allow the user to enter the url of a .obo file and have that added to the filesystem.  Because these obo files are updated daily, I want the application be able to retrieve the latest version of the file on demand.  However, I can't seem to find a method that will create this FileObject by external URL.  

Is there any such method?

AC  


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Creating FileObject from external url

Jesse Glick-2
On 02/22/2012 05:05 PM, Aurora Cain wrote:
> I have created FileObjects in my layer file that include references to external urls.

This is just a bad idea; layers should be constant. Find some other design.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Creating FileObject from external url

Emilian Bold-2
In reply to this post by aacain
You might be able to use a custom FileSystem mapped over your server URLs.

--emi

On Thu, Feb 23, 2012 at 12:05 AM, Aurora Cain <[hidden email]> wrote:
I have created FileObjects in my layer file that include references to external urls.

   <folder name="OboFiles">
       <folder name="LATEST">
           <file name="Latest_gene_ontology_edit.obo" url="http://www.geneontology.org/ontology/gene_ontology_edit.obo"/>
          <file name="Latest_ goslim_generic.obo" url="http://www.geneontology.org/GO_slims/goslim_generic.obo"/>
       </folder>
   </folder>

Now, I want to allow the user to enter the url of a .obo file and have that added to the filesystem.  Because these obo files are updated daily, I want the application be able to retrieve the latest version of the file on demand.  However, I can't seem to find a method that will create this FileObject by external URL.

Is there any such method?

AC





--
http://www.josekibold.ro : Honesty & well-done software.
Loading...