getting a python value for str:concatenation crashes on unkown datatypes?

I think it should just not find an answer, rather than crashing...

I'm perhaps running some wierd version of cwm.

And the data is sensitive.

the rules are in http://www.w3.org/2002/12/cal/upcomingBrief.n3

With chatty=30, it gives this:

       Running cyclic system [R3]
        Trying rule R3 ===================
                {6467} ::         E rdf:type cal:Vevent.
                {6467} ::         E     when     WHEN.
                {6467} ::         E cal:summary     WHAT.
                {6467} ::       li2 str:concatenation       K0.
                {6467} ::       li4 str:concatenation       K1.
                {6467} ::       li6 str:concatenation       K2.
                {6467} ::       li8 str:concatenation       K9.

connolly@dirk:~/w3ccvs/WWW/Team/EM$ python
~/w3ccvs/WWW/2000/10/swap/cwm.py
~/w3ccvs/WWW/2002/12/cal/upcomingBrief.n3 ,emw.rdf --think --strings
--with 2005-11-14
Traceback (most recent call last):
  File "/home/connolly/w3ccvs/WWW/2000/10/swap/cwm.py", line 713, in ?
    doCommand()
  File "/home/connolly/w3ccvs/WWW/2000/10/swap/cwm.py", line 583, in
doCommand
    think(workingContext, mode=option_flags["think"])
  File "/home/connolly/w3ccvs/WWW/2000/10/swap/query.py", line 79, in
think
    return InferenceTask(knowledgeBase, ruleFormula, mode=mode, why=why,
repeat=1).run()
  File "/home/connolly/w3ccvs/WWW/2000/10/swap/query.py", line 251, in
run
    return self.runSmart()
  File "/home/connolly/w3ccvs/WWW/2000/10/swap/query.py", line 239, in
runSmart
    total += cy.run()
  File "/home/connolly/w3ccvs/WWW/2000/10/swap/query.py", line 399, in
run
    return rule.once()
  File "/home/connolly/w3ccvs/WWW/2000/10/swap/query.py", line 521, in
once
    total = query.resolve()
  File "/home/connolly/w3ccvs/WWW/2000/10/swap/query.py", line 667, in
resolve
    return self.unify(self.statements, self.variables,
self._existentialVariables)
  File "/home/connolly/w3ccvs/WWW/2000/10/swap/query.py", line 953, in
unify
    bindings.copy(), nb, evidence = evidence + [reason])
  File "/home/connolly/w3ccvs/WWW/2000/10/swap/query.py", line 879, in
unify
    nbs = item.tryBuiltin(queue, bindings, heavy=0, evidence=evidence)
  File "/home/connolly/w3ccvs/WWW/2000/10/swap/query.py", line 1208, in
tryBuiltin
    result = pred.evalObj(subj, BNone, BNone, proof, BNone)
  File "/home/connolly/w3ccvs/WWW/2000/10/swap/term.py", line 1187, in
evalObj
    return self.store._fromPython(self.evaluateObject(subj.value()))
  File "/home/connolly/w3ccvs/WWW/2000/10/swap/term.py", line 566, in
value
    res.append(x.value())
  File "/home/connolly/w3ccvs/WWW/2000/10/swap/term.py", line 1040, in
value
    raise ValueError("Attempt to run built-in on unknown datatype %s of
value %s."
ValueError: Attempt to run built-in on unknown datatype tz of value
2005-12-16T08:30:00.


ugh... I can't find my way around term.py;
it's got lots of lines >80 chars.

And it seems odd to have the built-in stuff in term.py at all; I think
we talked about that.

-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/
D3C2 887B 0F92 6005 C541  0875 0F91 96DE 6E52 C29E

Received on Thursday, 15 December 2005 15:40:48 UTC