Python Owlready2访问公理

Python Owlready2访问公理,python,python-3.x,ontology,owlready,Python,Python 3.x,Ontology,Owlready,我在访问现有本体的类的公理时遇到困难。我知道某个类包含我需要的公理。例如,“cold”类包含以下公理: 冷的⊓ 啤酒⊑ 积极的,和 冷的⊓ 披萨⊑ 否定的 有办法访问这些吗 from owlready2 import * onto_path.append("\Path_to_owl_file") onto = get_ontology("some_owl_file.owl") onto = onto.load() classes = list(onto.classes()) # Get

我在访问现有本体的类的公理时遇到困难。我知道某个类包含我需要的公理。例如,“cold”类包含以下公理:

冷的⊓ 啤酒⊑ 积极的,和

冷的⊓ 披萨⊑ 否定的

有办法访问这些吗

from owlready2 import *   

onto_path.append("\Path_to_owl_file")
onto = get_ontology("some_owl_file.owl")
onto = onto.load()

classes = list(onto.classes()) # Get all classes from the ontology

first_class = classes[0]
# Access axioms from this class
提前谢谢