From: Samuel Wales <samologist@gmail.com>
To: Lawrence Bottorff <borgauf@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Graph not hierarchical?
Date: Tue, 18 Feb 2014 11:33:48 -0700 [thread overview]
Message-ID: <CAJcAo8vB1-mnrWqrmF-m_+zGVmiJ9+BpUKiJKurHrdZJn7gjkQ@mail.gmail.com> (raw)
In-Reply-To: <CAFAhFSUUiM_9dmD0cKcN-KdSKx1FCbs0i=E3XJy1cxmypJX3UQ@mail.gmail.com>
hi lawrence,
as eric and nick pointed out, you can use properties with org-id to
implement arbitrary graphs. you will have to write the code to select
the children and go to them and go back. org-id's work well.
if you want to point to any non-header object, it will not work. for
example, a word in a paragraph. you can point from a word using a
link, but only to one other place. pointing to a word is not
possible.
there is a much more general-purpose approach called id markers.
these are tokens that contain an org-id. you can place them anywhere
and point to them and from them. wherever you place them is a node.
so you can put them on a word. you can point to more than one other
place in an id marker. you can move them and everything that points
to them will still point to them. there are various options for how
to display them etc.
one thread that talks about them is "Feature request: IDs on anything".
however: id markers are vaporware, just like using properties. :)
samuel
On 2/15/14, Lawrence Bottorff <borgauf@gmail.com> wrote:
> Org mode seems to lack data extraction/insertion. There's agenda view, but
> that's just one method. Obviously, you could use things like grep or other
> command-line Unix utilities, but being able to organize and extract based
> on your stuff being stored graph-aware would be nice, IMHO. Being able to
> traverse a graph data structure and do an add or read or whatever would be
> great, IHMO. You'd have the benefits of a database with all the good stuff
> about org mode retained.
>
>
> On Sat, Feb 15, 2014 at 4:44 AM, Eric S Fraga <e.fraga@ucl.ac.uk> wrote:
>
>> Lawrence Bottorff <borgauf@gmail.com> writes:
>>
>> > Is there any way to have org mode simulate a graph structure rather
>> > than
>> > always a (folding) hierarchy?
>>
>> Sure: you could superimpose a graph structure using headline
>> properties. You could define CHILDREN, PARENT, NODES, NEXT, PREVIOUS,
>> ... types of properties entries and write emacs lisp code to process
>> these. Not sure what you want to do accomplish in the end, mind you...
>>
>> --
>> : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.2, Org
>> release_8.2.5h-608-g27a978
>>
>
--
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
The disease DOES progress. MANY people have died from it. ANYBODY can get it.
Denmark: free Karina Hansen NOW.
next prev parent reply other threads:[~2014-02-18 18:33 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-15 2:58 Graph not hierarchical? Lawrence Bottorff
2014-02-15 10:44 ` Eric S Fraga
2014-02-15 15:34 ` Lawrence Bottorff
2014-02-15 21:05 ` Eric S Fraga
2014-02-18 17:18 ` Brett Viren
2014-02-18 18:00 ` Nick Dokos
2014-02-18 18:33 ` Samuel Wales [this message]
2014-02-18 18:36 ` Samuel Wales
2014-02-18 18:46 ` Samuel Wales
2014-02-20 3:11 ` Lawrence Bottorff
2014-03-01 7:26 ` Bastien
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=CAJcAo8vB1-mnrWqrmF-m_+zGVmiJ9+BpUKiJKurHrdZJn7gjkQ@mail.gmail.com \
--to=samologist@gmail.com \
--cc=borgauf@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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).