emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: tsd@tsdye.com (Thomas S. Dye)
To: Olivier Berger <olivier.berger@telecom-sudparis.eu>
Cc: emacs-orgmode@gnu.org
Subject: Re: HTML + RDFa export/publishing ?
Date: Mon, 20 Apr 2015 05:44:39 -1000	[thread overview]
Message-ID: <m2wq16249k.fsf@tsdye.com> (raw)
In-Reply-To: <87wq17xndc.fsf@inf-11879.int-evry.fr> (Olivier Berger's message of "Mon, 20 Apr 2015 09:36:15 +0200")

Aloha,

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

> Hi.
>
> Olivier Berger <olivier.berger@telecom-sudparis.eu> writes:
>
>> Hi.
>>
>> John Kitchin <jkitchin@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	other threads:[~2015-04-20 15:45 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-15 15:02 HTML + RDFa export/publishing ? Olivier Berger
2015-04-15 17:14 ` John Kitchin
2015-04-16 15:26   ` Phillip Lord
2015-04-17  9:04     ` Olivier Berger
2015-04-17  8:59   ` Olivier Berger
2015-04-18 16:30     ` John Kitchin
2015-04-20  7:36     ` Olivier Berger
2015-04-20 15:44       ` Thomas S. Dye [this message]
2015-04-20 13:08   ` Olivier Berger
2015-04-20 17:04     ` John Kitchin
2015-04-21 11:36   ` Olivier Berger
2015-04-21 20:17     ` John Kitchin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2wq16249k.fsf@tsdye.com \
    --to=tsd@tsdye.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=olivier.berger@telecom-sudparis.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).