Re: R: [DIG-users] TellsDocument
Brought to you by:
dturi
From: Daniele T. <dt...@cs...> - 2004-11-18 14:58:24
|
Luigi Iannone wrote: >Wow! >Then I suppose that it is the same for impliesc ConceptPair, isn't it? > > Yes. >So how can I distinguish the subsumed from the subsumer? > > I agree it is very bad. I will have a look again at the XMLBeans documentation and see if I can modify the schema to prevent this. But I tried at the time to no avail. For instance, in org.kr.dl.dig.reasoner.v1_1.impl.TReasoner#subsumes(Concept, Concept, URI) I hard coded the "ask" exactly for that reason. If you have any idea how to fix the schema please let me know. Daniele > >-----Messaggio originale----- >Da: Daniele Turi [mailto:dt...@cs...] >Inviato: giovedì 18 novembre 2004 15.23 >A: Luigi Iannone >Cc: dig...@li... >Oggetto: Re: [DIG-users] TellsDocument > >Luigi Iannone wrote: > > > >>Hi all, >> >>in my code I try to analyze a TellsDocument object I obtained after parsing >>a Jena DIGAdapter.translateKbToDig() result. >> >>As a first issue I obtained an exception on the namespace that I easily >>worked around. The exception is >> >>org.apache.xmlbeans.XmlException: error: The document is not a >>tells@http://dl.kr.org/dig/2003/02/lang: document element namespace >> >> >mismatch > > >>expected "http://dl.kr.org/dig/2003/02/lang" got >> >> >"http://dl.kr.org/dig/lang" > > >> >> >> >> > >The first is the namespace for DIG 1.0, the second for DIG 1.1. > > > >>As a second issue when analyzing the TellsDocument I split it in single >>tells among which, for instance, I identify the equalc with >>.getEqualcArray() method. This method returns an array of ConceptPair >>objects. >>Throughout the Javadoc I couldn't find a method for taking the first >> >> >concept > > >>in the pair or the second one. >> >>Can you help me? >> >> >> >> >> > > >I'm afraid there is no such method: you will have to go through >all possibilities :-( > > Daniele > > > -- Dr Daniele Turi Information Management Group, School of Computer Science The University of Manchester 2.100 Kilburn Building, Oxford Road, Manchester, M13 9PL, UK. Tel +44 (0) 161 275 6145 Fax 6211 http://www.cs.man.ac.uk/~dturi |