:-use_module(library(trill)). :- trill. % or :- trillp. or :- tornado. /* This knowledge base is inpired by the people+pets ontology from Patel-Schneider, P, F., Horrocks, I., and Bechhofer, S. 2003. Tutorial on OWL. The knowledge base indicates that the individuals that own an animal which is a pet are nature lovers, from Zese, R.: Reasoning with Probabilistic Logics. ArXiv e-prints 1405.0915v3. Doctoral Consortium of the 30th International Conference on Logic Programming (ICLP 2014), July 19-22, Vienna, Austria. */ /** ?- prob_instanceOf('natureLover','Kevin',Prob). ?- instanceOf('natureLover','Kevin',ListExpl). */ owl_rdf(' ]> has_animal cat Fuffy 0.4 Kevin Tom 0.3 Dino Kevin Spike '). subClassOf('cat','pet'). subClassOf('dinosaur','pet'). annotationAssertion('disponte:probability',subClassOf('cat','pet'),literal('0.6')). annotationAssertion('disponte:probability',subClassOf('dog','pet'),literal('0.8')). inverseProperties('has_animal','is_animal_of').