Lists Home |
Date Index |
XML-QL also has a nice "QBE" type syntax, but in a non-XML language:
<car><MakeModel>Ford</></> element_as $car
As you mentioned, it great for simple things, and can't handle XPaths.
>From: "Evan Lenz" <email@example.com>
>To: "Gavin Thomas Nicol" <firstname.lastname@example.org>, "The Deviants"
>Subject: [xml-dev] "Query by example" (was Re: [xml-dev] misprocessing
>Date: Thu, 31 Jan 2002 09:12:54 -0800
>Gavin Thomas Nicol wrote:
> > The idea was "match by example", where you'd
> > give a sample XML fragment as the pattern to match. It was supposed to
> > be like "query by example"....
>The "query by example" approach can only get you so far. For example, this
>could easily be formed in XML syntax as follows:
>This is reminiscent of Examplotron. The primary difference is that
>Examplotron is "schema by example", where our intent here is "query by
>The difficulty of this approach arises when you try to accommodate the
>axes. Soon, the benefits of the XML syntax start to diminish. A different
>approach would have to be taken, such as Wayne Steele's contribution
>March. That XML tools could then be used on XPath is valuable, but this no
>longer possesses the simplicity and intuitiveness of a "query by example"
>That said, "query by example" works beautifully for applications that don't
>need as powerful a query language as, say, XQuery. For applications that
>simply require the extraction of XML fragments from large repositories of
>XML documents based on certain search criteria, a simple XML-based "query
>example" approach is sufficient, with more sophisticated processing (e.g.
>XSLT) commencing outside the database.
><proprietaryExample product="XYZFind Server">
>Query for all cars such that 'Color' contains "white", 'MakeModel' contains
>"ford" and 'Price' is less than or equal to "$15,000":
> <xyz:input xmlns:xyz="http://xyzfind.com...">
> <Cars xyz:return="no">
> <Car xyz:return="yes">
> <Price><xyz:number le="15000"/></Price>
>The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
>initiative of OASIS <http://www.oasis-open.org>
>The list archives are at http://lists.xml.org/archives/xml-dev/
>To subscribe or unsubscribe from this list use the subscription
Join the world’s largest e-mail service with MSN Hotmail.