:-use_module(library(trill)). :- if(current_predicate(use_rendering/1)). :- use_rendering(graphviz). :- endif. :- 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 Fuffy 0.4 Kevin Tom 0.3 '). subClassOf('cat','pet'). annotationAssertion('disponte:probability',subClassOf('cat','pet'),literal('0.6')).