AIML schema namespace

View: New views
7 Messages — Rating Filter:   Alert me  

AIML schema namespace

by JoeyT :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I'm developing a bot using program d and i am attempting to add my own aiml
tags. Currently, all aiml files with my new tags in are not being loaded
properly by program d due to the 'invalid' tags.

I currently get this error:

Error parsing "file:/P:/var/programd/resources/testing/AIML.aiml":
cvc-complex-type.2.4.a: Invalid content was found starting with element
'search'. One of '{"http://alicebot.org/2001/AIML-1.0.1":star,
"http://alicebot.org/2001/AIML-1.0.1":that,...etc.

I'd like to know what kind of file is located at the url:
http://alicebot.org/2001/AIML-1.0.1?
Is it an xml schema (i.e. an xsd file)? and how can i obtain a copy of it in
order to modify it to include my non-standard tags?

Also when i type "http://alicebot.org/2001/AIML-1.0.1" into my browser i get
a 'not found' message, is this because the resource is not there or is just
not accessible to my browser?

Many thanks in advance

JoeT

_________________________________________________________________
Play your part in making history - Email Britain!
http://www.emailbritain.co.uk/

_______________________________________________
alicebot-developer mailing list
alicebot-developer@...
http://list.alicebot.org/mailman/listinfo/alicebot-developer

Re: AIML schema namespace

by Dmitry-17 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

whay the programd version are you using with AIML v.?

thanks, www.ejinz.com
----- Original Message -----
From: "Joe Tallett" <joe_tallett@...>
To: <alicebot-developer@...>
Sent: Monday, June 11, 2007 6:16 AM
Subject: [alicebot-developer] AIML schema namespace


> Hi all,
>
> I'm developing a bot using program d and i am attempting to add my own
> aiml
> tags. Currently, all aiml files with my new tags in are not being loaded
> properly by program d due to the 'invalid' tags.
>
> I currently get this error:
>
> Error parsing "file:/P:/var/programd/resources/testing/AIML.aiml":
> cvc-complex-type.2.4.a: Invalid content was found starting with element
> 'search'. One of '{"http://alicebot.org/2001/AIML-1.0.1":star,
> "http://alicebot.org/2001/AIML-1.0.1":that,...etc.
>
> I'd like to know what kind of file is located at the url:
> http://alicebot.org/2001/AIML-1.0.1?
> Is it an xml schema (i.e. an xsd file)? and how can i obtain a copy of it
> in
> order to modify it to include my non-standard tags?
>
> Also when i type "http://alicebot.org/2001/AIML-1.0.1" into my browser i
> get
> a 'not found' message, is this because the resource is not there or is
> just
> not accessible to my browser?
>
> Many thanks in advance
>
> JoeT
>
> _________________________________________________________________
> Play your part in making history - Email Britain!
> http://www.emailbritain.co.uk/
>
> _______________________________________________
> alicebot-developer mailing list
> alicebot-developer@...
> http://list.alicebot.org/mailman/listinfo/alicebot-developer
>

_______________________________________________
alicebot-developer mailing list
alicebot-developer@...
http://list.alicebot.org/mailman/listinfo/alicebot-developer

Re: AIML schema namespace

by JoeyT :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm using program d version 4.6 with (i assume) aiml 1.0.1

I have tried pointing the program at a URI different to
http://alicebot.org/2001/aiml-1.0.1 (using the core xml file thus:

<entry
key="programd.aiml-schema.namespace-uri">file:/P:/var/programd/resources/schema/aiml/aiml.xsd</entry>


) but it seems it still manages to access the URI through sonme other means
- are there any other ways in which it can get directed to this uri that i
haven't thought of?

_________________________________________________________________
Txt a lot? Get Messenger FREE on your mobile.
https://livemessenger.mobile.uk.msn.com/

_______________________________________________
alicebot-developer mailing list
alicebot-developer@...
http://list.alicebot.org/mailman/listinfo/alicebot-developer

Re: AIML schema namespace

by Noel Bush :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The use of a URI to label a namespace doesn't require that anything at
all reside at that URI -- it's just for the purposes of having a unique
identifier.

You don't want to change the namespace URI -- this is telling the
processor that you are using some grammar from another namespace.  You
may need to give the program hints about where to find the local copy of
the schema, but if you copy the example given in the test AIML.aiml
file, then things should work properly for you.

If you are adventurous, you might try the current CVS code for Program
D, as I have done a lot with the validation and namespace handling
there.  No guarantees, though.

Noel

Joe Tallett wrote on 06/11/2007 09:35 AM:

> I'm using program d version 4.6 with (i assume) aiml 1.0.1
>
> I have tried pointing the program at a URI different to
> http://alicebot.org/2001/aiml-1.0.1 (using the core xml file thus:
>
> <entry
> key="programd.aiml-schema.namespace-uri">file:/P:/var/programd/resources/schema/aiml/aiml.xsd</entry>
>
>
> ) but it seems it still manages to access the URI through sonme other means
> - are there any other ways in which it can get directed to this uri that i
> haven't thought of?
>
> _________________________________________________________________
> Txt a lot? Get Messenger FREE on your mobile.
> https://livemessenger.mobile.uk.msn.com/
>
> _______________________________________________
> alicebot-developer mailing list
> alicebot-developer@...
> http://list.alicebot.org/mailman/listinfo/alicebot-developer

_______________________________________________
alicebot-developer mailing list
alicebot-developer@...
http://list.alicebot.org/mailman/listinfo/alicebot-developer

Re: AIML schema namespace

by JoeyT :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
http://list.alicebot.org/mailman/listinfo/alicebot-developer

Re: AIML schema namespace

by Noel Bush :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
> http://list.alicebot.org/mailman/listinfo/alicebot-developer
_______________________________________________
alicebot-developer mailing list
alicebot-developer@...
http://list.alicebot.org/mailman/listinfo/alicebot-developer

Re: AIML schema namespace

by JoeyT :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

_______________________________________________
alicebot-developer mailing list
alicebot-developer@...
http://list.alicebot.org/mailman/listinfo/alicebot-developer