<?xml version="1.0"?>
<!DOCTYPE pathquery PUBLIC "-//NCEAS//pathquery-1.0//EN" >
<pathquery version="1.0">
	<meta_file_id>Example-03</meta_file_id>
	<querytitle>Semantic query</querytitle>
	<returndoctype>http://ecoinformatics.org/sms/annotation.0.9</returndoctype>
	<returndoctype>eml://ecoinformatics.org/eml-2.1.0</returndoctype>
	<returnField>/@id</returnField>
	<returnField>/@emlPackage</returnField>
	<returnField>/@dataTable</returnField>
	
	<!-- Match all criteria, must be on same observation -->
	<querygroup operator="INTERSECT" strict="true">
		
		<!-- Characteristic in (Wet_Mass, Dry_Mass)-->
		<querygroup operator="UNION">
			<queryterm casesensitive="false" searchmode="equals">
				<value>http://ecoinformatics.org/oboe-ext/sbclter.1.0/oboe-sbclter.owl#Wet_Mass</value>
				<pathexpr>http://ecoinformatics.org/oboe/oboe.1.0/oboe.owl#Characteristic</pathexpr>
			</queryterm>
			<queryterm casesensitive="false" searchmode="equals">
				<value>http://ecoinformatics.org/oboe-ext/sbclter.1.0/oboe-sbclter.owl#Dry_Mass</value>
				<pathexpr>http://ecoinformatics.org/oboe/oboe.1.0/oboe.owl#Characteristic</pathexpr>
			</queryterm>
		</querygroup>
		
		<!-- Entity = Kelp -->
		<queryterm casesensitive="false" searchmode="equals">
			<value>http://ecoinformatics.org/oboe-ext/sbclter.1.0/oboe-sbclter.owl#Kelp</value>
			<pathexpr>http://ecoinformatics.org/oboe/oboe.1.0/oboe.owl#Entity</pathexpr>
		</queryterm>
		
		<!-- Context: Kelp Within Transect-->
		<querycontext>
			<queryterm casesensitive="false" searchmode="equals">
				<value>http://ecoinformatics.org/oboe-ext/sbclter.1.0/oboe-sbclter.owl#Kelp</value>
				<pathexpr>http://ecoinformatics.org/oboe/oboe.1.0/oboe.owl#Entity</pathexpr>
			</queryterm>
			<queryterm casesensitive="false" searchmode="equals">
				<value>http://ecoinformatics.org/oboe-ext/sbclter.1.0/oboe-sbclter.owl#Within</value>
				<pathexpr>http://ecoinformatics.org/oboe/oboe.1.0/oboe.owl#Relationship</pathexpr>
			</queryterm>
			<queryterm casesensitive="false" searchmode="equals">
				<value>http://ecoinformatics.org/oboe-ext/sbclter.1.0/oboe-sbclter.owl#Transect</value>
				<pathexpr>http://ecoinformatics.org/oboe/oboe.1.0/oboe.owl#Entiy</pathexpr>
			</queryterm>
		</querycontext>
		
	</querygroup>
	
</pathquery>
