On Sat, Apr 20, 2013 at 12:11 AM, suganya <[email protected]> wrote: > Hi > i am having two ontologies... i want to compare the properties > and classes of those two and they should be merged and written on a new > ontology... can anyone help to write code in jena....
Replying *just* to the list; I doubt other people want me filling up their inboxes… What have you tried to far? Some of the other recent posts in this list have asked about enumerating the properties declared in an ontology, so you can browse the archive to find out how to find the properties in an ontology. Things like OntModel#listObjectProperties [1] will probably be helpful. You don't say what you mean by merged, but OntProperty#addEquivalentProperty [2] and OntProperty#addSubProperty [3] will probably be useful, if you've already determined how you're going to *compare* properties. //JT [1] http://jena.apache.org/documentation/javadoc/jena/com/hp/hpl/jena/ontology/OntModel.html#listObjectProperties() [2] http://jena.apache.org/documentation/javadoc/jena/com/hp/hpl/jena/ontology/OntProperty.html#addEquivalentProperty(com.hp.hpl.jena.rdf.model.Property) [3] http://jena.apache.org/documentation/javadoc/jena/com/hp/hpl/jena/ontology/OntProperty.html#addSubProperty(com.hp.hpl.jena.rdf.model.Property) -- Joshua Taylor, http://www.cs.rpi.edu/~tayloj/
