[pycsw-devel] SchemaLanguage for DescribeRecords Request

Tom Kralidis tomkralidis at gmail.com
Tue Sep 30 17:23:42 PDT 2014


Hi Axel:

This was an issue in OGC CITE [1], in which case the CITE tests went
with http://www.w3.org/2001/XMLSchema which pycsw supports.

Having said this, this is simply a matter of extending the domain list
against this parameter in the code [2].  A pull request would be great
to get this in master.

Cheers

..Tom


[1] https://portal.opengeospatial.org/services/srv_public_issues.php?call=viewIssue&issue_id=901
[2] https://github.com/geopython/pycsw/blob/master/pycsw/config.py#L165


On Tue, Sep 30, 2014 at 9:01 AM, Axel Schaefer
<axel.schaefer at wheregroup.com> wrote:
> Hi all.
>
> I'm using pycsw 1.10.0 and try to build up an apiso conformant service. I
> created some test cases and found an issue with the DescribeRecord request.
>
> One simple request is:
>
> <csw:DescribeRecord xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2
> http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd"
> schemaLanguage="http://www.w3.org/2001/XMLSchema" service="CSW"
> version="2.0.2">
>   <csw:TypeName>csw:Record</csw:TypeName>
> </csw:DescribeRecord>
>
> pycsw answers:
>
>  <ows:ExceptionText>Invalid value for schemalanguage:
> http://www.w3.org/2001/XMLSchema</ows:ExceptionText>
>   </ows:Exception>
>
> If I change the schemaLanguage to http://www.w3.org/XML/Schema, it works.
>
> As far as I understand, the definition of the schemaLanguage is placed in
> http://schemas.opengis.net/iso/19139/20070417/gmd/gmd.xsd:
>
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
> And my guess is that the definition of the DescribeRecord response is also
> with this namespace.
>
> Is there a way to customize pycsw to understand this namespace?
>
> Thanks in advance and best regards.
> Axel
> _______________________________________________
> pycsw-devel mailing list
> pycsw-devel at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/pycsw-devel


More information about the pycsw-devel mailing list