"Seegrid will be due for a migration to confluence on the 1st of August. Any update on or after the 1st of August will NOT be migrated"

Example Geochemistry WFS queries

Based on data encoded following GeochemistryMeasurement No - see below

I'm guessing that we should be working with the Feature type view of our information - https://www.seegrid.csiro.au/subversion/xmml/trunk/Examples/geochem/GA_1_samples.xml to produce the filter queries that Rob is asking for?

I must admit to being confused about what the (XMML) schema would look like - I'm assuming it's more than just https://www.seegrid.csiro.au/subversion/xmml/trunk/XMML/0.9/geochemistry.xsd

Work with the GeochemSpecimen, GeochemMeasurement and AssayProcedure feature types from https://www.seegrid.csiro.au/subversion/xmml/trunk/XMML/0.9/geochemistry.xsd -- SimonCox - 10 Sep 2004

If the above example is correct I think the only queries we'll need to satisfy are the following (and my attempt at filters is my best guess and are almost certainly wrong):

Return all analyte components for sample by location or id:

Location:

<Query typeName="GeochemSample"> 
 <ogc:PropertyName>xmml:GeochemSample/gml:name:</ogc:PropertyName>  
 <ogc:PropertyName>xmml:GeochemSample/gml:LocationString</ogc:PropertyName>   
 <ogc:PropertyName>xmml:GeochemSample/gml:material</ogc:PropertyName>       
 <ogc:PropertyName>xmml:GeochemSample/xmml:analyteComponentResult</ogc:PropertyName> 
 <ogc:Filter> 
     <BBOX> 
     <ogc:PropertyName>xmml:GeochemSample/gml:position</ogc:PropertyName> 
     <gml:box:> 
        <gml:pos>x1, x1, y1,y2</gml:pos> 
     </gml:box> 
     </BBOX> 
  </ogc:Filter> 
</Query> 

By id

<Query typeName="GeochemSample"> 
 <ogc:PropertyName>xmml:GeochemSample/gml:name:</ogc:PropertyName>  
 <ogc:PropertyName>xmml:GeochemSample/gml:LocationString</ogc:PropertyName>   
 <ogc:PropertyName>xmml:GeochemSample/gml:material</ogc:PropertyName>       
 <ogc:PropertyName>xmml:GeochemSample/xmml:analyteComponentResult</ogc:PropertyName> 
 <ogc:Filter> 
    <ogc:FeatureId fid="GA_1_90980153_r"/> 
  </ogc:Filter> 
</Query> 

Return specific analyte component where component value lies in a range by location:

<Query typeName="GeochemSample"> 
 <ogc:PropertyName>xmml:GeochemSample/gml:name:</ogc:PropertyName>  
 <ogc:PropertyName>xmml:GeochemSample/gml:LocationString</ogc:PropertyName>   
 <ogc:PropertyName>xmml:GeochemSample/gml:material</ogc:PropertyName>       
 <ogc:PropertyName>xmml:GeochemSample/xmml:analyteComponentResult</ogc:PropertyName> 
 <ogc:Filter> 
   <ogc:And> 
     <BBOX> 
     <ogc:PropertyName>xmml:GeochemSample/gml:position</ogc:PropertyName> 
     <gml:box:> 
        <gml:pos>x1, x1, y1,y2</gml:pos> 
     </gml:box> 
     </BBOX> 
    <ogc:PropertyIsBetween> 

<ogc:PropertyName>xmml:GeochemSample/xmml:analyteComponentResult</ogc:PropertyName> 
<ogc:LowerBoundary>1</ogc:LowerBoundary> 
<ogc:UpperBoundary>2</ogc:UpperBoundary> 

    </ogc:PropertyIsBetween> 
    <ogc:PropertyIsEqualTo> 

<ogc:PropertyName>xmml:GeochemSample/xmml:analyteComponentResult@property</ogc:PropertyName> 
<ogc:Literal>Chemical Element value (eg Au, Ag, Cu etc)</ogc:Literal> 

    </ogc:PropertyIsBetween>    
  </ogc:And> 
 </ogc:Filter> 
</Query> 

The last one is a real guess as I haven't come accros any examples in the Filter Spec or the WFS Spec that actually queries an attribute of an element.

This stuff may be helpful to Rob and Pete but we'll need Simon to confirm I'm basing it on the correct Geochemistry example (and that the filter encoding is correct).

-- StuartGirvan - 20 Jul 2004
Topic revision: r5 - 15 Oct 2010, UnknownUser
 

Current license: All material on this collaboration platform is licensed under a Creative Commons Attribution 3.0 Australia Licence (CC BY 3.0).