From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Exploring properties Date: Sun, 23 Feb 2020 08:40:11 -0500 Message-ID: References: <87sgj163y9.fsf@gnu.org> <20200223132024.whfg366o2dazcnim@rewasi> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000075b2b9059f3e6586" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:43264) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5rUk-0002Ek-WD for emacs-orgmode@gnu.org; Sun, 23 Feb 2020 08:40:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j5rUj-0003dW-I5 for emacs-orgmode@gnu.org; Sun, 23 Feb 2020 08:40:30 -0500 In-Reply-To: <20200223132024.whfg366o2dazcnim@rewasi> 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: Bastien , org-mode mailing list --00000000000075b2b9059f3e6586 Content-Type: text/plain; charset="UTF-8" org-ql (https://github.com/alphapapa/org-ql) is also quite good for this kind of thing. Here is even a database like query to find the heading, and EMAIL property from all the files in a list returned by the function nb-org-files. (org-ql-query :select '(cons (fifth (org-heading-components)) (org-entry-get (point) "EMAIL")) :from (nb-org-files) :where '(and (property "EMAIL"))) 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 Sun, Feb 23, 2020 at 8:25 AM Vikas Rawal wrote: > > > > > > I don't know if I have missed something obvious. But I am trying to > > > read all the properties data (key-value pairs) into an R source code > > > block (essentially to gather into a data.frame before further > > > processing). > > > > You might want to look at `org-map-entries'. > > Thanks. It seems it will take more lisp than I can handle. But let me try. > > I think there is a potential to combine orgmode tags and properties, with > a little more lisp may be, along with version control to create small > database applications. > > It would be good to design something as a proof-of-concept. > > Vikas > > --00000000000075b2b9059f3e6586 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
org-ql (ht= tps://github.com/alphapapa/org-ql) is also quite good for this kind of = thing.

Here is even a database like query to find the he= ading, and EMAIL property from all the files in a list returned by the func= tion nb-org-files.

(org-ql-query
=C2=A0 :se= lect '(cons (fifth (org-heading-components))
=C2=A0(org-entry-= get (point) "EMAIL"))
=C2=A0 :from (nb-org-files)
= =C2=A0 :where '(and (property "EMAIL")))

=

John<= br>
-----------------------------------
Professor John Kitchin=C2=A0<= br>Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mel= lon University
Pittsburgh, PA 15213
412-268-7803


On Sun, Feb 23, 2020 at 8:25 AM Vikas Rawal <vikasrawal@gmail.com> wrote:
=

>
> > I don't know if I have missed something obvious. But I am try= ing to
> > read all the properties data (key-value pairs) into an R source c= ode
> > block (essentially to gather into a data.frame before further
> > processing).
>
> You might want to look at `org-map-entries'.

Thanks. It seems it will take more lisp than I can handle. But let me try.<= br>
I think there is a potential to combine orgmode tags and properties, with a= little more lisp may be, along with version control to create small databa= se applications.

It would be good to design something as a proof-of-concept.

Vikas

--00000000000075b2b9059f3e6586--