Schema Central  >  LEXS 4.0  >  ulex.xsd  >  ulex:StructuredQuery
Advanced search
Need NIEM Help?

Recommended Reading:

Definitive XML Schema

 

Advanced XML Applications

 

ulex:StructuredQuery

A ULEX Structured query, stated using the ULEX Digest and Structured Payload entities by supplying field values for selected elements.

Element information

Namespace: http://ulex.gov/ulex/2.0

Schema document: ulex.gov/ulex/2.0/ulex.xsd

Type: ulex:StructuredQueryType

Properties: Global, Qualified

Content

  • Sequence [1..1]
    1. ulex:DigestQueryStatement [0..*]A query statement against a ULEX Digest. Structure serves as a wrapper for the Digest elements being searched, their values, and any modifiers (such as "fuzzy"). This element may not exist if the search is only being performed on Structured Payload elements. This element includes a single Digest element with a single value; if multiple Digest elements are to be searched, or if multiple values are supplied for a single element, there must be multiple DigestQueryStatement blocks.
    2. ulex:StructuredPayloadQueryStatement [0..*]A Structured Payload query statement.
    3. Choice [0..*]

Attributes

None

Used in

Sample instance

<ulex:StructuredQuery>
   <ulex:DigestQueryStatement>
      <lexs:DigestQueryField>
         <lexsdigest:EntityPerson>
            <lexsdigest:Person>
               <nc:PersonName>
                  <nc:PersonGivenName>Tommy</nc:PersonGivenName>
               </nc:PersonName>
            </lexsdigest:Person>
         </lexsdigest:EntityPerson>
      </lexs:DigestQueryField>
      <ulex:QueryMatchCode>exact</ulex:QueryMatchCode>
   </ulex:DigestQueryStatement>
   <ulex:DigestQueryStatement>
      <lexs:DigestQueryField>
         <lexsdigest:EntityPerson>
            <lexsdigest:Person>
               <nc:PersonBirthDate>
                  <nc:Date>1974-01-01</nc:Date>
               </nc:PersonBirthDate>
            </lexsdigest:Person>
         </lexsdigest:EntityPerson>
      </lexs:DigestQueryField>
      <ulex:QueryMatchCode>gt</ulex:QueryMatchCode>
   </ulex:DigestQueryStatement>
   <ulex:DigestQueryStatement>
      <lexs:DigestQueryField>
         <lexsdigest:EntityPerson>
            <lexsdigest:Person>
               <nc:PersonBirthDate>
                  <nc:Date>1980-01-01</nc:Date>
               </nc:PersonBirthDate>
            </lexsdigest:Person>
         </lexsdigest:EntityPerson>
      </lexs:DigestQueryField>
      <ulex:QueryMatchCode>lt</ulex:QueryMatchCode>
   </ulex:DigestQueryStatement>
</ulex:StructuredQuery>