From: Jeovane R. <jeo...@gm...> - 2013-01-29 20:59:03
|
So guys, does anyone know tell me if it is possible to do this that I'm wishing? Thank you. 2013/1/28 Jeovane Reges <jeo...@gm...> > Hi Jack, I had seen file that you sent me and unfortunately it did not > solve my problem :( > > This algorithm print my domain, object property and range for any ontology > - http://pastebin.com/VPnN6VCx > To my ontology attached the above algorithm returns the following - > http://pastebin.com/KX3QZC59 > > As you can see my class Disease is not range from no other class. > What I would like to print my ontology was obeying the following order. > > 1. print the class that are only domain > 2. print the class that are range of my class that there is range of any > other class. (Print the class that are range from my step 1). > 3. print the class that are range from step 2. > > However, I do not know right where to start this if they could give me a > light would be very happy. > > > 2013/1/28 Jack <tr...@gm...> > >> Hello, >> >> Though HermiT Java interface, one can print the class hierarchy using the >> method method >> >> printHierarchies(PrintWriter out,boolean classes,booleanobjectProperties, >> boolean dataProperties). This method prints the hierarchies into a >> functional style syntax ontology. A code example demonstrating how to use >> this method is attached. Hope this helps. >> >> Kind Regards, >> >> Jack >> >> On Tuesday, 22 January 2013 22:18:09 UTC, Jeovane Reges wrote: >>> >>> Hello everybody, good night. >>> Guys, suppose I have an ontology formed by the following classes *{A, >>> B, C, D}.* >>> Where the class *A* is the domain of class *B* and *C*. And the class *B >>> * is domain class *D*. >>> Furthermore, imagine that the order in which the class were created in >>> ontology is *{B, C, A, D}*. >>> What I would like to know was whether it is possible to print my classes >>> in accordance with the domain hierarchy, i.e. even if the classes have been >>> created in the order *{B, C, A, D}*, to print them you could print in >>> the order *{A, B, C, D}*. >>> >>> Does anyone know if it is possible to do this? If so, how that would be? >>> Since already thank you for your attention. >>> >> > |