Re: How to put an annotation in HTML?

On Wed, Apr 24, 2013 at 3:42 PM, Leon Derczynski <leon@dcs.shef.ac.uk>wrote:

> On 24 April 2013 21:32, Stéphane Corlosquet <scorlosquet@gmail.com> wrote:
>
>>
>>
>> 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.
>>
>>
> Would it also validate under a strict DTD, or in XHTML? An annotation that
> forces designers to interact with browsers in quirks mode will have reduced
> uptake.
>

yes it would as long as you specify the right doctype for RDFa, e.g.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "
http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">

Steph.

Received on Wednesday, 24 April 2013 19:47:03 UTC