[Geoserver-users] App-schema extension: fail to map xlink namespace

Hi,
have defined xlink in mapping file and in the FT schema
<Namespace>
<prefix>xlink</prefix>
<uri>http://www.w3.org/1999/xlink </uri>
</Namespace>

and mapped Client Property
<AttributeMapping>
<targetAttribute>om:observedProperty</targetAttribute>
<ClientProperty>
    <name>xlink:href</name>
  
<value>Concatenate('http://loom-gis.geo.ut.ee/ermas/schemas/sarv/CodeList_ObservablePropertyValue.xml#',
observed_property)</value>
</ClientProperty></AttributeMapping>

but still in the GetFeature resonse I have
<om:observedProperty
href="http://loom-gis.geo.ut.ee/ermas/schemas/sarv/CodeList_ObservablePropertyValue.xml#sedimentology_and_lithology&quot;/&gt;
instead of xlink:href
can somebody help?

valentina

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/App-schema-extension-fail-to-map-xlink-namespace-tp5160960.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Valentina,

this looks like the same problem reported here:
http://osgeo-org.1560.x6.nabble.com/xlink-ref-not-well-encoded-in-WFS-response-app-schema-td5002307.html

Are you using WFS 2.0.0 or WFS 1.1.0 with outputformat=gml32? The latter is reported to work.

Have you tried defining a secondary namespace for xlink?
http://docs.geoserver.org/stable/en/user/data/app-schema/supported-gml-versions.html#secondary-namespace-for-gml-3-2-1-required

I do not think we found out whether this works.

There have been some recent improvements to app-schema support for WFS 2.0.0; it would be good to fix this as well if it is still broken.

Kind regards,
Ben.

On 10/09/14 02:39, Valentina Sagris wrote:

Hi,
have defined xlink in mapping file and in the FT schema
<Namespace>
<prefix>xlink</prefix>
<uri>http://www.w3.org/1999/xlink </uri>
</Namespace>

and mapped Client Property
<AttributeMapping>
<targetAttribute>om:observedProperty</targetAttribute>
<ClientProperty>
    <name>xlink:href</name>
  
<value>Concatenate('http://loom-gis.geo.ut.ee/ermas/schemas/sarv/CodeList_ObservablePropertyValue.xml#',
observed_property)</value>
</ClientProperty></AttributeMapping>

but still in the GetFeature resonse I have
<om:observedProperty
href="http://loom-gis.geo.ut.ee/ermas/schemas/sarv/CodeList_ObservablePropertyValue.xml#sedimentology_and_lithology&quot;/&gt;
instead of xlink:href
can somebody help?

valentina

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/App-schema-extension-fail-to-map-xlink-namespace-tp5160960.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com>
Software Engineer
CSIRO Mineral Resources Flagship
Australian Resources Research Centre

Hi Ben, Valentina,

This is a bug indeed. I tried creating secondary namespace for xlink and it doesn't work.
Thanks for reporting. I'll try to fix this before I start my year long leave in 6 weeks time.

https://jira.codehaus.org/browse/GEOT-4894

Cheers
Rini

-----Original Message-----
From: Caradoc-Davies, Ben (Mineral Resources, Kensington)
Sent: Wednesday, 10 September 2014 4:08 PM
To: Valentina Sagris
Cc: geoserver-users@lists.sourceforge.net; Angreani, Rini (Mineral Resources, Kensington)
Subject: Re: [Geoserver-users] App-schema extension: fail to map xlink namespace

Valentina,

this looks like the same problem reported here:
http://osgeo-org.1560.x6.nabble.com/xlink-ref-not-well-encoded-in-WFS-response-app-schema-td5002307.html

Are you using WFS 2.0.0 or WFS 1.1.0 with outputformat=gml32? The latter is reported to work.

Have you tried defining a secondary namespace for xlink?
http://docs.geoserver.org/stable/en/user/data/app-schema/supported-gml-versions.html#secondary-namespace-for-gml-3-2-1-required

I do not think we found out whether this works.

There have been some recent improvements to app-schema support for WFS 2.0.0; it would be good to fix this as well if it is still broken.

Kind regards,
Ben.

On 10/09/14 02:39, Valentina Sagris wrote:

Hi,
have defined xlink in mapping file and in the FT schema
<Namespace>
<prefix>xlink</prefix>
<uri>http://www.w3.org/1999/xlink </uri> </Namespace>

and mapped Client Property
<AttributeMapping>
<targetAttribute>om:observedProperty</targetAttribute>
<ClientProperty>
    <name>xlink:href</name>
  
<value>Concatenate('http://loom-gis.geo.ut.ee/ermas/schemas/sarv/CodeL
ist_ObservablePropertyValue.xml#',
observed_property)</value>
</ClientProperty></AttributeMapping>

but still in the GetFeature resonse I have <om:observedProperty
href="http://loom-gis.geo.ut.ee/ermas/schemas/sarv/CodeList_Observable
PropertyValue.xml#sedimentology_and_lithology"/>
instead of xlink:href
can somebody help?

