[ckan-discuss] csw harvester

David Read david.read at hackneyworkshop.com
Mon Apr 29 09:48:24 BST 2013


Ketty,

The error message "local list type: A type, derived by list or union,
must have the simple ur-type definition as base type, not
'{http://www.opengis.net/gml}doubleList'" is due to a bug in libxml
which is fixed in 2.9.0 (released Sept 2012). There are instructions
for updating in the readme:
https://github.com/okfn/ckanext-spatial/blob/master/README.rst

The URL you need for the GeoNetworks server is probably:
http://myckaninstance.net/geonetwork/srv/en/csw
instead of what you have:
http://myckaninstance.net/geonetwork/srv/en/csw?request=GetRecords&

David

On 26 April 2013 10:55, Ketty Adoch <kettya298 at gmail.com> wrote:
> Hi all,
>
> I am trying to harvest from geonetwork into a ckan instance. I followed a
> previous thread at
> http://lists.okfn.org/pipermail/ckan-discuss/2012-September/002419.html and
> thought i would check with you if there are any updates on this particular
> subject that i could have missed?
>
> My config file has this:
> ckan.plugins = stats spatial_metadata spatial_query spatial_query_widget
> dataset_extent_map wms_preview cswserver harvest ckan_harvester
> spatial_harvest_metadata_api gemini_csw_harvester gemini_doc_harvester
> gemini_waf_harvester
> ckan.spatial.validator.profiles = iso19139
>
> and at the GUI harvest interface my configuration file has this:
>
> {
>  "api_version":"2",
>  "default_tags":["geo","geo"],
>  "default_groups":["Government"],
>
> "default_extras":{"new_extra":"Test","harvest_url":"{http://myckaninstance.net/geonetwork/srv/en/csw?request=GetRecords&}/dataset/{dataset_id}"},
>  "override_extras": true,
>  "user":"ketty",
>  "api_key":"<>",
>  "read_only": true
> }
>
> and lastly, the url for the source of metadata is
>
> http://myckaninstance.net/geonetwork/srv/en/csw?request=GetRecords&
> (<ows:ExceptionReport version="1.0.0"
> xsi:schemaLocation="http://www.opengis.net/ows
> http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd"><ows:Exception
> exceptionCode="MissingParameterValue"
> locator="constraintLanguage"/></ows:ExceptionReport>) with this as the
> output in the browser if at all this could help.
>
> Is there something i missed in the configuration file, or a plugin i need to
> install or do i have a wrong format of the csw source url(above)?
>
> the tail end of the error message is below:
>
> fetch_finished=2013-04-26 11:38:40.862778 metadata_modified_date=None
> retry_times=None harvest_job_id=8c5b5d55-2661-49e7-abc9-62e1fb94012b
> harvest_source_id=5680ef97-8f09-4aff-9009-c94c7f08844f package_id=None>
> 2013-04-26 11:38:40,943 ERROR [ckanext.spatial.harvesters.import] Exception
> during import: Traceback (most recent call last):
>   File "/home/ketty/ckanext-spatial-master/ckanext/spatial/harvesters.py",
> line 144, in import_stage
>     self.import_gemini_object(harvest_object.content)
>   File "/home/ketty/ckanext-spatial-master/ckanext/spatial/harvesters.py",
> line 168, in import_gemini_object
>     valid, messages = self._get_validator().is_valid(xml)
>   File
> "/home/ketty/ckanext-spatial-master/ckanext/spatial/validation/validation.py",
> line 239, in is_valid
>     is_valid, error_message_list = validator.is_valid(xml)
>   File
> "/home/ketty/ckanext-spatial-master/ckanext/spatial/validation/validation.py",
> line 65, in is_valid
>     is_valid, errors = cls._is_valid(xml, gmx_xsd_filepath, 'Dataset schema
> (gmx.xsd)')
>   File
> "/home/ketty/ckanext-spatial-master/ckanext/spatial/validation/validation.py",
> line 40, in _is_valid
>     schema = etree.XMLSchema(xsd)
>   File "xmlschema.pxi", line 103, in lxml.etree.XMLSchema.__init__
> (src/lxml/lxml.etree.c:116069)
> XMLSchemaParseError: local list type: A type, derived by list or union, must
> have the simple ur-type definition as base type, not
> '{http://www.opengis.net/gml}doubleList'., line 1
> 2013-04-26 11:38:40,948 ERROR [ckanext.spatial.harvesters] Error importing
> Gemini document: local list type: A type, derived by list or union, must
> have the simple ur-type definition as base type, not
> '{http://www.opengis.net/gml}doubleList'., line 1
>
> Anyone gone past this before?
>
> regards,
>
> Ketty.
>
> _______________________________________________
> ckan-discuss mailing list
> ckan-discuss at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-discuss
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-discuss
>



More information about the ckan-discuss mailing list