Problem with calling a func from a class

My task is to load an .owl file(which is already done), and print out the ontology in c++.

The following is what I have done:

1. I used autordf::Factory f; to load the file.
2. I set autordf::ontology::Ontology x(&f, true); so that I can see the details.

The problem is I need to print out the ontology which means I need to know the ancestors() and predecessors() of each class(just like Protege does). But now I can only get what in the ontology.

You can find the c++ library here: https://github.com/ariadnext/AutoRDF

Last edited on
So what is your problem?
Topic archived. No new replies allowed.