emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Kitchin <jkitchin@andrew.cmu.edu>
To: Olivier Berger <olivier.berger@telecom-sudparis.eu>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: HTML + RDFa export/publishing ?
Date: Sat, 18 Apr 2015 12:30:37 -0400	[thread overview]
Message-ID: <m2mw25e6vm.fsf@andrew.cmu.edu> (raw)
In-Reply-To: <874mofqgea.fsf@inf-11879.int-evry.fr>


You might find some inspiration with something like this:

http://oremacs.com/2015/01/23/eltex/

or

http://jkcunningham.com/cl-who-ext.html

The basic issue I see is 1) how to represent your data structure so that
it is 2) human readable, 3) machine parseable (by you), and 4) the data
is easily reformatted. For me that means data represented in lisp
structures or json, which are easy to write, relatively easy to read,
and there are standard libraries for parsing them. Once parsed,
reformatting during export is usually not too hard.

A totally alternative approach is currently underway with the new
citation syntax, where a new built in syntax for org-mode is being
developed. That is out of my league though ;)

Olivier Berger 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 ;)
>
>> I don't think
>> org-mode supports this rich of behavior out of the box, but see
>> http://kitchingroup.cheme.cmu.edu/blog/2015/02/05/Extending-the-org-mode-link-syntax-with-attributes/
>> for an example idea of what you could imagine doing with a link type
>> approach that could be inline with text.
>>
>
> Yes, this looks interesting.
>
> Ideally, a mix of org-mode and Turtle [0] could be great, as Turtle
> seems the most human-friendly way to write RDF.
>
> In Turtle, the relation above is described with :
> <#me>
>   foaf:homepage <http://example.com/~bob/> .
>
> for instance.
>
> So I don't know exactly how both could be mixed...
>
> It's hard to think about a compact notation that would allow decorating
> org-mode stuff with RDF properties or relations on the fly...
>
> Hope this makes sense (at least for the Semantic Web aware fools ;).
>
> Best regards,
>
> [0] http://www.w3.org/TR/turtle/

--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu

  reply	other threads:[~2015-04-18 16:30 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 [this message]
2015-04-20  7:36     ` Olivier Berger
2015-04-20 15:44       ` Thomas S. Dye
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=m2mw25e6vm.fsf@andrew.cmu.edu \
    --to=jkitchin@andrew.cmu.edu \
    --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).