Combining ontologies and SWRL rules across multiple ontologies
I have been following the Ontologies in Python textbook and have two questions:
1. Even though I have imported an ontology into another, I still cannot access the classes from the imported ontology (when I list the classes after the merge, it still only shows the original classes before the merge, but when I list the imported ontologies it shows up). Is there a way to combine ontologies so that all classes can be easily accessible just like they were created under one ontology?
2. Basically, all I am trying to do is write SWRL rules across multiple ontologies. For instance, a building ontology consists of multiple ontologies like structure, HVAC, and office space... and I want to write SWRL rules so that they can interact with each other. But I don't know how to specify namespace under SWRL rules in Owlready2, perhaps I am missing something, or is there a better way to approach it?