Changes between Version 2 and Version 3 of MDService Example Queries


Ignore:
Timestamp:
08/12/10 07:54:35 (14 years ago)
Author:
vronk
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MDService Example Queries

    v2 v3  
    1111
    1212
     13== Simple Search Clauses ==
     14
     15 Index ANY term::
     16{{{
     17 Title any the
     18}}}
     19 Phrase ::
     20{{{
     21 Country = "United States" /* not working yet */
     22 Description = "Free play in a family context"
     23 "data collection"
     24}}}
     25 comparitors ::
     26   does not work yet
     27{{{
     28 Date < 2005 /* especially tricky as the Date-format YYYY-MM-DD (or even other) */
     29}}}
     30
    1331== Boolean ==
     32
     33 AND::
    1434{{{
     35 biling_data: ( ( Date any 2005 ) ) and ( ( Description any participant ) )
     36 //Session[contains(Date,'2005')][contains(.//Description,'participant')]
     37 
     38 //CMD[contains(.//Title,'year')][.//Date='2001-11-21']
     39
    1540 biling_data: ( ( Date any 2005 ) ) and ( ( Description any part ) ) and ( ( Country any United ) )
    1641}}}
     42
     43 AND OR::
    1744{{{
    18  biling_data: ( ( Date any 2005 ) or ( Date any 2001 ) ) and ( ( Description any part ) )
     45 biling_data: ( ( Date any 2005 ) or ( Country any United ) ) and ( ( Description any part ) )
     46 //CMD/Components[.//Date[contains(.,'2005')] or .//Country[contains(.,'United')]][.//Description[contains(.,'part')]]
    1947}}}
     48
     49 AND NOT ::
     50  seems very expensive, not sure about the syntax
     51{{{
     52 biling_data: ( ( Date any 2005 ) not ( Country = Japan) )
     53
     54 //CMD[.//imdi-corpus][not(.//ResourceType[.='Metadata'])]
     55}}}