Re: How to put an annotation in HTML?

On Wed, Apr 24, 2013 at 3:17 PM, Martin Hepp <
martin.hepp@ebusiness-unibw.org> wrote:

> Hi Denny,
> First, I think you describe a scenario that has a lot of application areas
> :-)
>
> One solution could be for the W3C agree upon a "NULL" URI (e.g. URN) for
> properties and objects in RDF triples, for use in RDFa and elsewhere. This
> would allow using the existing RDFa spec for your purpose.
>
> For instance, the W3C could define the URN NID "rdfa"
>
> Then, you could simply write
>
> <p>It is well known, that <span about="http://sws.geonames.org/4951788/"
> typeof="urn:rdfa:NULL" >Springfield</span> has mild summers and short, but
> hard winters.</p>
>
> (I did not check whether URNs are valid for typeOf, but I think so)
>
> An RDFa validator would be okay, an RDFa parser could be set to ignore the
> resulting triples, and if not, nothing harmful would happen.
>
> Another solution would be to use the owl:Thing URI, i.e.
>
> <p>It is well known, that <span about="http://sws.geonames.org/4951788/"
> typeof="owl:Thing" >Springfield</span> has mild summers and short, but hard
> winters.</p>
>

I like the idea of owl:Thing. From reading the initial email from Denny
saying that he is not trying to assert triples, something even simpler
would be to just use the @resource attribute from RDFa Lite [1]:

<p>It is well known, that <span
resource="http://sws.geonames.org/4951788/">Springfield</span>
has mild summers and short, but hard winters.</p>

The above markup would validate 'as is' in HTML5 without even the need to
use any particular RDFa doctype. Your parser would just have to look for
the resource attribute and take the URI from there.

Steph.

[1] http://www.w3.org/TR/rdfa-lite/

Received on Wednesday, 24 April 2013 19:33:25 UTC