[DAS2] Re: feature filter examples

Andrew Dalke dalke at dalkescientific.com
Wed Apr 6 08:28:24 UTC 2005

Another confusing situation.  Is the following allowed


to mean
    attribute name contains "Andrew" OR
    attribute lang contains "en"

This appears to be legal under the current spec because

     Within the URL query string, multiple criterion=value
     pairs are ANDED together:
     To describe OR relationships, you may separate filter
     values by commas.

In my above example the "criterion" is "att" (because it's
to the left of the "=") and the "value" is
which is made of two value fields
   "name:Andrew" "lang:en"

Note though that that means


does not mean to find

   attribute "name" contains "Andrew" OR
   attribute "name" contains "lang:en"

Nor is it
   attribute "name" contains "Andrew" OR
   attribute "name" contains "lang"
   SYNTAX ERROR - ':' not allowed at this point

It also means that


IS NOT legal, because "Gregg" is not a valid value
for the "att" criterion.

				dalke at dalkescientific.com

More information about the DAS2 mailing list