From: Andrew Hyatt <ahyatt@gmail.com>
To: Jean Louis <bugs@gnu.support>
Cc: emacs-devel@gnu.org
Subject: Re: [ELPA] New package: triples
Date: Thu, 27 Oct 2022 01:19:34 -0400 [thread overview]
Message-ID: <m2a65hsv15.fsf@andrews-mbp.lan> (raw)
In-Reply-To: <Y1n8vazn4HhX8iKp@protected.localdomain>
On Thu, Oct 27, 2022 at 06:36 AM Jean Louis <bugs@gnu.support>
wrote:
> * Andrew Hyatt <ahyatt@gmail.com> [2022-10-26 03:59]:
>> I've created a new package, triples, which can be found at
>> https://github.com/ahyatt/triples. I'd like to add this to
>> some ELPA, and would prefer the gnu ELPA. I will be talking
>> about this package, and examples of its use, in the upcoming
>> Emacs conference.
>
> I like the idea of relating everything to everything.
>
> I was experimenting with semantic triplets for PostgreSQL:
>
> Implementation of Semantic Triplets in PostgreSQL database:
> https://hyperscope.link/3/7/1/5/4/Implementation-of-Semantic-Triplets-in-PostgreSQL-database-37154.html
>
> In this case any table, column, with its primary key may be
> related to any other table, column with its primary key. That
> way objects and subjects are constrained and rigid, it is not
> universal triplets, but database tables dependent one. It
> relates only what exists in the database. If there is `people'
> database then such may be related to arbitrary other tables like
> `statistics'.
Thanks for mentioning this, it's an interesting design I'll read
up on!
>
> You have made general triplets to build any type of knowledge
> that is nice.
>
> Triplets allow huge flexibility in relation assignments.
>
> I just wonder if your "types" can simply be replaced again with
> predicates.
>
> select * from predicates;
> predicates_id | predicates_name | predicates_description
> ---------------+-----------------+-----------------------------------
> 1 | is | When subject is object. 2 |
> knows | When subject knows object. 3 |
> registered | When subject registered an object
>
> by adding "has" predicate, one can tell:
>
> person has age person has name employee has id id is integer
> employeee has manager employee is person manager is person
We have "has" but not "is". The schema has types, those types have
properties. So we can have a subject, "Joe Employee", who has a type
person, and a type employee, and a type manager, the properties of those
respective types. But we don't know or enforce that
every employee is also a person. It's perhaps a feature that can be
added later if needed; it seems possible in the current implementation.
>
> --
> Jean
>
> Take action in Free Software Foundation campaigns:
> https://www.fsf.org/campaigns
>
> In support of Richard M. Stallman
> https://stallmansupport.org/
next prev parent reply other threads:[~2022-10-27 5:19 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-26 0:54 [ELPA] New package: triples Andrew Hyatt
2022-10-26 2:52 ` Stefan Monnier
2022-10-26 5:52 ` Stefan Kangas
2022-10-26 13:23 ` Andrew Hyatt
2022-10-26 13:29 ` Stefan Monnier
2022-10-27 5:15 ` Andrew Hyatt
2022-10-27 15:34 ` Stefan Monnier
2022-11-03 2:32 ` Andrew Hyatt
2022-10-27 3:36 ` Jean Louis
2022-10-27 5:19 ` Andrew Hyatt [this message]
2022-10-27 19:15 ` Jean Louis
2022-10-27 23:33 ` Jean Louis
2022-11-03 2:37 ` Andrew Hyatt
2022-11-03 16:57 ` Jean Louis
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2a65hsv15.fsf@andrews-mbp.lan \
--to=ahyatt@gmail.com \
--cc=bugs@gnu.support \
--cc=emacs-devel@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.