Hi Raj,

Thanks. It looks like the created work URI is not correct:
http://openlibrary.org/works//works/OL16419933W, but that is a minor
issue.
(Please read on, I'll send a pull request that changes several things
including the URI.)
Something else about the Edition RDF I just realise: the
<dcterms:modified>-property is in the Edition itself, not in a
separate description of the record, like the Work RDF has. The Work's
record description, however, is not linked to the work description.
Only to agents who interpret parts of the URI may the relationship
between a frbr:Work and something identified by "http:// ... /about/"
be clear.
I think this may be solved by saying
<rdf:Description rdf:about="">
<dcterms:created>...</dcterms:created>
<dcterms:modified>...</dcterms:modified>
</rdf:Desciption>
since rdf:about="" means 'about this document'. The semantics change a
little, because instead of talking about the more abstract record, I
talk about the RDF document. The statements themselves are correct,
because the contents of the RDF file change at the same time the
record changes.
In my new fork on Github, I went ahead and changed this in both the
Edition and Work templates.

I committed an adaptation of the Work RDF template in my fork (this is
my first day on Github, but I think I'm starting to get the hang of
it), but I was not sure what other people think* about losing the
trailing slash in Work and Edition URIs, so I left them in at first. I
committed an additional change, that removes the trailing slashes.
*: in the RDF improvement bug report,
https://bugs.launchpad.net/openlibrary/+bug/703664, Karen says all
URIs should end with "/".

Please have a look (if you can) at
https://github.com/bencomp/openlibrary/blob/patch-1/openlibrary/plugins/openlibrary/templates/type/work/rdf.html
and
https://github.com/bencomp/openlibrary/blob/patch-1/openlibrary/plugins/openlibrary/templates/type/edition/rdf.html
and comment on it. If all is okay, I will send a pull request.

Regards,

Ben

On 5 January 2012 00:20, raj kumar <[email protected]> wrote:
> Based on your example, I edited the edition RDF to link to the work and the 
> contributors:
>
> http://openlibrary.org/books/OL25154702M.rdf
>
> the code change:
> https://github.com/internetarchive/openlibrary/commit/ca84fc04081aaedfdeba995a7b1f1945ffb685db
>
> -raj
>
> On Jan 3, 2012, at 12:06 PM, Ben Companjen wrote:
>
>> Hi Anand,
>>
>> Using an example work/edition by a greatuncle of mine, I attached two
>> edited RDF files, one for the work and the other for the edition.
>>
>> Work like it is now on OL.org: http://openlibrary.org/works/OL16419933W.rdf
>> Edition: http://openlibrary.org/books/OL25154702M.rdf
>>
>> Some perhaps less noticeable changes I made:
>> - all edition URIs now end with '/' (why do all work and edition URIs
>> end with '/', whereas author URIs don't, by the way? I'd say lose
>> them, like they appear in Talis's search results.)
>> - added FOAF-namespace to both files;
>> - added rdrel-namespace to the edition file;
>> - copied the work's author to the edition's bibo:authorList;
>> - added the names of contributors to the edition's (new)
>> bibo:contributorList - although they lost their specific roles.
>>
>> Regards,
>>
>> Ben
>>
>> P.S. Perhaps I should say I'm pretty new to the developers' side of
>> Open Library, so I only noticed the Launchpad and RDF related issues
>> after Karen's mail and Github after visiting the OL Launchpad
>> homepage. I thought I'd look through the archives before sending
>> anything, but there appears to be no archive?
>>
>>
>> On 3 January 2012 09:52, Anand Chitipothu <[email protected]> wrote:
>>>
>> [snip]
>>>
>>> Hi Ben Companjen,
>>>
>>> Can you please make a RDF response with your suggestions for a sample 
>>> edition record?
>>>
>>> I can convert that into a template for generating RDF in OL.
>>>
>>> Anand
>>> _______________________________________________
>>> Ol-tech mailing list
>>> [email protected]
>>> http://mail.archive.org/cgi-bin/mailman/listinfo/ol-tech
>>> To unsubscribe from this mailing list, send email to 
>>> [email protected]
>> <OL16419933W-edit.rdf><OL25154702M-edit.rdf>_______________________________________________
_______________________________________________
Ol-tech mailing list
[email protected]
http://mail.archive.org/cgi-bin/mailman/listinfo/ol-tech
To unsubscribe from this mailing list, send email to 
[email protected]

Reply via email to