W3C home > Mailing lists > Public > public-grddl-wg@w3.org > January 2007

#base-param testing

From: Danny Ayers <danny.ayers@gmail.com>
Date: Wed, 24 Jan 2007 13:40:20 +0100
Message-ID: <1f2ed5cd0701240440m22552872mba1c302e3c3ebf30@mail.gmail.com>
To: public-grddl-wg <public-grddl-wg@w3.org>
re. Action 7 from
http://www.ibiblio.org/hhalpin/homepage/notes/weekly-agenda.html
that is testing
http://www.w3.org/2001/sw/grddl-wg/td/testlist1#baseURI

I found the test cases supplied alongside the wording of Brian's proposal a
little confusing, but I believe I've confirmed the key conclusion part -

[[
 Propose: Given that a base URI parameter is a parameter whose
 value is the base URI of the transform source document, the
 WG RESOLVES not to define a base URI parameter for
 transforms, noting that triples referring to transformed
 document, or documents named relative to the transformed
 document can be created as illustrated in test case
 http://www.w3.org/2001/sw/grddl-wg/td/testlist1#baseURI .
]]
http://lists.w3.org/Archives/Public/public-grddl-wg/2006Dec/0028.html

When I tried a local copy of the input at
http://www.w3.org/2001/sw/grddl-wg/td/testlist1#baseURI
I got an output (baseURI.rdf, attached) containing the following :

<rdf:Description rdf:about="
file:///Users/dannyayers/Documents/projects/grddl-wg/baseURI.html">

- which refers to the source document as it appeared on my filesystem, which
I believe covers the main reason for not defining a base URI parameter.
(I've not figured out the policy zone part of GRDDL.py yet, hence couldn't
confirm for the version on the web).

I don't really understand what meant by "documents named relative to the
transformed document can be created" in the context of GRDDL, so couldn't
see where, if anywhere, this is demonstrated.

However, the input file described above uses
grddl:transformation="glean_title.xsl", but Brian also provided a variation.
Changing the source doc to refer to grddl:transformation="baseURI.xsl" (
baseURIb.html) I got a result (baseURIb.rdf) additionally containing a
statement :

<rdf:Description rdf:about="
file:///Users/dannyayers/Documents/projects/grddl-wg/baseURI.xsl">
    <rdf:type rdf:resource="http://example.org/test#StyleSheet"/>
</rdf:Description>

This demonstrates that triples relative to the transformation document can
also be generated. Cool trail ;-)

Cheers,
Danny.

-- 

http://dannyayers.com



Received on Wednesday, 24 January 2007 12:40:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:11:47 GMT