Org-pages

After working on a visualitaion of the rdf-graph, another use-case for the tree that is used for the visualisation files. It is reused in rdf-editor to display org-babel pages. The way the tree workis is exactly like the visualisations method, but then under the org-pages entry.

Enter this in an org file that is created inside the tree:

#+TITLE: Python Hello World with Org-Babel

#+BEGIN_SRC python
return "Hello, World! This is an org-page inside rdf-emacs."
#+END_SRC

#+RESULTS:

And (after C-c C-c inside the BEGIN_SRC - END_SRC block) the resulting buffer contents is:

#+TITLE: Python Hello World with Org-Babel

#+BEGIN_SRC python
return "Hello, World, this is an org-page inside rdf-emacs."
#+END_SRC

#+RESULTS:
: Hello, World, this is an org-page inside rdf-emacs.

You can do the same with sparql mode:

#+BEGIN_SRC sparql  :url https://dbpedia.org/sparql :format text/csv
SELECT (COUNT(*) as ?triples)
WHERE {
?s ?p ?o
}
#+END_SRC
#+RESULTS:
|    triples |
|------------|
| 1153051695 |

This with the help of the sparql-mode package.

Given what org-babel can do (the above examples are just to show that org-babel works) this supports very extensive research pages. Learn more about org and org-babel:

  1. Org Mode on GNU ELPA
  2. Org Mode Wiki
  3. Org Mode Documentation
  4. Org-Babel Introductory Guide
  5. Org Mode GitHub Repository
  6. Org Mode Mailing List
  7. Org Mode GitHub Wiki
  8. How to Use Org-Babel
  9. Practical Org Mode
  10. Orgbabel: A Guide for Beginners