W3C home > Mailing lists > Public > public-cwm-talk@w3.org > July to September 2004

q:select with list only graph

From: Jos De_Roo <jos.deroo@agfa.com>
Date: Sun, 11 Jul 2004 13:51:21 +0200
To: public-cwm-talk@w3.org
Message-ID: <OFDD108761.61607F03-ONC1256ECE.004006AD-C1256ECE.00411259@agfa.com>

given

@prefix ex: <http://example.org/ex#>.
ex:Joe a ex:Librarian; ex:hairColor "black".
ex:Mary a ex:Librarian; ex:hairColor "red".

I would expect that cwm --query

@prefix ex: <http://example.org/ex#>.
@prefix q: <http://www.w3.org/2004/ql#>.
[] q:select { (?x ?y) };
   q:where { ?x a ex:Librarian; ex:hairColor ?y }.

returns

     @prefix : <http://example.org/eg#> .
     @prefix ex: <http://example.org/ex#> .
 
      ( ex:Joe 
        "black"  ) .
      ( ex:Mary 
        "red"  ) .

but we actually get an empty graph...

-- 
Jos De Roo, AGFA http://www.agfa.com/w3c/jdroo/
Received on Sunday, 11 July 2004 07:51:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:11:01 GMT