[alicebot-developer] AIML schema namespace

Joe Tallett joe_tallett at hotmail.com
Fri Jun 15 04:26:56 PDT 2007


Thanks Noel,

I've got it working by using a seperate namespace for any search tags and 
then writing an 'AIMLprocessor' class called 'search processor'. I needed to 
add some fudging code in the 'generic parser' class, but it works just fine.

The project is part of my Masters Dissertation and the next stage is to test 
my adapted program D on users. Does anyone know of anywhere i could get 
access to a tomcat server connected to the net for a couple of months to 
deploy my app and get some conversation data?

Cheers

Joe

----------------------------------------------------------------------------------------------------------------------------

As you know, there's no <search> in AIML.  Keeping grammar
customizations in a separate namespace is good practice, so if you want
to use a different AIML interpreter in the future you can be clear about
where incompatibilities may arise.  There was a move a few months ago
(or more?  time flies) to build up a "meta-specification" called xAIML
that would provide a mechanism for producing machine-readable
specifications of derivations of AIML.  This hasn't gotten much
traction, though if you dig around you can find information on it and
might wish to contribute.

In response to your question -- yes, the schema is being read from
resources/schema/AIML.xsd on your local machine.  The path to this can
be configured in the core.xml file.

I think with Program D 4.6 you may be able to follow the pattern of how
AIML element processors are implemented and add your own, registering it
to handle your separate namespace.  If this doesn't work, I'm planning
on (when I can get the time) releasing a version that will essentially
support the xAIML approach by allowing you to insert implementation
pointers in the schema for custom elements.  My main concern, as
mentioned, is making sure that we preserve a clear distinction between
"standard AIML" and "Joe's AIML".

Noel

Joe Tallett wrote:
>Thanks, i was having trouble understanding what was going on.
>
>another question - when i include a tag called <search> in my aiml files 
>program D throws a sax parse exception saying...
>
>Invalid content was found starting with element 'search'. One of 
>'{"http://alicebot.org/2001/AIML-1.0.1":topic, 
>"http://alicebot.org/2001/AIML-1.0.1":category}' is expected.
>
>Where does program D get this information from if the URI specified doesn't 
>have a file associated with it? Is it merely reading the AIML schema from 
>my local machine?
>
>I have got around the problem by specifying that the tag <search> belongs 
>to another namespace which i made up, but it would be nicer if i could get 
>program d to accept <search> as aiml.
>
>Cheers Joe

_________________________________________________________________
Win tickets to the sold out Live Earth concert!  http://liveearth.uk.msn.com



More information about the alicebot-developer mailing list