I'm trying diligently to get up to speed on FuXi as part of an effort to
demonstrate some basic
semantic web inferencing via Python. In trying to wrap my head around all of
this, I am running
through the basic examples in the wiki and finding that one of them doesn't
work. It appears
that the actual output is quite different from what is expected as outlined in
the wiki.
Is FuXi still in development or is this project not being actively developed
anymore?
$ FuXi --ruleFacts --why="ASK { test:Ghent test:path test:Amsterdam }" --
ns=test=http://www.w3.org/2002/03owlt/TransitiveProperty/premises001# --dlp --
output=conflict --debug --method=both --strict=defaultDerived
http://www.w3.org/2002/03owlt/TransitiveProperty/premises001
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Fu
Xi-
1.0_rc_II.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_rc_II.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.5101852417e-05 seconds
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Fu
Xi-
1.0_rc_II.dev-py2.6.egg/FuXi/Rete/Magic.py:537: UserWarning: predicate symbol
of test:path(?X
?oEeWPnfn20) is in both IDB and EDB. Marking as derived
"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-rc-II.dev', 'console_scripts', 'FuXi')()
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/FuXi-
1.0_rc_II.dev-py2.6.egg/FuXi/Rete/CommandLine.py", line 404, in main
defaultDerivedPreds))
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/FuXi-
1.0_rc_II.dev-py2.6.egg/FuXi/Rete/Magic.py", line 71, in SetupDDLAndAdornProgram
return AdornProgram(factGraph,rules,GOALS,derivedPreds)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/FuXi-
1.0_rc_II.dev-py2.6.egg/FuXi/Rete/Magic.py", line 323, in AdornProgram
adornedRule=AdornRule(derivedPreds,clause,term)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/FuXi-
1.0_rc_II.dev-py2.6.egg/FuXi/Rete/Magic.py", line 247, in AdornRule
headArc = len(N)==1 and N[0] == GetOp(newHead)
File "build/bdist.macosx-10.3-fat/egg/rdflib/Collection.py", line 78, in __len__
AssertionError: There is a loop in the RDF list!
(http://www.w3.org/2002/03owlt/TransitiveProperty/premises001#path has been
processed
before)
Original issue reported on code.google.com by
[email protected]on 9 May 2010 at 9:06