<?xml version="1.0" encoding="UTF-8"?>
<sq:query queryId="query.1" system="semtools"
	xmlns:sq="http://ecoinformatics.org/semQuery-1.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://ecoinformatics.org/semQuery-1.0.0 semQuery.xsd ">
	<namespace prefix="sms">http://ecoinformatics.org/sms/annotation.1.0beta1</namespace>
	<returnField>/@id</returnField>
	<returnField>/@emlPackage</returnField>
	<returnField>/@dataTable</returnField>
	<title>Semantic Search Example</title>
	
	<!-- Match all criteria, must be on same observation -->
	<AND strict="true">
		
		<!-- WetMass between 5 and 10 Grams-->
		<AND>
			<!-- Characteristic in (Wet_Mass, Dry_Mass)-->
			<condition 
				type="http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#Standard" 
				concept="http://ecoinformatics.org/oboe/oboe.1.0/oboe-units.owl#Gram" 
				/>	
			<condition 
				type="http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#Characteristic"  
				concept="http://ecoinformatics.org/oboe-ext/sbclter.1.0/oboe-sbclter.owl#Wet_Mass" 
				operator="GREATER THAN OR EQUALS">5</condition>
			<condition
				type="http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#Characteristic"  
				concept="http://ecoinformatics.org/oboe-ext/sbclter.1.0/oboe-sbclter.owl#Wet_Mass" 
				operator="LESS THAN OR EQUALS">10</condition>
		</AND>
		
		<!-- Entity = Kelp -->
		<condition 
			type="http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#Entity" 
			concept="http://ecoinformatics.org/oboe-ext/sbclter.1.0/oboe-sbclter.owl#Kelp"
			/>		
		<!-- Context: Kelp Within Transect-->
		<context> 
			<condition 
				type="http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#Entity"
				concept="http://ecoinformatics.org/oboe-ext/sbclter.1.0/oboe-sbclter.owl#Kelp" />
			<condition 
				type="http://ecoinformatics.org/oboe/oboe.1.0/oboe.owl#Relationship"
				concept="http://ecoinformatics.org/oboe-ext/sbclter.1.0/oboe-sbclter.owl#Within" />
			<condition 
				type="http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#Entity"
				concept="http://ecoinformatics.org/oboe-ext/sbclter.1.0/oboe-sbclter.owl#Transect" />		
		</context>
			
	</AND>
	
</sq:query>