valentina

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/App-schema-extension-fail-to-map-x
link-namespace-tp5160960.html Sent from the GeoServer - User mailing
list archive at Nabble.com.

----------------------------------------------------------------------
--------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.
clktrk _______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Ben Caradoc-Davies <Ben.Caradoc-Davies@...367...> Software Engineer CSIRO Mineral Resources Flagship Australian Resources Research Centre

-----Original Message-----
From: Valentina Sagris [mailto:valentina.sagris@…6506…]
Sent: 09 September 2014 19:39
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] App-schema extension: fail to map xlink
namespace

Hi,
have defined xlink in mapping file and in the FT schema
<Namespace>
<prefix>xlink</prefix>
<uri>http://www.w3.org/1999/xlink </uri>
</Namespace>

I wonder if it is the extra space after xlink in your uri element?

This does work fine in our service, you can see many examples of xlink:href in a request like: http://ogc.bgs.ac.uk/digmap625k_gsml32_gs/wfs?service=WFS&version=2.0.0&request=GetFeature&typenames=gsml:MappedFeature&count=10&

Our mapping file for a typical example for us has:
-----
<Namespace><prefix>xlink</prefix><uri>http://www.w3.org/1999/xlink&lt;/uri&gt;&lt;/Namespace&gt;
-----
and
-----
<AttributeMapping> <targetAttribute>gsml:observationMethod/swe:Category/swe:extension/swe:Category/swe:codeSpace</targetAttribute>
<ClientProperty>
<name>xlink:href</name>
<value>'http://resource.geosciml.org/classifierscheme/cgi/201202/valuequalifier’</value>
</ClientProperty>
</AttributeMapping>

-----

Marcus Sen
British Geological Survey
Keyworth
Nottingham
NG12 5GG

Web: http://www.bgs.ac.uk

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.

Hi Ben and Rini,

Yes, with xlink secondary ns and version1.1.0&outputformat=32 it does work! Many thanks!!!

I discovered the same problem with others e.g. OGC namespaces like om: sam:, and it is despite of the fact that they are in the app-schema-cache directory. I needed to add namespace.xml and workspace.xml to make them work.

Regards,
Valentina

-----Original Message-----
From: Rini.Angreani@anonymised.com [mailto:Rini.Angreani@anonymised.com]
Sent: Wednesday, September 10, 2014 11:36 AM
To: Ben.Caradoc-Davies@anonymised.com; valentina.sagris@anonymised.com
Cc: geoserver-users@lists.sourceforge.net
Subject: RE: [Geoserver-users] App-schema extension: fail to map xlink namespace

Hi Ben, Valentina,

This is a bug indeed. I tried creating secondary namespace for xlink and it doesn't work.
Thanks for reporting. I'll try to fix this before I start my year long leave in 6 weeks time.

https://jira.codehaus.org/browse/GEOT-4894

Cheers
Rini

-----Original Message-----
From: Caradoc-Davies, Ben (Mineral Resources, Kensington)
Sent: Wednesday, 10 September 2014 4:08 PM
To: Valentina Sagris
Cc: geoserver-users@lists.sourceforge.net; Angreani, Rini (Mineral Resources, Kensington)
Subject: Re: [Geoserver-users] App-schema extension: fail to map xlink namespace

Valentina,

this looks like the same problem reported here:
http://osgeo-org.1560.x6.nabble.com/xlink-ref-not-well-encoded-in-WFS-response-app-schema-td5002307.html

Are you using WFS 2.0.0 or WFS 1.1.0 with outputformat=gml32? The latter is reported to work.

Have you tried defining a secondary namespace for xlink?
http://docs.geoserver.org/stable/en/user/data/app-schema/supported-gml-versions.html#secondary-namespace-for-gml-3-2-1-required

I do not think we found out whether this works.

There have been some recent improvements to app-schema support for WFS 2.0.0; it would be good to fix this as well if it is still broken.

Kind regards,
Ben.

On 10/09/14 02:39, Valentina Sagris wrote:

Hi,
have defined xlink in mapping file and in the FT schema
<Namespace>
<prefix>xlink</prefix>
<uri>http://www.w3.org/1999/xlink </uri> </Namespace>

and mapped Client Property
<AttributeMapping>
<targetAttribute>om:observedProperty</targetAttribute>
<ClientProperty>
    <name>xlink:href</name>
  
<value>Concatenate('http://loom-gis.geo.ut.ee/ermas/schemas/sarv/CodeL
ist_ObservablePropertyValue.xml#',
observed_property)</value>
</ClientProperty></AttributeMapping>

but still in the GetFeature resonse I have <om:observedProperty
href="http://loom-gis.geo.ut.ee/ermas/schemas/sarv/CodeList_Observable
PropertyValue.xml#sedimentology_and_lithology"/>
instead of xlink:href
can somebody help?

valentina

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/App-schema-extension-fail-to-map-x
link-namespace-tp5160960.html Sent from the GeoServer - User mailing
list archive at Nabble.com.

----------------------------------------------------------------------
--------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.
clktrk _______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com> Software Engineer CSIRO Mineral Resources Flagship Australian Resources Research Centre