W3C home > Mailing lists > Public > public-cwm-talk@w3.org > October to December 2005

Re: quick note on using list:in with SPARQL? [was: querying RDF lists]

From: <jos.deroo@agfa.com>
Date: Sat, 8 Oct 2005 21:17:02 +0200
To: Dan Connolly <connolly@w3.org>
Cc: public-cwm-talk@w3.org
Message-ID: <OFBE1D54D0.60402AAD-ONC1257094.006775C3-C1257094.0069DC71@agfa.com>

really wanted to have that rpo:mu test case running with cwm
as it is also an example of using lists with SPARQL
it now works I believe..

i.e. SPARQL query
### http://www.agfa.com/w3c/euler/example003Q.rq

PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rpo: <http://eulersharp.sourceforge.net/2003/03swap/rpo-rules#>
PREFIX : <http://wopeg.mitra.com/triples/fa/case001#>

  { ?X rpo:mu ?Y }

  { ?X rpo:mu ?Y }

when given


now returns
      ( :Ann 
        :AdultAge  )
         rpo:mu 0.5833 .
      ( :Ann 
        :AdultAgeOrIncreasedIntraocularPressure  )
         rpo:mu 0.722222222222 .
      ( :Ann 
        :ChildAge  )
         rpo:mu 0.4167 .
      ( :Ann 
        :ChildAgeAndIncreasedIntraocularPressure  )
         rpo:mu 0.4167 .
      ( :Ann 
        :IncreasedIntraocularPressure  )
         rpo:mu 0.722222222222 .
      ( :Ann 
        :NonIncreasedIntraocularPressure  )
         rpo:mu 0.277777777778 .
      ( :Ann 
        :NormalIntraocularPressure  )
         rpo:mu 0.277777777778 .

cwm is now happy with above rpo-rules :-)

Jos De Roo, AGFA http://www.agfa.com/w3c/jdroo/

Jos De_Roo
06/10/2005 00:59

        To:     Dan Connolly <connolly@w3.org>@AGFASMTP
        cc:     "Miles, AJ (Alistair)" <A.J.Miles@rl.ac.uk>, dwood@mindswap.org, "Eric 
Prud'hommeaux" <eric@w3.org>, public-cwm-talk@w3.org
        Subject:        Re: quick note on using list:in with SPARQL? [was: querying RDF lists]

Yes Dan, will do my utmost best to spare some time to do so (and you 
kindly asked
that before, but have so much on my todo stack .. :))
At least I'm very happy that we can run such queries with cwm as pointed 
out in

Jos De Roo, AGFA http://www.agfa.com/w3c/jdroo/

PS slightly related and in realm of fuzzy set, cwm seems to loop with last 
{?X :mu (?C ?M). (1.0 ?M) math:difference ?N} => {?X :mu 
(?C^owl:complementOf ?N)}.
in http://www.agfa.com/w3c/euler/rpo-rules.n3
i.e. it loops for 3rd n3ql query in http://www.agfa.com/w3c/euler/example003Q.n3
when running
cwm http://lists.w3.org/Archives/Public/public-cwm-talk/2005JulSep/att-0021/example001P.n3 http://lists.w3.org/Archives/Public/public-cwm-talk/2005JulSep/att-0021/example002P.n3 http://www.agfa.com/w3c/euler/rpo-rules.n3 -think -query=http://www.agfa.com/w3c/euler/example003Q.n3

when running
euler http://lists.w3.org/Archives/Public/public-cwm-talk/2005JulSep/att-0021/example001P.n3 http://lists.w3.org/Archives/Public/public-cwm-talk/2005JulSep/att-0021/example002P.n3 http://www.agfa.com/w3c/euler/rpo-rules.n3 -nope -think -query http://www.agfa.com/w3c/euler/example003Q.n3

we get answer


Dan Connolly <connolly@w3.org>
05/10/2005 17:48

        To:     "Eric Prud'hommeaux" <eric@w3.org>, Jos 
De_Roo/AMDUS/MOR/Agfa-NV/BE/BAYER@AGFA, "Miles, AJ (Alistair)" 
        cc:     public-cwm-talk@w3.org, dwood@mindswap.org
        Subject:        quick note on using list:in with SPARQL? [was: querying RDF lists]

On Wed, 2005-10-05 at 11:55 +0100, Miles, AJ (Alistair) wrote:
[... a comment on SPARQL ...
I'm following up here in public-cwm-talk ...]
> > See:
> > a service description approach to accessingCollections
> > http://lists.w3.org/Archives/Public/public-rdf-dawg/2005JanMar/0169
> > 
> I hadn't thought of this solution.  Given this, I understand the WG's 
> I think it would be helpful if someone wrote this up in the near future 
- maybe DAWG could write a short note describing the options?  Linked from 
the SPARQL language spec so it's easy to find? 

Yes, I have been thinking about it for a while.

Jos, EricP, did I ever ask you about that?
Are you interested to write a little 2 page
note on querying lists with list:in ?

Anybody else?

Dan Connolly, W3C http://www.w3.org/People/Connolly/
D3C2 887B 0F92 6005 C541  0875 0F91 96DE 6E52 C29E
Received on Saturday, 8 October 2005 19:17:20 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:01:04 UTC