wiki:MDService Example Queries

Version 4 (modified by vronk, 14 years ago) (diff)

--

MDService Example Queries

Collection of Real-world queries (but not all of them tested yet) and related issues.

Basic facets

language overview
continent/country

View collections

Simple Search Clauses

Index ANY term
 Title any the
Phrase
 Country = "United States" /* not working yet */
 Description any "Free play in a family context"
 "data collection"
comparitors
does not work yet
 Date < 2005 /* especially tricky as the Date-format YYYY-MM-DD (or even other) */

Boolean

AND
 biling_data: ( ( Date any 2005 ) ) and ( ( Description any participant ) )
 //Session[contains(Date,'2005')][contains(.//Description,'participant')]
 
 //CMD[contains(.//Title,'year')][.//Date='2001-11-21']

 biling_data: ( ( Date any 2005 ) ) and ( ( Description any part ) ) and ( ( Country any United ) ) 
AND OR
 biling_data: ( ( Date any 2005 ) or ( Country any United ) ) and ( ( Description any part ) ) 
 //CMD/Components[.//Date[contains(.,'2005')] or .//Country[contains(.,'United')]][.//Description[contains(.,'part')]]
AND NOT
seems very expensive, not sure about the syntax
 biling_data: ( ( Date any 2005 ) not ( Country = Japan) )

 //CMD[.//imdi-corpus][not(.//ResourceType[.='Metadata'])]