[GeoSciML] GeoSciML version 3.2 [SEC=UNCLASSIFIED]

Boisvert, Eric Eric.Boisvert at RNCan-NRCan.gc.ca
Wed Jul 17 10:20:41 EDT 2013


I tried this small xslt to extract the value that should be tested on a small set of instances (http://ogc.bgs.ac.uk/digmap625k_gsml32_gp/wfs?request=GetFeature&service=WFS&version=2.0.0&typename=gsml:MappedFeature&NAMESPACES=xmlns(gsml,http://xmlns.geosciml.org/GeoSciML-Core/3.2)&COUNT=3)  
(adjusting the lithology URI to actually match the lithology of the first instance)


<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xlink="http://www.w3.org/1999/xlink"  xmlns:gsml="http://xmlns.geosciml.org/GeoSciML-Core/3.2" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gss="http://www.isotc211.org/2005/gss" xmlns:gts="http://www.isotc211.org/2005/gts" xmlns:gsr="http://www.isotc211.org/2005/gsr" xmlns:swe="http://www.opengis.net/swe/2.0" xmlns:sam="http://www.opengis.net/sampling/2.0" xmlns:om="http://www.opengis.net/om/2.0" xmlns:gsmlgu="http://xmlns.geosciml.org/GeologicUnit/3.2" xmlns:gsmlem="http://xmlns.geosciml.org/EarthMaterial/3.2" xmlns:gsmlga="http://xmlns.geosciml.org/GeologicAge/3.2" xmlns:gsmlgt="http://xmlns.geosciml.org/GeologicTime/3.2" xmlns:sams="http://www.opengis.net/samplingSpatial/2.0" xmlns:gsmltrs="http://xmlns.geosciml.org/TemporalReferenceSystem/3.2" xmlns:gsmlpp="http://xmlns.geosciml.org/PhysicalProperties/3.2" xmlns:gsmlu="http://xmlns.geosciml.org/Utilities/3.2" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions">
	<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" exclude-result-prefixes="gco gmd gml gsml gsmlem gsmlga gsmlgt gsmlgu gsmlpp gsmltrs gsmlu gsr gss gts om sams sam fn swe xlink xs"/>
	<xsl:template match="/"><xsl:apply-templates select="//gsml:MappedFeature"/></xsl:template>
	
	<xsl:template match="gsml:MappedFeature">
	<rep>
<!-- just get the value from this property to check if this XPath reaches the right property -->
	<xsl:value-of select="gsml:specification/gsmlgu:GeologicUnit/gsmlgu:composition/gsmlgu:CompositionPart[gsmlgu:material/gsmlem:RockMaterial/gsmlem:lithology/@xlink:href
            = 'http://resource.geosciml.org/classifier/cgi/lithology/clastic_mudstone']/gsmlgu:proportion/gsmlu:GSML_QuantityRange/gsmlu:lowerValue"/>
	</rep>
	</xsl:template>
</xsl:stylesheet>


And it seems to work

<?xml version="1.0" encoding="UTF-8"?>
<rep>5</rep>                         <===================  so, xpath to the right spot
<rep></rep>                         <===================  nothing, because not the right lithology URI, so ok again
<rep></rep>



-----Message d'origine-----
De : GeoSciML [mailto:geosciml-bounces at lists.opengeospatial.org] De la part de Sen, Marcus A.
Envoyé : 17 juillet 2013 09:29
À : Public: A mailing list for GeoSciML
Cc : Tertre Francois
Objet : Re: [GeoSciML] GeoSciML version 3.2 [SEC=UNCLASSIFIED]

> -----Original Message-----
> From: GeoSciML [mailto:geosciml-bounces at lists.opengeospatial.org] On 
> Behalf Of Oliver.Raymond at ga.gov.au

> The proposed schema and doco for GeoSciML v3.2 have been on the 
> Subversion for a week now.  Does anyone have any comments?  Especially 
> Tim et al in INSPIRE land.  Love it, hate it?  It’s pretty quiet out 
> there.
I have now set up a GeoSciML v3.2 WFS at http://ogc.bgs.ac.uk/digmap625k_gsml32_gp/wfs (Test page at http://ogc.bgs.ac.uk/digmap625k_gsml32_gp/)

I am returning lowerValue and upperValue numbers in the proportions for CompositionParts but unfortunately my attempts to do a query on lithology values above a certain proportion don't seem to be understood by the WFS. I'm posting this to the list so that Eric or others can double check my query and possibly test the service themselves but it looks like I may need to make a bug report to Snowflake as I think the query below should be legal.

---

<wfs:GetFeature xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation=
  "http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd
  http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/gml.xsd"
  xmlns:gsml="http://xmlns.geosciml.org/GeoSciML-Core/3.2"
  xmlns:gsmlgu="http://xmlns.geosciml.org/GeologicUnit/3.2"
  xmlns:gsmlga="http://xmlns.geosciml.org/GeologicAge/3.2"
  xmlns:gsmlu="http://xmlns.geosciml.org/Utilities/3.2"
  xmlns:gsmlem="http://xmlns.geosciml.org/EarthMaterial/3.2"
  xmlns:fes="http://www.opengis.net/fes/2.0"
  xmlns:wfs="http://www.opengis.net/wfs/2.0"
  xmlns:gml="http://www.opengis.net/gml/3.2"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  count="10"
  service="WFS"
  version="2.0.0"
  outputFormat="application/gml+xml; version=3.2">
  <wfs:Query typeNames="gsml:MappedFeature">
    <fes:Filter>
        <fes:PropertyIsGreaterThanOrEqualTo>
          <fes:ValueReference>
            gsml:specification/gsmlgu:GeologicUnit/gsmlgu:composition/gsmlgu:CompositionPart[gsmlgu:material/gsmlem:RockMaterial/gsmlem:lithology/@xlink:href
            = 'http://resource.geosciml.org/classifier/cgi/lithology/limestone']/gsmlgu:proportion/gsmlu:GSML_QuantityRange/gsmlu:lowerValue
          </fes:ValueReference>
          <fes:Literal>50</fes:Literal>
        </fes:PropertyIsGreaterThanOrEqualTo>
    </fes:Filter>
  </wfs:Query>
</wfs:GetFeature>

---

Marcus


This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system.


More information about the GeoSciML mailing list