[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XML Turing test

  • From: Roger L Costello <costello@mitre.org>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Mon, 13 Feb 2023 19:10:52 +0000

XML Turing test

Hi Folks,

I have XML documents with this form:

<Document>
    <Pencil_Manufacturer>______</Pencil_Manufacturer>
</Document>

The allowable values of Pencil_Manufacturer are: Staedtler, Faber, and Camlin.

I have an application that processes XML instance documents containing those values. For this instance document:

<Document>
    <Pencil_Manufacturer>Staedtler</Pencil_Manufacturer>
</Document>

the application outputs: 1

For this instance document:

<Document>
    <Pencil_Manufacturer>Faber</Pencil_Manufacturer>
</Document>

the application outputs: 2

And for this instance document:

<Document>
    <Pencil_Manufacturer>Camlin</Pencil_Manufacturer>
</Document>

the application outputs: 3

I am invited to do an XML Turing test. I am in one room. A colleague is in another room. The rooms are connected by a closed door. I am asked to determine whether my colleague has a copy of my application.

So I write this

<Document>
    <Pencil_Manufacturer>Staedtler</Pencil_Manufacturer>
</Document>

on a piece of paper and slip it under the door. A moment later I receive under the door a piece of paper and it says: 1

Next, I write this

<Document>
    <Pencil_Manufacturer>Faber</Pencil_Manufacturer>
</Document>

on a piece of paper and slip it under the door. A moment later I receive under the door a piece of paper and it says: 2

I write this

<Document>
    <Pencil_Manufacturer>Camlin</Pencil_Manufacturer>
</Document>

on a piece of paper and slip it under the door. A moment later I receive under the door a piece of paper and it says: 3

I conclude that my colleague has a copy of my application and is feeding my XML instance documents into the application, getting the results, writing down the results, and slipping them under the door.

I open the door and talk to my colleague. I am surprised to learn that he is not using my application. Each XML document that he received, he converted to this form:

<Document>
    <Umbrella_Manufacturer>______</Umbrella_Manufacturer>
</Document>

My colleague performed these value conversions:

Staedtler --> Totes
Faber --> Pogessi
Camlin --> Dynateck

That is, he converted this XML instance:

<Document>
    <Pencil_Manufacturer>Staedtler</Pencil_Manufacturer>
</Document>

to this XML instance:

<Document>
    <Umbrella_Manufacturer>Totes</Umbrella_Manufacturer>
</Document>

He then fed that XML instance into his application, which output: 1

He converted this XML instance:

<Document>
    <Pencil_Manufacturer>Faber</Pencil_Manufacturer>
</Document>

to this:

<Document>
    <Umbrella_Manufacturer>Pogessi</Umbrella_Manufacturer>
</Document>

and fed that XML instance into his application, which output: 2

And he converted this XML instance:

<Document>
    <Pencil_Manufacturer>Camlin</Pencil_Manufacturer>
</Document>

to this:

<Document>
    <Umbrella_Manufacturer>Dynateck</Umbrella_Manufacturer>
</Document>

and fed that XML instance into his application, which output: 3

The behavior of my application on my pencil XML documents is identical to the behavior of my colleagues’ application on the XML generated by converting my pencil XML documents to umbrella documents.

The pencil XML vocabulary maps to the umbrella XML vocabulary.

So it doesn't matter whether you use the pencil XML instances and my application or the umbrella XML instances and my colleagues’ application. You get the same results.

My colleague’s XML vocabulary and application passed the XML Turing test.

Thoughts?

/Roger

 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.