W3C home > Mailing lists > Public > public-lod@w3.org > April 2010

XMP RDF extractors?

From: Dan Brickley <danbri@danbri.org>
Date: Tue, 13 Apr 2010 17:04:20 +0200
Message-ID: <r2reb19f3361004130804u83bc4189t546be9cbbe8238b8@mail.gmail.com>
To: Leigh Dodds <leigh.dodds@talis.com>
Cc: Pierre-Antoine Champin <swlists-040405@champin.net>, Linking Open Data <public-lod@w3.org>
On Tue, Apr 13, 2010 at 3:56 PM, Leigh Dodds <leigh.dodds@talis.com> wrote:
> Hi,
> Yes.
> PDF: http://patterns.dataincubator.org/book/linked-data-patterns.pdf
> EPUB: http://patterns.dataincubator.org/book/linked-data-patterns.epub

Something of a tangent but this reminds me, what's the latest on RDF
extractors for Adobe XMP? I always used to use 'strings' and a regex
but I haven't tracked the spec and have found this trick working
*less* well over time, not better.

strings linked-data-patterns.pdf | grep -i xmp
" id="W5M0MpCehiHzreSzNTczkc9d"?><x:xmpmeta xmlns:x="adobe:ns:meta/">
<rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/" rdf:about="">
</x:xmpmeta><?xpacket end="r"?>

By contrast, downloading the .epub file and unzipping you find this in

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<package xmlns="http://www.idpf.org/2007/opf" version="2.0"
    <dc:identifier xmlns:dc="http://purl.org/dc/elements/1.1/"
    <dc:title xmlns:dc="http://purl.org/dc/elements/1.1/">Linked Data
    <dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:opf="http://www.idpf.org/2007/opf" opf:file-as="Dodds,
Leigh">Leigh Dodds</dc:creator>
    <dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:opf="http://www.idpf.org/2007/opf" opf:file-as="Davis, Ian">Ian
    <dc:description xmlns:dc="http://purl.org/dc/elements/1.1/">This
book lives at http://patterns.dataincubator.org. Check that website
for the latest version. This work is licenced under the Creative
Commons Attribution 2.0 UK: England &amp; Wales License. To view a
copy of this licence, visit
http://creativecommons.org/licenses/by/2.0/uk/. Thanks to members of
the Linked Data mailing list for their feedback and input, and Sean
Hannan for contributing some CSS to style the online
    <dc:language xmlns:dc="http://purl.org/dc/elements/1.1/">en</dc:language>
    <item id="ncxtoc" media-type="application/x-dtbncx+xml" href="toc.ncx"/>
    <item id="htmltoc" media-type="application/xhtml+xml" href="bk01-toc.html"/>
    <item id="id2880071" href="index.html" media-type="application/xhtml+xml"/>

Wouldn't it be nice if there were easy conventions for books about RDF
to have Webby linked RDF bundled in the files? Both seem nearly there
but not quite... (this not a complaint Leigh, I love this work btw!)



ps. re epub see also
Received on Tuesday, 13 April 2010 15:04:53 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:16:05 UTC