W3C home > Mailing lists > Public > public-cwm-talk@w3.org > April to June 2009

log:conjunction and named graphs

From: Henry Story <Henry.Story@Sun.COM>
Date: Fri, 17 Apr 2009 15:52:37 +0200
To: public-cwm-talk@w3.org
Message-id: <4E5B9433-21DA-49D7-B4D1-42172A776345@Sun.Com>
I don't seem to be able to get the tests for log:conjunction to work  
when altered to use the names of graphs.

------------
$ cat test2.n3
@prefix log: <http://www.w3.org/2000/10/swap/log#>.
@prefix owl: <http://www.w3.org/2002/07/owl#>.
@prefix : <#> .

# This gives the correct conclusions
#{ ( { :sky :color :blue }  { :grass :color :green } )  
log:conjunction ?F }
#  =>  { :rest :is ?F } .


#but this does not
:g = { :sky :color :blue } .
:h = { :grass :color :green } .


{ ( :g :h ) log:conjunction ?F } => { :rest :is ?F } .

------------

If I then run

cwm test2.n3 --think --apply=/Users/hjs/Programming/w3.org/swap/test/ 
owl/owl-rules.n3 --think

I don't get the

rest is { :sky color :blue . :grass :color :green . }

result I was expecting.

Any ideas?

Henry
Received on Friday, 17 April 2009 13:53:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 17 April 2009 13:53:38 GMT