W3C home > Mailing lists > Public > public-linked-json@w3.org > January 2014

Re: Update RDFa snippet to RDFa Lite

From: Stéphane Corlosquet <scorlosquet@gmail.com>
Date: Mon, 20 Jan 2014 12:38:57 -0500
Message-ID: <CAGR+nnHfR0TocqMWC-wu4JWNx_Y_0eqpvMPzKJXJtyjs7bDLQA@mail.gmail.com>
To: Dan Brickley <danbri@danbri.org>
Cc: Linked JSON <public-linked-json@w3.org>
I left the @prefix in the snippet, it was part of the original version, but
I could have removed it. It's best practice to include it, especially in
spec documents. The initial context is there in case people forget to
specify their prefixes, you could leave it out too.

Steph.


On Mon, Jan 20, 2014 at 12:35 PM, Dan Brickley <danbri@danbri.org> wrote:

> On 16 January 2014 16:37, Stéphane Corlosquet <scorlosquet@gmail.com>
> wrote:
> > Could the following RDFa snippet by updated to be more in line with RDFa
> > Lite?
> > http://www.w3.org/TR/json-ld/#rdfa
> >
> > Like this:
> >
> > <div prefix="foaf: http://xmlns.com/foaf/0.1/">
> >    <ul>
> >       <li typeof="foaf:Person">
> >         <a property="foaf:homepage" href="http://example.com/bob/"><span
> > property="foaf:name">Bob</span></a>
> >       </li>
> >       <li typeof="foaf:Person">
> >         <a property="foaf:homepage" href="http://example.com/eve/"><span
> > property="foaf:name">Eve</span></a>
> >       </li>
> >       <li typeof="foaf:Person">
> >         <a property="foaf:homepage" href="http://example.com/manu/
> "><span
> > property="foaf:name">Manu</span></a>
> >       </li>
> >    </ul>
> > </div>
>
> We could add something like this to the FOAF spec next time it gets
> tweaked. Which could be next week, next year or next decade.
>
> Q: why do you use an explicit @prefix if you want to show the
> simplicity of RDFa Lite? Is there any doubt on the reliability of the
> Initial Context 'built in prefixes' mechanism? I wasn't planning to
> use @prefix in the FOAF spec when we add some RDFa examples.
>
> Dan
>



-- 
Steph.
Received on Monday, 20 January 2014 17:39:24 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:18:40 UTC