Queries using RDFLIB

Posted by Marcos Motta on
URL: http://owlready.306.s1.nabble.com/Queries-using-RDFLIB-tp2566.html

Hi Everyone I am new in the ontology field, and I don’t know if my question is easy or not. I am a Ph.D. student in Transportation Planning, using an ontology (HBOnto - https://github.com/dzolzaya/HRBModel/blob/master/HBOnto.owl) to deal with a critical task in my thesis. I have been studying the book ontologies-with-python-programming-owl-20-ontologies-with-python-and-owlready2 and testing some examples. Unfortunately, I have not been able to perform queries using rdflib. I did exactly how it is in the book, but can not get the result, I am always receiving a empty list as a result. When i’ve test with the book’s ontology (bacteria) works weel, but with HBOnto doesnt work. I’ve put below some code parts in pictures. I do really apreciate some help. Thanks