Re: [DIG-users] Problem with accessing RACER via DIG interface
Brought to you by:
dturi
From: <r.f...@tu...> - 2004-06-14 11:50:48
|
On 06.06.2004, at 18:51, Gennaro Bruno wrote: > Thanks you for your answer!!! > This command seems to be exactly what I need but > however I have a problem by using it. > I did not understand if this command should be used to load an=20 > existing KB into RACER or to use an ontology which has been previously > loaded into RACER (ex. via tcp). > It seems that using the <useKB name=3D"..."/> command, RACER create a=20= > new empty > KB whose the uri corresponds to the "name" parameter. > Are URI and name the same? I did not think so. Load your KB using Rice. Let us assume, the name of the kb is TEST. Then, send the following using the DIG protocol (HTTP). <?xml version=3D"1.0"?> <useKB xmlns=3D"http://dl.kr.org/dig/lang" xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=3D"http://dl.kr.org/dig/lang http://potato.cs.man.ac.uk/dig/level0/dig.xsd" name=3D"TEST"/> Racer returns a URI that can be used in subsequent queries. Regards, Ralf > Through RICE I can see that the corresponding tbox exists but it is=20 > empty. > Thank you in advance. > Gennaro > > Ralf M=F6ller wrote: > >> >> On Thursday, June 3, 2004, at 06:49 PM, Gennaro Bruno wrote: >> >>> Hello everybody, >>> As the subject of my mail explains, I have a problem >>> using the DIG interface for accesing RACER. Let me explain better... >>> What I need to do is accessing an existing ontology by using the DIG=20= >>> interface >>> without be forced to create a new one (newKB) and fill it by using=20= >>> "tells" commands. >>> In my example, I loaded it through the RACER TCP interface by using=20= >>> the following command >>> (daml-read-document=20 >>> "http://www-lsr.imag.fr/Les.Personnes/Gennaro.Bruno/family1.daml") >>> Now, what URI do I have to use for posing ASK QUERIES through the=20 >>> DIG interface? >>> I asked for it because if I use=20 >>> "http://www-lsr.imag.fr/Les.Personnes/Gennaro.Bruno/family1" as URI >>> it does not work. This is an example: >> >> >> For this purpose, Racer provides an extension to DIG1.1. Instead of=20= >> <newKB> you can use >> <useKB=20 >> name=3D"http://www-lsr.imag.fr/Les.Personnes/Gennaro.Bruno/family1"/> >> Please make sure that the name is correct by asking, e.g.,=20 >> (all-tboxes). >> >> Afterwards, the following query should be processed correctly (I did=20= >> not try though). >> >> Sorry for any inconvenience. Will add this to the Racer manual as=20 >> soon as possible :-) >> >> Ralf >> >> >>> >>> <?xml version=3D"1.0" encoding=3D"UTF-8"?> >>> <asks >>> xmlns=3D"http://dl.kr.org/dig/lang" >>> xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" >>> xsi:schemaLocation=3D"http://dl.kr.org/dig/lang >>> http://potato.cs.man.ac.uk/dig/level0/dig.xsd" >>> uri=3D"http://www-lsr.imag.fr/Les.Personnes/Gennaro.Bruno/family1">= >>> <allConceptNames id=3D"q1"/> >>> <allRoleNames id=3D"q2"/> >>> <allIndividuals id=3D"q3"/> >>> </asks> >>> >>> and this is the response >>> >>> HTTP/1.1 100 Continue >>> HTTP/1.1 200 OK >>> content-length: 350 >>> content-type: text/xml >>> server: CL-HTTP/70.180 (LispWorks; 1.8.9) >>> date: Thu, 03 Jun 2004 14:27:31 GMT >>> content-location: http://129.88.39.33:8080/ >>> <?xml version=3D"1.0" encoding=3D"UTF-8"?> >>> <error message=3D"No such knowledge base known:=20 >>> http://www-lsr.imag.fr/Les.Personnes/Gennaro.Bruno/family1"/> >>> <error message=3D"Cannot handle tag=20 >>> http://dl.kr.org/dig/lang#allConceptNames"/> >>> <error message=3D"Cannot handle tag=20 >>> http://dl.kr.org/dig/lang#allRoleNames"/> >>> <error message=3D"Cannot handle tag=20 >>> http://dl.kr.org/dig/lang#allIndividuals"/> >>> >>> How can I access this KB through the DIG interface? Is this=20 >>> possible? If so what URI do I have to use to access it? >>> Thank you in advance for your answers. >>> Sincerely, >>> Gennaro Bruno >>> >>> >>> >>> ------------------------------------------------------- >>> This SF.Net email is sponsored by the new InstallShield X. >>> =46rom Windows to Linux, servers to mobile, InstallShield X is the = one >>> installation-authoring solution that does it all. Learn more and >>> evaluate today! http://www.installshield.com/Dev2Dev/0504 >>> _______________________________________________ >>> DIG-users mailing list >>> DIG...@li... >>> https://lists.sourceforge.net/lists/listinfo/dig-users >>> >> >> > > |