How to move concepts from one ontology to another

Posted by mkumba on
URL: http://owlready.306.s1.nabble.com/How-to-move-concepts-from-one-ontology-to-another-tp1386.html

I have an ontology loaded.  I can step through the classes and properties.

What I would like to be able to do is create a new ontology with some of the concepts from the first one.

I need to do two things:
1) create a new blank ontology (which I'll call ontoOut).  There must be a way that I'm not findind, but in the mean time, I created an empty ontology in protege and opened that, so I have a work arouind
2) add concepts (classes and properties) to ontoOut.  If there were an addClass method and and addProperties method that would do it. I tried this ontoOut[gist.Person] which didn't fail, but didn't show up in the output but it didn't make it to the output when I said ontoOut.save().  gist is the namespace and gist.Person is a class from the input ontology, and when I interogate it (for instance gist.Person.equivalent_to I get the restrictions.

I feel like I'm close but don't quite see how to bridge this last gap