http://inferrences/ content ?
Posted by
Fla on
URL: http://owlready.306.s1.nabble.com/http-inferrences-content-tp1821.html
Hi,
I'm trying something simple :
my_onto = owl2.get_ontology(my_ontology).load()
with my_onto:
owl2.sync_reasoner_pellet(infer_data_property_values=True, infer_property_values=True,keep_tmp_file=0,debug=2)
onto_infer = owl2.get_ontology("
http://inferrences/")
onto_infer.save("./onto_infer.nt",format="ntriples")
Question : why my file "onto_infer.nt" is empty ???
==> only one line in fact "<
http://inferrences> <
http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <
http://www.w3.org/2002/07/owl#Ontology>"
Since my rules+ontology generates some inferences i can see with this code :
myobj=my_onto[key]
print("Showing <%s>"%(key))
for prop in myobj.get_properties():
otype=prop.__bases__[0].python_name
print(" ",prop.name,"= (",otype,") ",[item for item in getattr(myobj,prop.python_name)])
Where am i wrong ?
I've trying to understand reasoning.py code but i am a python newbie and there is a lot i don't understand...
Thank you very much !