Re: Exporting .owl files using the :directory option of http:export-url

Ben Olasov <[email protected]> Fri, 3 Apr 2009 15:49:36 -0800
Newsgroups gmane.lisp.cl-http
Message-ID <[email protected]>
Ranier thanks, this is just what was needed.  If I'd read to the end of the
http:export-url doc, I might have noticed item 12:

12. New static export types for data stored in files can be defined with
DEFINE-URL-EXPORT-TYPE.

Thanks again,

Ben

On Thu, Apr 2, 2009 at 11:34 PM, Rainer Joswig <[email protected]> wrote:

>
> Am 03.04.2009 um 07:26 schrieb Ben Olasov:
>
> >
> > I noticed that when exporting the file contents of a directory using
> > the :directory option of http:export-url, any files with the
> > filename extension .owl aren't displayed as directory contents
> > unless renamed with a different extension, such as .txt.   Is there
> > a way to make.owl files displayable as directory contents if they
> > only need to be handled as text files?
>
> CL-HTTP displays in the directory listing only files which resource
> types it knows (btw., this is mentioned in the
> documentation to HTTP:EXPORT-URL ).
>
> So you need to define the resource type if it is not one of those that
> are defined by CL-HTTP. CL-HTTP uses DEFINE-URL-EXPORT-TYPE for that.
>
> The following would be an example for .owl files. It allows .owl
> and .rdf as OWL files. These files are copied as text files (the copy
> mode). application/owl+xml  is the MIME Type. Alternate extensions is
> a list of other file extensions that could be used.
>
> (http:define-url-export-type :owl-file :owl
>   (:application :owl+xml)
>   :copy-mode #.http::+standard-text-copy-mode+
>   :alternate-extensions (:rdf))
>
> Regards,
>
> Rainer Joswig
>
>
>
>
> >
> > CL-HTTP version is 70-156-pre running under ACL 6.2/Solaris 8 (yes,
> > I know we need to upgrade :).
> >
> > Any recommendations welcome.
> >
> > Thanks,
> >
> > Ben _______________________________________________
> > WWW-CL mailing list
> > [email protected]
> > https://lists.csail.mit.edu/mailman/listinfo/www-cl
>
> Rainer Joswig, Hamburg, Germany
> http://lispm.dyndns.org/
> mailto:[email protected]
>
>
>
>
> _______________________________________________
> WWW-CL mailing list
> [email protected]
> https://lists.csail.mit.edu/mailman/listinfo/www-cl
>

_______________________________________________
WWW-CL mailing list
[email protected]
https://lists.csail.mit.edu/mailman/listinfo/www-cl