From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: triples Date: Thu, 27 Oct 2022 06:36:29 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39650"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.2.7+37 (a90f69b) (2022-09-02) Cc: emacs-devel@gnu.org To: Andrew Hyatt Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 27 05:57:24 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1onu1D-000A7D-8k for ged-emacs-devel@m.gmane-mx.org; Thu, 27 Oct 2022 05:57:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ontvm-0001zb-Vz; Wed, 26 Oct 2022 23:51:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ontvk-0001zD-7m for emacs-devel@gnu.org; Wed, 26 Oct 2022 23:51:44 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ontvi-0001OK-BA for emacs-devel@gnu.org; Wed, 26 Oct 2022 23:51:44 -0400 Original-Received: from localhost ([::ffff:102.82.225.124]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000081FA6.00000000635A004C.00006A1D; Wed, 26 Oct 2022 20:51:39 -0700 Mail-Followup-To: Andrew Hyatt , emacs-devel@gnu.org Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "Emacs-devel" Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:298594 Archived-At: * Andrew Hyatt [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'. 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 -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/