alanruttenberg / lsw2

OWL and Semantic Web toolkit for Common Lisp, used for construction and reasoning over ontologies and ontology-structured data
28 stars 1 forks source link

Erro using reasoner when lsw is started using the "--eval" option to load r21 system #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This issue was caused when I loaded our r21 system that we are using for dental 
ontology work.

What steps will reproduce the problem?

1. Start lsw in a terminal window using the command line:
lsw -r4096 -b64 --eval "(asdf::oos 'asdf::load-op 'r21)"

2. Load the r21 system:
(asdf::oos 'asdf::load-op 'r21)

3.  Load the ontology:
(setq o (load-ontology 
"~/Repositories/ohd-ontology/src/ontology/pitt-ub-ohsu-r21/r21-top.owl"))

4. Instantiate the reasoner:
(instantiate-reasoner o  :pellet-sparql)

5.  Run sparql query:
(sparql '(:select (?s) (:count t) (?s :a !owl:Thing)) :use-reasoner :pellet :kb 
o)

This fails with error:
#<THREAD "interpreter" {2A384D34}>: Debugger invoked on condition of
type PACKAGE-ERROR
 Package "!OWL" not found.

To work around, simple start with lsw without the "--eval" option.
i.e.: lsw -r4096 -b64

Original issue reported on code.google.com by wddun...@gmail.com on 27 Mar 2012 at 7:35