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 <jkitc...@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