[DIG-users] TellsDocument
Brought to you by:
dturi
From: Luigi I. <ia...@di...> - 2004-11-18 13:55:46
|
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" at org.apache.xmlbeans.impl.store.Root.verifyDocumentType(Root.java:501) at org.apache.xmlbeans.impl.store.Root.autoTypedDocument(Root.java:417) at org.apache.xmlbeans.impl.store.Root.loadXml(Root.java:1817) at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderB ase.java:342) at org.kr.dl.dig.v1_1.TellsDocument$Factory.parse(TellsDocument.java:126) at ... 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? Thanks in advance Luigi |