From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: HTML + RDFa export/publishing ? Date: Mon, 20 Apr 2015 05:44:39 -1000 Message-ID: References: <87vbgxxwnd.fsf@inf-11879.int-evry.fr> <874mofqgea.fsf@inf-11879.int-evry.fr> <87wq17xndc.fsf@inf-11879.int-evry.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55096) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkDt1-0006p3-OX for emacs-orgmode@gnu.org; Mon, 20 Apr 2015 11:45:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YkDsy-0002ib-Qq for emacs-orgmode@gnu.org; Mon, 20 Apr 2015 11:45:27 -0400 Received: from gproxy8-pub.mail.unifiedlayer.com ([67.222.33.93]:34678) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1YkDsy-0002e6-Bd for emacs-orgmode@gnu.org; Mon, 20 Apr 2015 11:45:24 -0400 In-Reply-To: <87wq17xndc.fsf@inf-11879.int-evry.fr> (Olivier Berger's message of "Mon, 20 Apr 2015 09:36:15 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Olivier Berger Cc: emacs-orgmode@gnu.org Aloha, Olivier Berger writes: > Hi. > > Olivier Berger writes: > >> Hi. >> >> John Kitchin 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 : >>

The canonical address of my >> homepage is at > href="http://example.com/~bob/">http://example.com/~bob/ >> >> 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:@@The canonical address of my > homepage is at [[http://example.com/~bob/]]@@html:@@@@ > > 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:@@$3@@html:@@@@ {{{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