A DIS-Style Query is a query using triples linked in a logical expression. Each triple is in the format of (element, relation, literal). The element portion of the triple may be any named data element recognized as a queryable attribute by the target of the query. The relation portion of the triple may contain any of the relational operators from the table below. The literal portion of the triple is the element value to be compared. Multiple sets of triples may be joined using any of the logical operators from the table below. Note that elements or literals containing spaces must be quoted. Also note that case sensitivity and support for the various operators is subject to the capabilities offered by the target of the query.
The following table contains the supported relational operators:
Relational Operators | |
---|---|
Equal | =, EQ |
Not Equal | !=, NE |
Less Than | <, LT |
Less Than or Equal | <=, LE |
Greater Than | >, GT |
Greater Than or Equal | >=, GE |
Contains | LIKE |
Does Not Contain | NOTLIKE |
Is Null | IS |
Is Not Null | ISNOT |
The following table contains the supported logical operators:
Logical Operators | |
---|---|
And | AND, & |
Or | OR, | |
Not | NOT, ! |
The following are examples of DIS-Style queries:
This query will return all objects where the Title element contains the text "EDM" and the Creator element is equal to "Sean Hardman".
This query will return all objects where either the first set of criteria matches or the second set of criteria matches.
This query will return all objects where the Temperature element value is between the specified range.
This query will return all objects where the Subject element has no associated value. When using the IS and ISNOT relational operators, the literal must be "NULL" or "null".