Digression on URI patterns (was Re: Library data diagram)

Hi Jeff,

On Wed, Sep 01, 2010 at 11:38:19PM -0400, Jeff Young wrote:
> > > http://example.org/bib/12345/x-dc.rdf
> > > http://example.org/bib/12345/frbr.rdf
> > > http://example.org/bib/12345/marc21.xml
> > > http://example.org/bib/12345/marc21.mrc
> > > etc.
> > 
> > Okay.
> > 
> > (I wonder whether the filenames are ideal, because all
> > MARC XML records would be called "marc21.xml" when mechanically
> > downloaded with, say, "wget", but that's beside the point...)
> 
> The URI pattern I'm using isn't based on a folder/file paradigm.
> Instead, it is based on the one-to-one-to-many resource hierarchy
> implied by Linked Data "303 URIs forwarding to One Generic Document":
> 
> http://www.w3.org/2005/Incubator/lld/wiki/Use_Case_Subject_Search#Preface_on_URI_patterns

Picking up on this point...  The examples given for 
"303 URIs forwarding to One Generic Document" show 

    http://www.example.com/doc/alice

redirecting to

    http://www.example.com/doc/alice.rdf
    http://www.example.com/doc/alice.html

If one were to retrieve these files using HTTP (e.g., with "wget"), the
files would be called:

    alice.rdf
    alice.html

In your example, if one were to retrieve the following MARC21-in-XML records:

    http://example.org/bib/12345/marc21.xml
    http://example.org/bib/67890/marc21.xml
    http://example.org/bib/45678/marc21.xml

they would by default all have the same name:

    marc21.xml

Granted, URIs are opaque, and maybe I'm looking at this too
simplistically, but it seems prudent to follow examples such as

    http://www.bbc.co.uk/music/artists/a3cb23fc-acd3-4ce0-8f36-1e5aa6a18432.rdf
    http://id.loc.gov/authorities/sh85017454.rdf

which, when retrieved with HTTP, result in the files:

    a3cb23fc-acd3-4ce0-8f36-1e5aa6a18432.rdf
    sh85017454.rdf

In other words, I would expect:

    http://example.org/bib/12345

to be associated with a MARC21-in-XML representation named
along the lines of:

    http://example.org/bib/12345-marc21.xml

i.e., when retrieved, the file:

    12345-marc21.xml

Tom

[1] http://www.w3.org/TR/cooluris/#r303gendocument

-- 
Thomas Baker <tbaker@tbaker.de>

Received on Saturday, 4 September 2010 19:35:15 UTC