Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 94297 invoked from network); 28 Jul 2005 23:22:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Jul 2005 23:22:52 -0000 Received: (qmail 58663 invoked by uid 500); 28 Jul 2005 23:22:51 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 58650 invoked by uid 99); 28 Jul 2005 23:22:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jul 2005 16:22:51 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [62.140.213.100] (HELO blossom.betaversion.org) (62.140.213.100) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jul 2005 16:22:44 -0700 Received: by blossom.betaversion.org (Postfix, from userid 101) id 65CD43B47EA; Fri, 29 Jul 2005 00:14:55 +0100 (BST) X-AntiVirus-Version: ClamAV 0.86.2/995 X-AntiSpam-Version: SpamAssassin 3.0.4 X-AntiSpam-Status: No (score=0.0/limit=7.5) Received: from [192.168.1.100] (adsl-69-106-203-159.dsl.irvnca.pacbell.net [69.106.203.159]) by blossom.betaversion.org (Postfix) with ESMTP id 9409B3B47E7 for ; Fri, 29 Jul 2005 00:14:54 +0100 (BST) Message-ID: <42E968CB.1070709@apache.org> Date: Thu, 28 Jul 2005 16:22:51 -0700 From: Stefano Mazzocchi User-Agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: jackrabbit-dev@incubator.apache.org Subject: Re: associations between nodes References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N James Myers wrote: >> hi jim, >> >> > Prof Mazzochi sounds 'way off' ;-) , >> well, so be it ;) >> i just thought that something like this could address michaels idea >> of the bi-directional references. > > Absolutely - the example was fine, I was just concerned about Stephano > being allowed to 'officially' mess with students'minds :-) I'll continue to do it unofficially then ;-) >> > but thats how I've seen references - as the way to encode RDF. I >> forget how >> > far we backed off in the final spec, but the idea of including a >> "following' >> > clause in the query language was a way to let you query along graphs. >> agreed. with respect to query languages we certainly have the liberty >> to extend beyond the spec in jackrabbit. but maybe jcr:deref() is what >> you were looking for. > > > I think that's where consensus led us - jcr:deref allows you to > 'manually' traverse references to find things. The 'following' clause in > the query language was intended to let you substitute named reference > relationships in for the parent/child relationship in search, so one > could formulate a query along the lines of "find all works where creator > = bob that are 'derived from' /a/b/c" where 'derived from' would be a > reference property and you'd want to recursively dereference nodes > linked by 'derived by' looking for those created by Bob. While useful, > there were/are valid concerns about this being 'expensive', 'following' > being nonstandard, etc. so it was pulled out with the possibility that > it could be added back in an alternate query language. If we find a way to encode 'named' references, it would be possible to write a Sparql implementation in JackRabbit and turn it into a triple store. It if scaled and wasn't that hacky, it would make a lot of people happy, especially because there is no standard API for adding and querying triple stores in the java world (and there are at least 4 competing-yet-similar APIs) At the same time, I'm not holding my breath and I don't have time to make this happen. -- Stefano.