cliffxuan / fuxi

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

Residual concern with Issue 10 (June 4) #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Test data as previously supplied seems to work top down but bottoms up 
results in exceptions for these two queries:

FuXi --input-format="n3" --ns=test=http://xdors.net/demo# 
--ns=owl=http://www.w3.org/2002/07/owl# --dlp \
    --method=bottomUp   \
    --why="SELECT ?x WHERE { ?x a test:female  }" scratch.n3
echo mensch ==========================================================
FuXi --input-format="n3" --ns=test=http://xdors.net/demo# 
--ns=owl=http://www.w3.org/2002/07/owl# --dlp \
    --method=bottomUp   \
    --why="SELECT ?x WHERE { ?x a test:mensch  }" scratch.n3

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

Exceptions of the following form arise.  This seems suspiciously like the 
others I reported recently with keyErrors in convertTerm...

/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Fu
Xi-1.0.dev-py2.6.egg/FuXi/Rete/AlphaNode.py:6: 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/TopDown.py:12: DeprecationWarning: the md5 
module is deprecated; use hashlib instead
  import itertools, copy, md5
Time to build production rule (RDFLib): 7.70092010498e-05 seconds
Magic seed fact (used in bottom-up evaluation) :mensch_magic(?x)
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Fu
Xi-1.0.dev-py2.6.egg/FuXi/Rete/Magic.py:547: UserWarning: predicate symbol of 
test:has_child(?X ?OEucOySk25) is in both IDB and EDB. Marking as base
  "predicate symbol of %s is in both IDB and EDB. Marking as %s"%(term,mark))
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Fu
Xi-1.0.dev-py2.6.egg/FuXi/Rete/Magic.py:547: UserWarning: predicate symbol of 
test:person(?OEucOySk39) is in both IDB and EDB. Marking as base
  "predicate symbol of %s is in both IDB and EDB. Marking as %s"%(term,mark))
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.6/bin/FuXi", line 8, in <module>
    load_entry_point('FuXi==1.0.dev', 'console_scripts', 'FuXi')()
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/FuXi-1.0.dev-py2.6.egg/FuXi/Rete/CommandLine.py", line 495, in main
    noMagic=noMagic):
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/FuXi-1.0.dev-py2.6.egg/FuXi/Rete/Magic.py", line 179, in MagicSetTransformation
    newRules.extend(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
  File "build/bdist.macosx-10.3-fat/egg/rdflib/sparql/bison/Processor.py", line 50, in query
  File "build/bdist.macosx-10.3-fat/egg/rdflib/sparql/Algebra.py", line 312, in TopEvaluate
  File "build/bdist.macosx-10.3-fat/egg/rdflib/sparql/Algebra.py", line 165, in ReduceToAlgebra
  File "build/bdist.macosx-10.3-fat/egg/rdflib/sparql/bison/SPARQLEvaluate.py", line 273, in createSPARQLPConstraint
  File "build/bdist.macosx-10.3-fat/egg/rdflib/sparql/bison/SPARQLEvaluate.py", line 186, in mapToOperator
  File "build/bdist.macosx-10.3-fat/egg/rdflib/sparql/bison/SPARQLEvaluate.py", line 218, in mapToOperator
  File "build/bdist.macosx-10.3-fat/egg/rdflib/sparql/bison/SPARQLEvaluate.py", line 71, in convertTerm
KeyError: u'owl'

Original issue reported on code.google.com by onew...@gmail.com on 2 Jul 2010 at 8:40

GoogleCodeExporter commented 9 years ago
See: 
http://code.google.com/p/fuxi/source/detail?r=781be253fe4b15304b8679b84993794322
47a148

Original comment by chime...@gmail.com on 1 Aug 2010 at 6:07