|
From: sukesh j. <jai...@ho...> - 2008-07-16 13:33:25
|
Hi all I have multipleontologies say Ontology o1 which contains the concept and relationdefinition namely C1, C2 and R1(C1,C2). I have second ontology o2 whichdefines instances I1 memberOf C1, I2 memberOf C2 and relationInstance R1(I1,I2). The second Ontology also imports first ontology. I loadboth ontologies and register to the reasoner at the same time. Now Iwant to find the relation between two instances I1 and I2 using query.I tried with the query [R1(?x,?y)] but there is no result found even though Ihave defined the relationInstance in ontology o2. Can we define relation in one ontology and relation instance in another ontology?? If so then let me know what needs to be done to get the result. Kindly let me know if I am doing something wrong. I created an example of the above scenario from the online demo on the wsml2reasoner site. I even tried to use thesame namespace for both the ontologies which I created from the demo.I just placed all the concepts and relation definition in the ontologyAboutHumans with the namespace _'http://www.example.org#' and all the instances of the concepts and relation in another onotology named HumanInstance with the same namespace _'http://www.example.org#'and imported the AboutHumans ontology in it. But still when I query forthe instances which are related using the relation definition definedin the first ontology (AboutHumans) and relationInstance in secondontology (HumanInstance), I get no results. I am attaching both the wsml files of ontologies (AboutHumans, HumanInstanceOntology) and source code in this mail. It would be ofgreat help if someone can provide a sample working example (wsml fileswith namespace and source code) for such a scenario or links to where Ican find one. Hope to receive an early and positive reply from you. Thanks & Regards, Sukesh. Windows Live Messenger just got better with Messenger TV. Share your favourite videos online with your near and dear ones. Check it out! _________________________________________________________________ Searching for the best deals on travel? Visit MSN Travel. http://msn.coxandkings.co.in/cnk/cnk.do |