Schema Central  >  LEXS 3.1.4  >  lexs.xsd  >  lexs:StructuredQuery
Advanced search
Need NIEM Help?

Recommended Reading:

Definitive XML Schema

 

Advanced XML Applications

 

lexs:StructuredQuery

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

Element information

Namespace: http://usdoj.gov/leisp/lexs/3.1

Schema document: lexs/3.1/lexs.xsd

Type: lexs:StructuredQueryType

Properties: Global, Qualified

Content

Attributes

NameOccTypeDescriptionNotes
s:id [0..1]xsd:IDThe id attribute is used to define XML IDs for NIEM objects. These IDs may be targets of reference elements, metadata attributes, and link metadata attributes.from type s:ComplexObjectType
s:metadata [0..1]xsd:IDREFSThe attribute metadata allows an object to point to metadata that affects itself.from type s:ComplexObjectType
s:linkMetadata [0..1]xsd:IDREFSThe linkMetadata attribute allows an element to point to metadata that affects the relationship between the context and the value of the object.from type s:ComplexObjectType

Used in

Sample instance

<lexs:StructuredQuery>
   <lexs:DigestQueryStatement>
      <lexs:DigestQueryField>
         <lexsdigest:EntityPerson>
            <lexsdigest:Person>
               <nc:PersonName>
                  <nc:PersonSurName>Jones</nc:PersonSurName>
               </nc:PersonName>
            </lexsdigest:Person>
         </lexsdigest:EntityPerson>
      </lexs:DigestQueryField>
      <lexs:QueryMatch>exact</lexs:QueryMatch>
   </lexs:DigestQueryStatement>
   <lexs:DigestQueryStatement>
      <lexs:DigestQueryField>
         <lexsdigest:EntityPerson>
            <lexsdigest:Person>
               <nc:PersonName>
                  <nc:PersonGivenName>Tommy</nc:PersonGivenName>
               </nc:PersonName>
            </lexsdigest:Person>
         </lexsdigest:EntityPerson>
      </lexs:DigestQueryField>
      <lexs:QueryMatch>exact</lexs:QueryMatch>
   </lexs:DigestQueryStatement>
   <lexs:StructuredPayloadQueryStatement>
      <lexs:StructuredPayloadMetadata>
         <lexs:CommunityURI>http://somewhere.gov/new-community</lexs:CommunityURI>
         <lexs:CommunityVersion>1.0</lexs:CommunityVersion>
      </lexs:StructuredPayloadMetadata>
      <lexs:StructuredPayloadQueryField>
         <new:Person>
            <nc:PersonHairStyleText>strawberry blond</nc:PersonHairStyleText>
         </new:Person>
      </lexs:StructuredPayloadQueryField>
      <lexs:QueryMatch>exact</lexs:QueryMatch>
   </lexs:StructuredPayloadQueryStatement>
   <lexs:RoleList>
      <lexs:RoleInclusiveIndicator>true</lexs:RoleInclusiveIndicator>
      <lexs:RoleType>SubjectType</lexs:RoleType>
      <lexs:RoleType>RegisteredOffenderType</lexs:RoleType>
   </lexs:RoleList>
</lexs:StructuredQuery>