Re: How to put an annotation in HTML?

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.


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


-- 
Leon R A Derczynski
Research Associate, NLP Group

Department of Computer Science
University of Sheffield
Regent Court, 211 Portobello
Sheffield S1 4DP, UK

+45 5157 4948
http://www.dcs.shef.ac.uk/~leon/

Received on Wednesday, 24 April 2013 19:43:24 UTC