[DIG-users] examples
Brought to you by:
dturi
From: Marcin B. <mar...@wp...> - 2006-03-04 17:49:48
|
Hello Could you tell me where I can find some examples of usuage DIG interface in java applications? The only thing I found (http://dig.sourceforge.net/#examples) is very short and it has explained me how to do only a few things on my knowledge base. For example if i have defined: <defconcept name="man" /> <defconcept name="driver" /> <defconcept name="car" /> <defrole name="drives" /> <equalc> <catom name="driver" /> <and> <catom name="man" /> <some> <ratom name="drives" /> <catom name="car" /> </some> </and> </equalc> Then if I will write in my java program: ConceptId driver = ConceptId.Factory.newInstance(); Named d = driver.addNewCatom(); driver.setId("qDri"); d.setName("driver"); Set equivalents = reasoner.parentsNames(driver, kbURI); then i will get the answer that shows me that driver is a man, but I have no idea how to ask to get the information that he drives a car. Of course, the problem with driver is a simple one, but I would like to ask about more complex structures as well. Tell me if I can find somewhere examples, that explain me how to do it? Regards Marcin Barnak ---------------------------------------------------- Syriana: cel uświęca środki. W kinach od 3 marca. http://klik.wp.pl/?adr=http%3A%2F%2Fadv.reklama.wp.pl%2Fas%2Fsyriana.html&sid=686 |