Setting NGNIX to serve LOD Turtle.gz correctly

Hi I am trying to make the data set from the EoL Smithsonian NLP project
available as simply as possible.

This mainly was done for an NLP project but it includes photographs etc.
and is pretty well interlinked with DBpedia and Uniprot.

I have two kinds of things

Taxa http://eol.taxonconcept.org/txn/1065138.ttl
  Endpoint
http://lsd.taxonconcept.org/describe/?url=http%3A%2F%2Feol.taxonconcept.org%2Ftxn%2F1065138

DataObjects
http://eol.taxonconcept.org/dos/09a98cb482e4ed2990c34b985d783016.ttl
    Endpoint
http://lsd.taxonconcept.org/describe/?url=http%3A%2F%2Feol.taxonconcept.org%2Fdos%2F09a98cb482e4ed2990c34b985d783016


For simplicity sake these are gzipped turtle files in a directory.

I am having trouble figuring out how to get NGNIX 1.41 to serve these
correctly.

Right now it handles the gzipped files correctly returning so the .ttl form
of the url works fine.

What I need to do is to have it do a 303 redirect from the URI
(non-suffixed form) - right now it simply fails with a 404.

I on a separate machine I did figure out the following that sends the .ttl
when the non-prefixed URI is requested,  but it does not work with .gz
files only .ttl files.

     location / {
        root /data/www/eol.taxonconcept.org;
        index  index.html index.ttl;
        try_files  $request_uri  $request_uri.ttl $request_uri.ttl.gz
 /50x.html;
      }

While there is a lot of documentation on using NGNIX, I could not find any
that pertains to using it for LinkedData like this.

Also the standard mime.type file does not include mimetype settings for
.ttl, n3, .rdf, .owl - although they do include almost every other mimetype.

Any suggestions?  I can't unzip right now since I don't have the space.

My sitemap and void files have been updated with the datadump versions but
I am stymied with getting the URI's to resolve correctly.

The entire dump consists of about 39 million triples.

Thanks,

- Pete

-------------------------------
Pete DeVries
Semantic Web / Linked Open Data
Encyclopedia of Life <http://eol.org/>
Marine Biological Laboratory
7 MBL Street Woods Hole MA 02543
Email: pdevries@mbl.edu

University of Wisconsin - Madison Entomology
TaxonConcept <http://www.taxonconcept.org/> / GeoSpecies Knowledge Bases
Email: pdevries@wisc.edu
-------------------------------------------------------------------------------------

Received on Monday, 27 May 2013 18:37:29 UTC