Re: [O] HTML + RDFa export/publishing ?
Hi. I've finally devoted a bit more time to follow the lines you'd drawn in the post below, and here's the result : http://www-public.telecom-sudparis.eu/~berger_o/test-org-publishing-rdfa.html It's not perfect as it doesn't offer a universal compact way to map all RDFa constructs to some handy and compact org syntax, but given a small number of patterns, and the corresponding elisp converter code, I think it achieves a quite interesting solution. Many thanks for the suggestion. Also, any comments much welcome (and yes, my lisp is ugly ;). Best regards, John Kitchin jkitc...@andrew.cmu.edu writes: Can you give us an example of what you are trying to do? 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. -- Olivier BERGER http://www-public.telecom-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8 Ingenieur Recherche - Dept INF Institut Mines-Telecom, Telecom SudParis, Evry (France)
Re: [O] HTML + RDFa export/publishing ?
your code doesn't look any uglier than mine ;) You could replace many of your (if ) constructs with (when ) since there is no else clause, but your (if ) constructs work just fine. Olivier Berger writes: Hi. I've finally devoted a bit more time to follow the lines you'd drawn in the post below, and here's the result : http://www-public.telecom-sudparis.eu/~berger_o/test-org-publishing-rdfa.html It's not perfect as it doesn't offer a universal compact way to map all RDFa constructs to some handy and compact org syntax, but given a small number of patterns, and the corresponding elisp converter code, I think it achieves a quite interesting solution. Many thanks for the suggestion. Also, any comments much welcome (and yes, my lisp is ugly ;). Best regards, John Kitchin jkitc...@andrew.cmu.edu writes: Can you give us an example of what you are trying to do? 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. -- 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
Re: [O] HTML + RDFa export/publishing ?
Hi. John Kitchin jkitc...@andrew.cmu.edu writes: Can you give us an example of what you are trying to do? 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. I've tried applying your link type approach, but (as reported in the blog comments too), I get : \nil[nil][nil]{kitchin-2010} instead of the expected : \cite[See for example][page 47]{kitchin-2010} Any clue what's wrong ? Best regards, -- Olivier BERGER http://www-public.telecom-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8 Ingenieur Recherche - Dept INF Institut Mines-Telecom, Telecom SudParis, Evry (France)
Re: [O] HTML + RDFa export/publishing ?
Hi. Olivier Berger olivier.ber...@telecom-sudparis.eu 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 : pspan about=#me rel=foaf:homepageThe 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. Best regards, -- Olivier BERGER http://www-public.telecom-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8 Ingenieur Recherche - Dept INF Institut Mines-Telecom, Telecom SudParis, Evry (France)
Re: [O] HTML + RDFa export/publishing ?
thanks. I fixed that. I am not sure how that happened. It had to work right once ;) Olivier Berger writes: Hi. John Kitchin jkitc...@andrew.cmu.edu writes: Can you give us an example of what you are trying to do? 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. I've tried applying your link type approach, but (as reported in the blog comments too), I get : \nil[nil][nil]{kitchin-2010} instead of the expected : \cite[See for example][page 47]{kitchin-2010} Any clue what's wrong ? Best regards, -- 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
Re: [O] HTML + RDFa export/publishing ?
Aloha, Olivier Berger olivier.ber...@telecom-sudparis.eu writes: Hi. Olivier Berger olivier.ber...@telecom-sudparis.eu 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 : pspan about=#me rel=foaf:homepageThe 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
Re: [O] HTML + RDFa export/publishing ?
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 : pspan about=#me rel=foaf:homepageThe 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
Re: [O] HTML + RDFa export/publishing ?
Hi. Phillip Lord phillip.l...@newcastle.ac.uk writes: I've been thinking the same recently. For me, I was interested in supporting RASH which is HTML+RDFa. http://cs.unibo.it/save-sd/rash/documentation/index.html Quite interesting :-) I've been applying Linked Research [0] myself very recently. I don't know if there have been contacts between the 2 experiments... Would be nice to have an org-mode for scientific communication tool. Publishing an Emacs paper would be kind of fun also. Phil Sure. Actually, for some papers my workflow has been : 1. org-mode 2. LaTeX export - submission (PDF) 3. HTML export - preprint 4. manual editing - HTML5 + RDFa going this way would be better IMHO : 1. org-mode 2. Linked Resarch . RASH export - open publication 3. printing to RDF - submission Best regards. [0] http://linked-research.270a.info/ [1] https://www-public.tem-tsp.eu/~berger_o/weblog/2015/04/07/publishing-my-papers-as-linked-research/ -- Olivier BERGER http://www-public.telecom-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8 Ingenieur Recherche - Dept INF Institut Mines-Telecom, Telecom SudParis, Evry (France)
Re: [O] HTML + RDFa export/publishing ?
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 : pspan about=#me rel=foaf:homepageThe 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/ -- Olivier BERGER http://www-public.telecom-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8 Ingenieur Recherche - Dept INF Institut Mines-Telecom, Telecom SudParis, Evry (France)
Re: [O] HTML + RDFa export/publishing ?
I've been thinking the same recently. For me, I was interested in supporting RASH which is HTML+RDFa. http://cs.unibo.it/save-sd/rash/documentation/index.html Would be nice to have an org-mode for scientific communication tool. Publishing an Emacs paper would be kind of fun also. Phil John Kitchin jkitc...@andrew.cmu.edu writes: Can you give us an example of what you are trying to do? 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. John --- 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 On Wed, Apr 15, 2015 at 11:02 AM, Olivier Berger olivier.ber...@telecom-sudparis.eu wrote: Hi. I'd like to create a publishing project to export HTML pages, and I'd like to use org-mode syntax for authoring, and I'd like to embed RDFa meta-data inside the generated HTML. I'm wondering if anyone has investigated a mean in org-mode to embed such meta-data. I kinda imagine properties may be used for this, but I'm not so much familiar with using org-mode for storing structured data... Maybe POSH is the answer, but org-mode syntax and editing modes are so cool ;) Thanks in advance. Best regards, -- Olivier BERGER http://www-public.telecom-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8 Ingenieur Recherche - Dept INF Institut Mines-Telecom, Telecom SudParis, Evry (France) -- Phillip Lord, Phone: +44 (0) 191 208 7827 Lecturer in Bioinformatics, Email: phillip.l...@newcastle.ac.uk School of Computing Science, http://homepages.cs.ncl.ac.uk/phillip.lord Room 914 Claremont Tower, skype: russet_apples Newcastle University, twitter: phillord NE1 7RU
[O] HTML + RDFa export/publishing ?
Hi. I'd like to create a publishing project to export HTML pages, and I'd like to use org-mode syntax for authoring, and I'd like to embed RDFa meta-data inside the generated HTML. I'm wondering if anyone has investigated a mean in org-mode to embed such meta-data. I kinda imagine properties may be used for this, but I'm not so much familiar with using org-mode for storing structured data... Maybe POSH is the answer, but org-mode syntax and editing modes are so cool ;) Thanks in advance. Best regards, -- Olivier BERGER http://www-public.telecom-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8 Ingenieur Recherche - Dept INF Institut Mines-Telecom, Telecom SudParis, Evry (France)
Re: [O] HTML + RDFa export/publishing ?
Can you give us an example of what you are trying to do? 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. John --- 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 On Wed, Apr 15, 2015 at 11:02 AM, Olivier Berger olivier.ber...@telecom-sudparis.eu wrote: Hi. I'd like to create a publishing project to export HTML pages, and I'd like to use org-mode syntax for authoring, and I'd like to embed RDFa meta-data inside the generated HTML. I'm wondering if anyone has investigated a mean in org-mode to embed such meta-data. I kinda imagine properties may be used for this, but I'm not so much familiar with using org-mode for storing structured data... Maybe POSH is the answer, but org-mode syntax and editing modes are so cool ;) Thanks in advance. Best regards, -- Olivier BERGER http://www-public.telecom-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8 Ingenieur Recherche - Dept INF Institut Mines-Telecom, Telecom SudParis, Evry (France)