From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: HTML + RDFa export/publishing ? Date: Sat, 18 Apr 2015 12:30:37 -0400 Message-ID: References: <87vbgxxwnd.fsf@inf-11879.int-evry.fr> <874mofqgea.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]:49274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjVdj-0008UO-K4 for emacs-orgmode@gnu.org; Sat, 18 Apr 2015 12:30:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YjVdg-0005sE-Db for emacs-orgmode@gnu.org; Sat, 18 Apr 2015 12:30:43 -0400 Received: from mail-qk0-x234.google.com ([2607:f8b0:400d:c09::234]:35214) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjVdg-0005s3-9j for emacs-orgmode@gnu.org; Sat, 18 Apr 2015 12:30:40 -0400 Received: by qkhg7 with SMTP id g7so169535958qkh.2 for ; Sat, 18 Apr 2015 09:30:39 -0700 (PDT) In-reply-to: <874mofqgea.fsf@inf-11879.int-evry.fr> 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" 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 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 ;) > >> 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 . > > 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