emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] HTML + RDFa export/publishing ?


From: Thomas S. Dye
Subject: Re: [O] HTML + RDFa export/publishing ?
Date: Mon, 20 Apr 2015 05:44:39 -1000

Aloha,

Olivier Berger <address@hidden> writes:

> Hi.
>
> Olivier Berger <address@hidden> writes:
>
>> Hi.
>>
>> John Kitchin <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]