berkantaydin / fuxi

Automatically exported from code.google.com/p/fuxi
0 stars 0 forks source link

testOWL.py: KeyError: u'owl' #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. comment out rdflib OWL import
2. execute testOWL.py

What is the expected output? What do you see instead?

testOWL.py:2: DeprecationWarning: the sets module is deprecated
  from sets import Set
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Fu
Xi-1.0.dev-py2.6.egg/FuXi/Rete/SidewaysInformationPassing.py:7: 
DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import unittest, os, sys, itertools, md5
testOwl (__main__.OwlTestSuite) ... Time to build production rule (RDFLib): 
0.000104188919067 seconds
OWL/AllDifferent/premises001
OWL/AllDifferent/conclusions001
<OWL/AllDifferent/conclusions001.rdf> :- <OWL/AllDifferent/premises001.rdf>
OWL/AllDifferent/premises001 http://www.w3.org/2002/07/owl#AllDifferent 
using <code xmlns="http://www.w3.org/1999/xhtml">AllDifferent</code> to derive 
<code xmlns="http://www.w3.org/1999/xhtml">differentFrom</code>
Original program
OWL/AllDifferent/Manifest001.rdf OWL/AllDifferent/premises001
feature:  http://www.w3.org/2002/07/owl#AllDifferent

using <code xmlns="http://www.w3.org/1999/xhtml">AllDifferent</code> to derive 
<code xmlns="http://www.w3.org/1999/xhtml">differentFrom</code>
[]
ERROR

======================================================================
ERROR: testOwl (__main__.OwlTestSuite)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "testOWL.py", line 327, in testOwl
    timings.append(self.MagicOWLProof(goals,program,factGraph,conclusionFile))
  File "testOWL.py", line 164, in MagicOWLProof
    for rule in AdditionalRules(factGraph):
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/FuXi-1.0.dev-py2.6.egg/FuXi/DLP/ConditionalAxioms.py", line 66, in AdditionalRules
    if tBox.query(FUNCTIONAL_PROPERTIES).askAnswer[0]:
  File "build/bdist.macosx-10.3-fat/egg/rdflib/Graph.py", line 738, in query
    extensionFunctions))
  File "build/bdist.macosx-10.3-fat/egg/rdflib/sparql/bison/Processor.py", line 50, in query
    extensionFunctions=extensionFunctions)
  File "build/bdist.macosx-10.3-fat/egg/rdflib/sparql/Algebra.py", line 312, in TopEvaluate
    None)
  File "build/bdist.macosx-10.3-fat/egg/rdflib/sparql/Algebra.py", line 165, in ReduceToAlgebra
    prolog))
  File "build/bdist.macosx-10.3-fat/egg/rdflib/sparql/bison/SPARQLEvaluate.py", line 273, in createSPARQLPConstraint
    for expr in reducedFilter]))
  File "build/bdist.macosx-10.3-fat/egg/rdflib/sparql/bison/SPARQLEvaluate.py", line 186, in mapToOperator
    mapToOperator(expr.right,prolog,combinationArg,constraint=constraint),
  File "build/bdist.macosx-10.3-fat/egg/rdflib/sparql/bison/SPARQLEvaluate.py", line 218, in mapToOperator
    return "'%s'"%convertTerm(expr,prolog)
  File "build/bdist.macosx-10.3-fat/egg/rdflib/sparql/bison/SPARQLEvaluate.py", line 71, in convertTerm
    return URIRef(queryProlog.prefixBindings[term.prefix] + term.localname)
KeyError: u'owl'

----------------------------------------------------------------------
Ran 1 test in 0.258s

Original issue reported on code.google.com by onew...@gmail.com on 1 Jul 2010 at 12:06

GoogleCodeExporter commented 8 years ago
Provided dictionary with owl reference.

Original comment by onew...@gmail.com on 26 Jul 2010 at 10:04

GoogleCodeExporter commented 8 years ago
Provided dictionary with owl reference.

Original comment by onew...@gmail.com on 26 Jul 2010 at 10:04