RE: [DIG-users] Dig 1.1 problem (TELLS)
Brought to you by:
dturi
From: LECUE F. RD-TECH-R. <fre...@fr...> - 2006-05-16 06:49:03
|
Hi all, the following code: /*****/ AsksDocument asks =3D AsksDocument.Factory.newInstance(); Ask t =3D asks.addNewAsks(); =09 asks.getAsks().setUri(kb); =09 ConceptPairId b =3D asks.addNewAsks().addNewDisjoint(); =09 b.addNewCatom().setName("http://www.example.org/ontologies/example#TrainT= icket"); b.addNewCatom().setName("http://www.example.org/ontologies/example#Flight= Ticket"); =09 ResponsesDocument responsesAsks =3Dreasoner.asks(asks);=20 /*****/ Return that=20 /****/ <responses xsi:schemaLocation=3D"http://dl.kr.org/dig/2003/02/lang = http://dl-web.man.ac.uk/dig/2003/02/dig.xsd" = xmlns=3D"http://dl.kr.org/dig/2003/02/lang" = xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"> <error code=3D"102" message=3D"XML error: Non-DIG element = found">xml-fragment</error> </responses> /*****/ Why "xml-fragment" is added to the AsksDocument. Is it possible to ask a = KB with "asks.addNewAsks().addNewDisjoint()". Actually "xml-fragment" is = added and it should be not included. Freddy. -----Message d'origine----- De : LECUE FREDDY RD-TECH-REN=20 Envoy=E9 : mardi 16 mai 2006 08:16 =C0 : 'dt...@cs...' Cc : 'dig...@li...' Objet : RE: [DIG-users] Dig 1.1 problem (TELLS) Ok, but how do you define: <disjoint id=3D"q3a"> <catom name=3D"Ticket"/> <catom name=3D"Flight"/> </disjoint>=20 Thank you Freddy -----Message d'origine----- De : Daniele Turi [mailto:dt...@cs...] Envoy=E9 : lundi 15 mai 2006 18:14 =C0 : LECUE FREDDY RD-TECH-REN Cc : dig...@li... Objet : Re: [DIG-users] Dig 1.1 problem (TELLS) LECUE FREDDY RD-TECH-REN wrote: >Hi all, > > according to the Api of DIG 1.1, there is not the asks form of = "Disjoint".=20 > No, this is not true, you can add disjoint to asks: asks.addNewAsks().addNewDisjoint() -- Dr Daniele Turi School of Computer Science The University of Manchester ESNW 1.17 Kilburn Building, Oxford Road Manchester, M13 9PL, UK. Tel +44 (0) 161 275 0675 Fax 6204 http://www.cs.man.ac.uk/~dturi |