[ckan-discuss] csw harvester

Ketty Adoch kettya298 at gmail.com
Fri Apr 26 10:55:30 BST 2013


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-discuss/attachments/20130426/a5043917/attachment.htm>


More information about the ckan-discuss mailing list