Aloha,

Olivier Berger <olivier.ber...@telecom-sudparis.eu> writes:

> Hi.
>
> Olivier Berger <olivier.ber...@telecom-sudparis.eu> writes:
>
>> Hi.
>>
>> John Kitchin <jkitc...@andrew.cmu.edu> writes:
>>
>>> Can you give us an example of what you are trying to do?
>>
>> For instance, I'd like to link my WebID to publications of mine in a
>> semantic way, using dcterm or FOAF vocabularies.
>>
>> This is done as RDFa by using links like :
>> <p><span about="#me" rel="foaf:homepage">The canonical address of my
>> homepage is at <a
>> href="http://example.com/~bob/";>http://example.com/~bob/</a></span>
>>
>> This would ideally be encoded in org in a way that is more compact than
>> this construct ;)
>
> FYI, I've managed to render this by using the following approach :
>
> @@html:<span about="#me" rel="foaf:homepage">@@The canonical address of my
> homepage is at [[http://example.com/~bob/]]@@html:@@</span>@@
>
> But this is not exactly compact, and suffers from inability of the
> emancs org mode to colorize or mask the @@html: @@ constructs :-/
>
> I'm still researching a more usable solution.

Would a macro do what you want?

#+MACRO: rdfa @@html:<span about="$1" rel="$2">@@$3@@html:@@</span>@@

{{{rdfa(#me, foaf:homepage, The canonical address of my homepage is at
[[http://example.com/~bob/]])}}}

Untested.

All the best,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com

Reply via email to