W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > December 2007

Re: first pass implementation of Mark's chaining rules

From: Simone Onofri <simone.onofri@gmail.com>
Date: Wed, 5 Dec 2007 09:43:44 +0100
Message-ID: <52bd7c3d0712050043u45640237u5aac4737703aed81@mail.gmail.com>
To: "Ben Adida" <ben@adida.net>
Cc: RDFa <public-rdf-in-xhtml-tf@w3.org>

On FF2 Mac this is the cool result:

<http://www.w3.org/2006/07/SWD/RDFa/impl/js/test.html#me>
<http://xmlns.com/foaf/0.1/knows>
<http://www.w3.org/2006/07/SWD/RDFa/impl/js/test.html#ben> .
<http://www.w3.org/2006/07/SWD/RDFa/impl/js/test.html#me>
<http://xmlns.com/foaf/0.1/knows>
<http://www.w3.org/2006/07/SWD/RDFa/impl/js/test.html#mark> .
<http://www.w3.org/2006/07/SWD/RDFa/impl/js/test.html#me>
<http://xmlns.com/foaf/0.1/knows> _:n1 .
<http://www.w3.org/2006/07/SWD/RDFa/impl/js/test.html#me>
<http://xmlns.com/foaf/0.1/knows> _:n0 .

<http://www.w3.org/2006/07/SWD/RDFa/impl/js/test.html#ben>
<http://xmlns.com/foaf/0.1/name> "Ben Adida" .

<http://www.w3.org/2006/07/SWD/RDFa/impl/js/test.html#mark>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://xmlns.com/foaf/0.1/Person> .
<http://www.w3.org/2006/07/SWD/RDFa/impl/js/test.html#mark>
<http://xmlns.com/foaf/0.1/name> "Mark Birbeck" .

_:n1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://xmlns.com/foaf/0.1/Person> .
_:n1 <http://xmlns.com/foaf/0.1/name> "Ralph" .

_:n0 <http://xmlns.com/foaf/0.1/name> "Jeni" .
_:n0 <http://xmlns.com/foaf/0.1/knows> _:n2 .

_:n2 <http://xmlns.com/foaf/0.1/knows> _:n4 .

_:n4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://xmlns.com/foaf/0.1/Person> .
_:n4 <http://xmlns.com/foaf/0.1/name> "Manu" .



On IE6 WinXp response is an error (Property or Method not supported by
the object) at line 675.

Cheers,

Simone

On Dec 5, 2007 9:13 AM, Ben Adida <ben@adida.net> wrote:
>
>
> Hi all,
>
> I did a first pass implementation of Mark's chaining rules in my
> JavaScript library. It was easier than I thought, though the code is
> still a bit ugly and needs a cleanup.
>
> Note that I also checked in a patch by Jeni Tennison that re-enabled a
> number of edge cases that my last rewrite had missed. Thanks Jeni.
>
> The result is surprisingly pleasant. Mark, I have to hand it to you,
> this feels right.
>
> Here's the GetN3 bookmarklet (works in FF2 and Safari3 for sure, not
> sure about IE yet):
>
> http://www.w3.org/2006/07/SWD/RDFa/impl/js/
>
> Here's a test page that has the kind of deep nested statements I've been
> aching to write:
>
> http://www.w3.org/2006/07/SWD/RDFa/impl/js/test.html
>
> Try out the GetN3 bookmarklet, see if you're as pleasantly surprised as
> I was.
>
> -Ben
>
>



-- 
Simone Onofri
http://www.siatec.net/
Received on Wednesday, 5 December 2007 08:43:58 GMT

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