[alicebot-developer] AIML schema namespace

Noel Bush noel at aitools.org
Tue Jun 12 17:33:04 PDT 2007


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
> 
> _________________________________________________________________
> Play your part in making history - Email Britain! 
> http://www.emailbritain.co.uk/
> 
> _______________________________________________
> alicebot-developer mailing list
> alicebot-developer at list.alicebot.org
> http://list.alicebot.org/mailman/listinfo/alicebot-developer


More information about the alicebot-developer mailing list