- From: Martin McEvoy <martin@weborganics.co.uk>
- Date: Wed, 24 Sep 2008 00:34:06 +0100
- To: Toby A Inkster <tai@g5n.co.uk>
- CC: RDFa <public-rdf-in-xhtml-tf@w3.org>
Martin McEvoy wrote: > Hello Toby > > Toby A Inkster wrote: >>> I had an xslt going on this sometime back in november last year, it was >>> very efficient at generating triples but alas it was just a concept >>> (just to see if I could), the difference between the above and rdfa, as >>> far as I can see, is the above doesn't require anything new, and uses >>> concepts that publishers and authors can easily become familiar with? >> >> One problem is that it still doesn't provide a *generic* parsing method. >> >> For example, if you have: >> >> <a class="fn n url" href="http://tobyinkster.co.uk"> >> <span class="given-name">Toby</span> >> <span class="family-name">Inkster</span> >> </a> > > Ahh my bad I think, If I remember that @href and @src will only use > @rel values ie: > > > <a rel="url" href="http://tobyinkster.co.uk" class="fn n"> > <span class="given-name">Toby</span> > <span class="family-name">Inkster</span> > </a> > > But even with that your example had me stumped, my homepage uses > similar mark up, it worked pretty well as long as you kept it simple, > which is what triples are? , I only spent around six or seven months > on this a Brain Fart after a discussion with Manu back in May about > grouping, It solved 80% of my needs. > >> >> (With or without prefixes - that's not the point I'm trying to get >> at) how does the parser know that this is parsed as: >> >> fn = "Toby Inkster" >> n = { "given-name": "Toby" ; "family-name": "Inkster" } >> url = "http://tobyinkster.co.uk/" >> >> And not: >> >> fn = { "given-name": "Toby" ; "family-name": "Inkster" } >> n = "http://tobyinkster.co.uk/" >> url = "Toby Inkster" >> >> To do so requires special knowledge of what "fn", "n" and "url" mean; >> knowledge that "fn" is a string, "n" is a nested structure and "url" >> is a URL. >> > Maybe. :-) an easy fix in the above situation would be to add scoped keywords such as "text" <a rel="url" href="http://tobyinkster.co.uk" class="fn.text n"> <span class="given-name">Toby</span> <span class="family-name">Inkster</span> </a> Thanks Martin McEvoy > > > Best Wishes > > Martin McEvoy >
Received on Tuesday, 23 September 2008 23:34:47 UTC