Hi,
after some testings, let me go back to this still unsolved problem.
Thanks to Marten and Jose for their advices and testings.
Yes of course the URL I previously provided was an dummy one.
I've tried to harvest this PyCSW instance:
http://geothermaldata.org/csw?service=CSW&version=2.0.2&request=GetCapabilities
Within GN I get errors (see log file below).
We have made test with another PyCSW instance and the remote instance has
monitored the request coming from the GN harvester. You have the request log
below.
Apparently the GN harvester sends a formatted request upon the PyCSW that is
not compatible...
Do you have already a successful example of GN harvest onto a PyCSW instance
or any clue to solve this pb. ?
Many thanks in advance for your help.
Cheers.
Lionel
*******GN LOGS**********
2014-09-26 10:08:14,434 WARN [geonetwork.harvester] - Raised exception when
searching : org.fao.geonet.csw.common.exceptions.InvalidParameterValueEx:
code=InvalidParameterValue, locator=constraint, message=Invalid query:
(ProgrammingError) syntax error at or near ":"
LINE 4: WHERE csw:Operation+=+'{Operation}'+AND+csw:Format+=+'{Forma...
^
"SELECT count(*) AS count_1 \nFROM (SELECT records.identifier AS
records_identifier, records.typename AS records_typename, records.schema AS
records_schema, records.mdsource AS records_mdsource, records.insert_date AS
records_insert_date, records.xml AS records_xml, records.anytext AS
records_anytext, records.language AS records_language, records.type AS
records_type, records.title AS records_title, records.title_alternate AS
records_title_alternate, records.abstract AS records_abstract,
records.keywords AS records_keywords, records.keywordstype AS
records_keywordstype, records.parentidentifier AS records_parentidentifier,
records.relation AS records_relation, records.time_begin AS
records_time_begin, records.time_end AS records_time_end,
records.topicategory AS records_topicategory, records.resourcelanguage AS
records_resourcelanguage, records.creator AS records_creator,
records.publisher AS records_publisher, records.contributor AS
records_contributor, records.organization AS records_organization,
records.securityconstraints AS records_securityconstraints,
records.accessconstraints AS records_accessconstraints,
records.otherconstraints AS records_otherconstraints, records.date AS
records_date, records.date_revision AS records_date_revision,
records.date_creation AS records_date_creation, records.date_publication AS
records_date_publication, records.date_modified AS records_date_modified,
records.format AS records_format, records.source AS records_source,
records.crs AS records_crs, records.geodescode AS records_geodescode,
records.denominator AS records_denominator, records.distancevalue AS
records_distancevalue, records.distanceuom AS records_distanceuom,
records.wkt_geometry AS records_wkt_geometry, records.servicetype AS
records_servicetype, records.servicetypeversion AS
records_servicetypeversion, records.operation AS records_operation,
records.couplingtype AS records_couplingtype, records.operateson AS
records_operateson, records.operatesonidentifier AS
records_operatesonidentifier, records.operatesoname AS
records_operatesoname, records.degree AS records_degree,
records.classification AS records_classification,
records.conditionapplyingtoaccessanduse AS
records_conditionapplyingtoaccessanduse, records.lineage AS records_lineage,
records.responsiblepartyrole AS records_responsiblepartyrole,
records.specificationtitle AS records_specificationtitle,
records.specificationdate AS records_specificationdate,
records.specificationdatetype AS records_specificationdatetype,
records.links AS records_links, records.ckan_id AS records_ckan_id,
records.ckan_modified AS records_ckan_modified, records.anytext_tsvector AS
records_anytext_tsvector, records.wkb_geometry AS records_wkb_geometry
\nFROM records \nWHERE
csw:Operation+=+'{Operation}'+AND+csw:Format+=+'{Format}'+AND+csw:ResponsiblePartyRole+=+'{ResponsiblePartyRole}'+AND+csw:OnlineResourceMimeType+=+'{OnlineResourceMimeType}'+AND+csw:OrganisationName+=+'{OrganisationName}'+AND+csw:Type+=+'{Type}'+AND+csw:ServiceType+=+'{ServiceType}'+AND+csw:DistanceValue+=+'{DistanceValue}'+AND+csw:OnlineResourceType+=+'{OnlineResourceType}'+AND+csw:ResourceLanguage+=+'{ResourceLanguage}'+AND+csw:Lineage+=+'{Lineage}'+AND+csw:RevisionDate+=+'{RevisionDate}'+AND+csw:GeographicDescriptionCode+=+'{GeographicDescriptionCode}'+AND+csw:OperatesOn+=+'{OperatesOn}'+AND+anytext+=+'{AnyText}'+AND+csw:Classification+=+'{Classification}'+AND+csw:Modified+=+'{Modified}'+AND+csw:PublicationDate+=+'{PublicationDate}'+AND+csw:OtherConstraints+=+'{OtherConstraints}'+AND+csw:ResourceIdentifier+=+'{ResourceIdentifier}'+AND+csw:ParentIdentifier+=+'{ParentIdentifier}'+AND+csw:SpecificationTitle+=+'{SpecificationTitle}'+AND+csw:Identifier+=+'{Identifier}'+AND+csw:TopicCategory+=+'{TopicCategory}'+AND+csw:CouplingType+=+'{CouplingType}'+AND+csw:OperatesOnIdentifier+=+'{OperatesOnIdentifier}'+AND+csw:TempExtent_end+=+'{TempExtent_end}'+AND+csw:ServiceTypeVersion+=+'{ServiceTypeVersion}'+AND+csw:AccessConstraints+=+'{AccessConstraints}'+AND+csw:Subject+=+'{Subject}'+AND+csw:CreationDate+=+'{CreationDate}'+AND+csw:OperatesOnName+=+'{OperatesOnName}'+AND+csw:Title+=+'{Title}'+AND+csw:SpecificationDate+=+'{SpecificationDate}'+AND+csw:DistanceUOM+=+'{DistanceUOM}'+AND+csw:ConditionApplyingToAccessAndUse+=+'{ConditionApplyingToAccessAndUse}'+AND+csw:SpecificationDateType+=+'{SpecificationDateType}'+AND+csw:MetadataPointOfContact+=+'{MetadataPointOfContact}'+AND+csw:Denominator+=+'{Denominator}'+AND+csw:Degree+=+'{Degree}'+AND+csw:TempExtent_begin+=+'{TempExtent_begin}'+AND+csw:AlternateTitle+=+'{AlternateTitle}'+AND+csw:Language+=+'{Language}'+AND+csw:HasSecurityConstraints+=+'{HasSecurityConstraints}'+AND+csw:KeywordType+=+'{KeywordType}'+AND+csw:Abstract+=+'{Abstract}')
AS anon_1" {}
2014-09-26 10:08:14,435 DEBUG [geonetwork.harvester] - Raised exception when
searching: Invalid query: (ProgrammingError) syntax error at or near ":"
LINE 4: WHERE csw:Operation+=+'{Operation}'+AND+csw:Format+=+'{Forma...
^
"SELECT count(*) AS count_1 \nFROM (SELECT records.identifier AS
records_identifier, records.typename AS records_typename, records.schema AS
records_schema, records.mdsource AS records_mdsource, records.insert_date AS
records_insert_date, records.xml AS records_xml, records.anytext AS
records_anytext, records.language AS records_language, records.type AS
records_type, records.title AS records_title, records.title_alternate AS
records_title_alternate, records.abstract AS records_abstract,
records.keywords AS records_keywords, records.keywordstype AS
records_keywordstype, records.parentidentifier AS records_parentidentifier,
records.relation AS records_relation, records.time_begin AS
records_time_begin, records.time_end AS records_time_end,
records.topicategory AS records_topicategory, records.resourcelanguage AS
records_resourcelanguage, records.creator AS records_creator,
records.publisher AS records_publisher, records.contributor AS
records_contributor, records.organization AS records_organization,
records.securityconstraints AS records_securityconstraints,
records.accessconstraints AS records_accessconstraints,
records.otherconstraints AS records_otherconstraints, records.date AS
records_date, records.date_revision AS records_date_revision,
records.date_creation AS records_date_creation, records.date_publication AS
records_date_publication, records.date_modified AS records_date_modified,
records.format AS records_format, records.source AS records_source,
records.crs AS records_crs, records.geodescode AS records_geodescode,
records.denominator AS records_denominator, records.distancevalue AS
records_distancevalue, records.distanceuom AS records_distanceuom,
records.wkt_geometry AS records_wkt_geometry, records.servicetype AS
records_servicetype, records.servicetypeversion AS
records_servicetypeversion, records.operation AS records_operation,
records.couplingtype AS records_couplingtype, records.operateson AS
records_operateson, records.operatesonidentifier AS
records_operatesonidentifier, records.operatesoname AS
records_operatesoname, records.degree AS records_degree,
records.classification AS records_classification,
records.conditionapplyingtoaccessanduse AS
records_conditionapplyingtoaccessanduse, records.lineage AS records_lineage,
records.responsiblepartyrole AS records_responsiblepartyrole,
records.specificationtitle AS records_specificationtitle,
records.specificationdate AS records_specificationdate,
records.specificationdatetype AS records_specificationdatetype,
records.links AS records_links, records.ckan_id AS records_ckan_id,
records.ckan_modified AS records_ckan_modified, records.anytext_tsvector AS
records_anytext_tsvector, records.wkb_geometry AS records_wkb_geometry
\nFROM records \nWHERE
csw:Operation+=+'{Operation}'+AND+csw:Format+=+'{Format}'+AND+csw:ResponsiblePartyRole+=+'{ResponsiblePartyRole}'+AND+csw:OnlineResourceMimeType+=+'{OnlineResourceMimeType}'+AND+csw:OrganisationName+=+'{OrganisationName}'+AND+csw:Type+=+'{Type}'+AND+csw:ServiceType+=+'{ServiceType}'+AND+csw:DistanceValue+=+'{DistanceValue}'+AND+csw:OnlineResourceType+=+'{OnlineResourceType}'+AND+csw:ResourceLanguage+=+'{ResourceLanguage}'+AND+csw:Lineage+=+'{Lineage}'+AND+csw:RevisionDate+=+'{RevisionDate}'+AND+csw:GeographicDescriptionCode+=+'{GeographicDescriptionCode}'+AND+csw:OperatesOn+=+'{OperatesOn}'+AND+anytext+=+'{AnyText}'+AND+csw:Classification+=+'{Classification}'+AND+csw:Modified+=+'{Modified}'+AND+csw:PublicationDate+=+'{PublicationDate}'+AND+csw:OtherConstraints+=+'{OtherConstraints}'+AND+csw:ResourceIdentifier+=+'{ResourceIdentifier}'+AND+csw:ParentIdentifier+=+'{ParentIdentifier}'+AND+csw:SpecificationTitle+=+'{SpecificationTitle}'+AND+csw:Identifier+=+'{Identifier}'+AND+csw:TopicCategory+=+'{TopicCategory}'+AND+csw:CouplingType+=+'{CouplingType}'+AND+csw:OperatesOnIdentifier+=+'{OperatesOnIdentifier}'+AND+csw:TempExtent_end+=+'{TempExtent_end}'+AND+csw:ServiceTypeVersion+=+'{ServiceTypeVersion}'+AND+csw:AccessConstraints+=+'{AccessConstraints}'+AND+csw:Subject+=+'{Subject}'+AND+csw:CreationDate+=+'{CreationDate}'+AND+csw:OperatesOnName+=+'{OperatesOnName}'+AND+csw:Title+=+'{Title}'+AND+csw:SpecificationDate+=+'{SpecificationDate}'+AND+csw:DistanceUOM+=+'{DistanceUOM}'+AND+csw:ConditionApplyingToAccessAndUse+=+'{ConditionApplyingToAccessAndUse}'+AND+csw:SpecificationDateType+=+'{SpecificationDateType}'+AND+csw:MetadataPointOfContact+=+'{MetadataPointOfContact}'+AND+csw:Denominator+=+'{Denominator}'+AND+csw:Degree+=+'{Degree}'+AND+csw:TempExtent_begin+=+'{TempExtent_begin}'+AND+csw:AlternateTitle+=+'{AlternateTitle}'+AND+csw:Language+=+'{Language}'+AND+csw:HasSecurityConstraints+=+'{HasSecurityConstraints}'+AND+csw:KeywordType+=+'{KeywordType}'+AND+csw:Abstract+=+'{Abstract}')
AS anon_1" {}
2014-09-26 10:08:14,435 DEBUG [geonetwork.harvester] - Changing to CSW
harvester to use POST
2014-09-26 10:08:14,437 INFO [geonetwork.harvester] - Searching on :
GEOTHERMAL NGDS (1..21)
2014-09-26 10:08:14,947 WARN [geonetwork.harvester] - Raised exception when
searching : org.jdom.input.JDOMParseException: Error on line 79: The element
type "br" must be terminated by the matching end-tag "</br>".
2014-09-26 10:08:14,947 WARN [geonetwork.harvester] - Raised exception
while harvesting from : GEOTHERMAL NGDS (CswHarvester)
2014-09-26 10:08:14,947 WARN [geonetwork.harvester] - (C) Class :
OperationAbortedEx
2014-09-26 10:08:14,948 WARN [geonetwork.harvester] - (C) Message : Raised
exception when searching: Error on line 79: The element type "br" must be
terminated by the matching end-tag "</br>".
*****************
*******PiCSW REQUEST LOGS**********
http://demo.pycsw.org/gisdata/csw?request=GetRecords&service=CSW&version=2.0.2&resultType=results&namespace=xmlns(csw=http://www.opengis.net/cat/csw/2.0.2),xmlns(gmd=http://www.isotc211.org/2005/gmd)&outputFormat=application/xml&outputSchema=http://www.isotc211.org/2005/gmd&startPosition=1&maxRecords=20&elementSetName=summary&constraint=csw:Operation
= '{Operation}' AND csw:Format = '{Format}' AND csw:ResponsiblePartyRole =
'{ResponsiblePartyRole}' AND csw:OnlineResourceMimeType =
'{OnlineResourceMimeType}' AND csw:OrganisationName = '{OrganisationName}'
AND csw:Type = '{Type}' AND csw:ServiceType = '{ServiceType}' AND
csw:DistanceValue = '{DistanceValue}' AND csw:OnlineResourceType =
'{OnlineResourceType}' AND csw:ResourceLanguage = '{ResourceLanguage}' AND
csw:Lineage = '{Lineage}' AND csw:RevisionDate = '{RevisionDate}' AND
csw:GeographicDescriptionCode = '{GeographicDescriptionCode}' AND
csw:OperatesOn = '{OperatesOn}' AND csw:AnyText = '{AnyText}' AND
csw:Classification!
= '{Classification}' AND csw:Modified = '{Modified}' AND csw:PublicationDate
= '{PublicationDate}' AND csw:OtherConstraints = '{OtherConstraints}' AND
csw:ResourceIdentifier = '{ResourceIdentifier}' AND csw:ParentIdentifier =
'{ParentIdentifier}' AND csw:SpecificationTitle = '{SpecificationTitle}' AND
csw:Identifier = '{Identifier}' AND csw:TopicCategory = '{TopicCategory}'
AND csw:CouplingType = '{CouplingType}' AND csw:OperatesOnIdentifier =
'{OperatesOnIdentifier}' AND csw:TempExtent_end = '{TempExtent_end}' AND
csw:ServiceTypeVersion = '{ServiceTypeVersion}' AND csw:AccessConstraints =
'{AccessConstraints}' AND csw:Subject = '{Subject}' AND csw:CreationDate =
'{CreationDate}' AND csw:OperatesOnName = '{OperatesOnName}' AND csw:Title =
'{Title}' AND csw:SpecificationDate = '{SpecificationDate}' AND
csw:DistanceUOM = '{DistanceUOM}' AND csw:ConditionApplyingToAccessAndUse =
'{ConditionApplyingToAccessAndUse}' AND csw:SpecificationDateType =
'{SpecificationDateType}' AND !
csw:MetadataPointOfContact = '{MetadataPointOfContact}' AND csw:Denominator
= '{Denominator}' AND csw:Degree = '{Degree}' AND csw:TempExtent_begin =
'{TempExtent_begin}' AND csw:AlternateTitle = '{AlternateTitle}' AND
csw:Language = '{Language}' AND csw:HasSecurityConstraints =
'{HasSecurityConstraints}' AND csw:KeywordType = '{KeywordType}' AND
csw:Abstract =
'{Abstract}'&constraintLanguage=CQL_TEXT&constraint_language_version=1.1.0&typeNames=gmd:MD_Metadata,csw:Record
*****************
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/PyCSW-Harvest-tp5163863p5164874.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.