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

Inferencing across XML types was Re: XQuery types


across xml
Dare Obasanjo wrote:
> From: Jonathan Borden [mailto:jborden@a...]
>
> Sure. What I am saying is that this "freshman philosophy
> course" way of looking at classes _actually has_ real world
> utility (and is implemented in real world production software btw).
>
> For example, I would like to state:
>
> widgitCo:purchaseOrder  --daml:sameClassAs-->  my:purchaseOrder .
>
> i.e. these two purchase orders are the same.
>
> Now they might have different namespaces, different element
> names etc, but if the computer could understand that they are
> the same (much as a human clerk could easily see), this would
> be a really powerful "use case" for semantic
> interoperability. Done correctly this sort of thing is not
> some pipe dream rather within our reach.
>
> That point is far away from XUpdate, but the type of thing
> (sic) that I'd like to see the community work toward.
>

I see where you are going with this but I'm not sure the type system
described in the XQuery formal semantics will get you there.

On the one hand, you can already do this in much the same way that the
XQuery formal semantics does. Basically widgitCo:purchaseOrder is the
same type as my:purchaseOrder if they have the same W3C XML Schema type.


On the other hand, if you are looking for inference rules to help
determine this without the use of W3C XML Schema then I guess this is
what the semantic web folks are working on which I've derided on
multiple occassions as being a pipe dream akin to the "XML will make
search engines smarter" hype of yesteryears.

----

No direct need for XML Schema at all (except for simple datatypes)

suppose the two XQuery (formal) types:

type widgetCo:purchaseOrder {
        element name {xsd:string},
        element price { xsd:int }
}

and

type my:purchaseOrder {
        element myName {xsd:string },
        element myPrice {xsd:int }
}

and a few statements (in N-triples form i.e. subject predicate object):

widgetCo:purchaseOrder daml:sameClassAs my:purchaseOrder
widgetCo:name daml:samePropertyAs my:myName
widgetCo:price daml:samePropertyAs my:myPrice

then yes, an engine can inference that widgetCo:purchaseOrder is the _same
as_ my:purchaseOrder even though they don;t have the same XML Schema type.

No pipe dream.

In any case, there is alot of loosey goosey mumbo jumbo pie in the sky stuff
written about the so-called "Semantic Web". On the other hand if we define
the term _Semantic_ properly, then yes there is actual code that can make
hopefully useful inferences - today.

Jonathan


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.