- From: Yosi Scharf <syosi@MIT.EDU>
- Date: Mon, 16 Jul 2007 11:50:09 -0400
- To: Yosi Scharf <syosi@MIT.EDU>
- Cc: "Dominik Roblek" <dominik.roblek@gmail.com>, public-cwm-bugs@w3.org
That particular problem was a regression in cwm. I've reverted that
code. Tell me if it works now after doing a cvs update. (The version
of webAccess.py with the fix is 1.33).
Yosi
On Jul 16, 2007, at 10:05 AM, Yosi Scharf wrote:
>
> I can confirm the bug. There seems to be something misconfigured on
> the server. The minimal test case is running:
>
> cwm http://www.w3.org/2000/10/swap/grammar/sparql
>
> I was not hitting that bug when I run the tests because it is
> trying to generate sparql_tokens_table.py (or something like that)
> for you, and it already exists for me.
>
> Yosi
>
>
> On Jul 15, 2007, at 3:03 PM, Dominik Roblek wrote:
>
>>
>> Hi,
>>
>> I just downloaded the current Swap version from CVS
>> (dev.w3.org:/sources/public/2000/10/swap). When running "cd test;
>> make", sparql/detailed.tests#t1001 fails with the following error:
>>
>> ---
>> On of the 110/159 sparql/detailed.tests#t1001 sparql builtins
>> from cwm
>> BuiltIn sparql:semantics FAILED (<class
>> 'swap.webAccess.DocumentAccessError'>, DocumentAccessError(),
>> <traceback object at 0x8606f54>)
>> Traceback (most recent call last):
>> File "../cwm.py", line 746, in <module>
>> doCommand()
>> File "../cwm.py", line 613, in doCommand
>> think(workingContext, mode=option_flags["think"])
>> File "/home/dominik/tmp/swap/query.py", line 88, in think
>> return InferenceTask(knowledgeBase, ruleFormula, mode=mode,
>> why=why, repeat=1).run()
>> File "/home/dominik/tmp/swap/query.py", line 262, in run
>> return self.runSmart()
>> File "/home/dominik/tmp/swap/query.py", line 250, in runSmart
>> total += cy.run()
>> File "/home/dominik/tmp/swap/query.py", line 411, in run
>> return rule.once()
>> File "/home/dominik/tmp/swap/query.py", line 555, in once
>> total = query.resolve()
>> File "/home/dominik/tmp/swap/query.py", line 832, in resolve
>> k = self.matchFormula(self.statements, self.variables,
>> self._existentialVariables)
>> File "/home/dominik/tmp/swap/query.py", line 1200, in matchFormula
>> nbs = item.tryBuiltin(queue, bindings, evidence=evidence)
>> File "/home/dominik/tmp/swap/query.py", line 1741, in tryBuiltin
>> raise BuiltInFailed(sys.exc_info(), self, pred ),None
>> swap.query.BuiltInFailed: Error during built-in operation
>> 20) short=0, {{3} log:implies {"1" log:outputString x}}() ::
>> example.rq() sparql:semantics() _g_L3C39(_g_L3C39)?.
>> because:
>> ' Unable to access document
>> <http://www.w3.org/2000/10/swap/grammar/sparql>, because:\n
>> HTTP Error 406: Not Acceptable'
>> Files differ, result= 256
>> # If this is OK, cp ,temp/sparql_query1_result.rl sparql/
>> query1_result.rl
>> ######### Differences from reference output:
>> --- sparql/query1_result.rl 2006-07-31 22:37:55.000000000 +0100
>> +++ ,temp/sparql_query1_result.rl 2007-07-15
>> 16:21:28.000000000 +0100
>> @@ -1,64 +0,0 @@
>> -<?xml version="1.0"?>
>> -
>> -
>> -<sparql xmlns="http://www.w3.org/2005/sparql-results#">
>> -
>> - <head>
>> - <variable name="friend"/>
>> - <variable name="blurb"/>
>> - <variable name="age"/>
>> - <variable name="mbox"/>
>> - <variable name="name"/>
>> - <variable name="hpage"/>
>> - <variable name="x"/>
>> - </head>
>> -
>> - <results>
>> - <result>
>> - <binding name="friend">
>> - <bnode>http://example.com/swap/test/run#_g131</
>> bnode>
>> - </binding>
>> - <binding name="blurb">
>> - <literal
>> datatype="http://www.w3.org/1999/02/22-rdf-syntax-
>> ns#XMLLiteral"><p
>> xmlns="http://www.w3.org/1999/xhtml">My name is
>> <em>Alice</em></p></literal>
>> - </binding>
>> - <binding name="age">
>> - <unbound/>
>> - </binding>
>> - <binding name="mbox">
>> - <literal></literal>
>> - </binding>
>> - <binding name="name">
>> - <literal>Alice</literal>
>> - </binding>
>> - <binding name="hpage">
>> - <uri>http://work.example.org/alice/</uri>
>> - </binding>
>> - <binding name="x">
>> - <bnode>http://example.com/swap/test/run#_g130</
>> bnode>
>> - </binding>
>> - </result>
>> - <result>
>> - <binding name="friend">
>> - <bnode>http://example.com/swap/test/run#_g122</
>> bnode>
>> - </binding>
>> - <binding name="blurb">
>> - <unbound/>
>> - </binding>
>> - <binding name="age">
>> - <literal
>> datatype="http://www.w3.org/2001/XMLSchema#integer">30</literal>
>> - </binding>
>> - <binding name="mbox">
>> - <uri>mailto:bob@work.example.org</uri>
>> - </binding>
>> - <binding name="name">
>> - <literal xml:lang="en">Bob</literal>
>> - </binding>
>> - <binding name="hpage">
>> - <uri>http://work.example.org/bob/</uri>
>> - </binding>
>> - <binding name="x">
>> - <bnode>http://example.com/swap/test/run#_g123</
>> bnode>
>> - </binding>
>> - </result>
>> - </results>
>> -</sparql>
>>
>> ######### from normal case sparql_query1_result.rl: cwm -n3
>> sparql/sparql_builtin1.n3 --think --strings
>> make: *** [quick] Error 255
>> ---
>>
>> Dominik
>>
>>
>
>
Received on Monday, 16 July 2007 15:50:30 UTC