[Wasabi Proposal] XML desktop query language

Mikkel Kamstrup Erlandsen mikkel.kamstrup at gmail.com
Tue Jan 16 21:40:34 PST 2007


2007/1/16, Shaun McCance <shaunm at gnome.org>:
>
> On Mon, 2007-01-15 at 13:22 +0100, Mikkel Kamstrup Erlandsen wrote:
> > Hi all!
> >
> > I uploaded my first draft of a XML query language proposal for the
> > Wasabi desktop search spec.
> >
> > The main part is the xml schema:
> > http://grillbar.org/wasabi/drafts/wasabi-query.xsd. It contains lots
> > of comments. I've set up a wiki page to collect info, feedback, and
> > progress on this here:
> > http://wiki.freedesktop.org/wiki/WasabiQueryLanguage.
> >
> > There's also a few example queries on the wiki page.
>
> Looking just at the examples, you're using what amount to
> namespace prefixes in attribute values without declaring
> what namespaces those prefixes bind to.  For example:
>
> <request>
>   <query>
>     <equals>
>       <property name="dc:title"/>
>       <string caseSensitive="true">The Ugly Duckling</string>
>     </equals>
>   </query>
> </request>
>
> While it's clear to me (a human) that you mean Dublin
> Core's "title" property, it's not explicit.  This should
> be explicitly listed as:
>
> <request xmlns:dc="http://purl.org/dc/elements/1.1/">
>   <query>
>     <equals>
>       <property name="dc:title"/>
>       <string caseSensitive="true">The Ugly Duckling</string>
>     </equals>
>   </query>
> </request>
>
> Of course, since "dc:title" is an attribute value, rather
> than a tag name, XML parsers won't do anything with it,
> so the specification will have to mention explicitly that
> the name attribute of property must be interpreted using
> the namespace prefixes that are in scope.  W3C has set a
> precedent for doing this with XSLT.
>
> I would also recommend giving the entire XML dialect an
> XML namespace.



Yes, I absolutely agree on everything you said :-)

I left xml namespacing out to clarify the examples. The naming of the
metadata fields  have not been settled upon yet, so these are pretty bogus
actually :-)


Cheers,
Mikkel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/xdg/attachments/20070117/ecb17688/attachment.htm 


More information about the xdg mailing list