I mean the code for automatic loading ontology into the table provided in jena examples in the dev. guide. it can load the ontology into a table. but the query won't return results to me. in contrast, the new code you put in the previous posts can load ontology and the same query also can return the correct results to me. good work. thanks a lot for help.