<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<br>FYI I have updated the codebase in svn trunk [1] to accept http://www.isotc211.org/schemas/2005/gmd/ and http://www.isotc211.org/2005/gmd/ as acceptable csw:ResourceType values for ISO metadata.  Thanks for catching this.<br><br>[1] http://sourceforge.net/apps/trac/pycsw/changeset/550<br><br><div><div id="SkyDrivePlaceholder"></div>> From: tomkralidis@hotmail.com<br>> To: kathrin@waterinsight.nl; pycsw-devel@lists.osgeo.org<br>> Date: Wed, 30 May 2012 13:32:05 -0400<br>> Subject: Re: [pycsw-devel] Problem with harvesting from another csw server<br>> <br>> <br>> <br>> Hi Kathrin: thanks for the info.  At this point, pycsw supports harvesting at the metadata record level, and WMS  (which will harvest all layers from a WMS).<br>> <br>> Currently, pycsw takes the http://www.opengis.net/cat/csw/2.0.2 as a Dublin Core metadata record.  We should extend this by checking if the resource is a metadata record, or a CSW capabilities document.  If the latter, then harvest the entire CSW.<br>> <br>> For a quick workaround, you could write a script to loop through an existing CSW, pick up all identifiers and feed these to pycsw to Harvest (where the Source element value would be a GetRecordById request to the record.<br>> <br>> Having said this, I think this would be a valuable addition.  If you can file an enhancement ticket at https://sourceforge.net/apps/trac/pycsw, this would be much appreciated; I will implement this for 1.4.0 (summer 2012).<br>> <br>> Thanks<br>> <br>> ..Tom<br>> <br>> <br>> <br>> Date: Wed, 30 May 2012 18:36:22 +0200<br>> From: kathrin@waterinsight.nl<br>> To: pycsw-devel@lists.osgeo.org<br>> Subject: [pycsw-devel] Problem with harvesting from another csw server<br>> <br>> Hello list,<br>> <br>> I have just started testing pycsw for our meta data catalogue and am<br>> quite impressed so far. Great work!<br>> <br>> However, I have now stumbled upon a problem when using the harvesting<br>> operation. I have enabled transactions in the default.cfg file and the<br>> <br>> <br>> <br>> harvesting test from the test suite works (after changing ResourceType<br>> from http://www.isotc211.org/schemas/2005/gmd/ to<br>> http://www.isotc211.org/2005/gmd). However, this only harvests<br>> <br>> <br>> <br>> individual metadata files. What I want to do is to harvest all records<br>> from another CSW server. So, from what I understand, I would have to<br>> change ResourceType to http://www.opengis.net/cat/csw/2.0.2 and give<br>> <br>> <br>> <br>> the link to the capabilities document as Source.<br>> <br>> So, my query is:<br>> <br>> <?xml version="1.0" encoding="UTF-8"?><br>> <Harvest xmlns="http://www.opengis.net/cat/csw/2.0.2"<br>> <br>> <br>> <br>> xmlns:ogc="http://www.opengis.net/ogc"<br>> xmlns:gmd="http://www.isotc211.org/2005/gmd"<br>> <br>> <br>> xmlns:ows="http://www.opengis.net/ows"<br>> <br>> xmlns:xsd="http://www.w3.org/2001/XMLSchema"<br>> xmlns:dc="http://purl.org/dc/elements/1.1/"<br>> <br>> <br>> xmlns:dct="http://purl.org/dc/terms/"<br>> <br>> xmlns:gml="http://www.opengis.net/gml"<br>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br>> <br>> <br>> xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2<br>> <br>> http://schemas.opengis.net/csw/2.0.2/CSW-publication.xsd"<br>> service="CSW" version="2.0.2"><br>>  <Source>http://aiolos.survey.ntua.gr/pycsw/csw.py?service=CSW&version=2.0.2&request=GetCapabilities</Source><br>> <br>> <br>> <br>>  <ResourceType>http://www.opengis.net/cat/csw/2.0.2</ResourceType><br>>  <ResourceFormat>application/xml</ResourceFormat><br>> </Harvest><br>> <br>> <br>> <br>> <br>> And the exception I get is:<br>> <br>> <?xml version="1.0" encoding="UTF-8" standalone="no"?><br>> <!-- pycsw 1.2.0 --><br>> <ows:ExceptionReport xmlns:dc="http://purl.org/dc/elements/1.1/"<br>> <br>> <br>> <br>> xmlns:inspire_common="http://inspire.ec.europa.eu/schemas/common/1.0"<br>> xmlns:xs="http://www.w3.org/2001/XMLSchema"<br>> <br>> <br>> <br>> xmlns:dct="http://purl.org/dc/terms/"<br>> xmlns:ows="http://www.opengis.net/ows"<br>> xmlns:apiso="http://www.opengis.net/cat/csw/apiso/1.0"<br>> <br>> <br>> <br>> xmlns:gml="http://www.opengis.net/gml"<br>> xmlns:dif="http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/"<br>> <br>> <br>> xmlns:xlink="http://www.w3.org/1999/xlink"<br>> <br>> xmlns:gco="http://www.isotc211.org/2005/gco"<br>> xmlns:gmd="http://www.isotc211.org/2005/gmd"<br>> <br>> <br>> xmlns:srv="http://www.isotc211.org/2005/srv"<br>> <br>> xmlns:ogc="http://www.opengis.net/ogc"<br>> xmlns:fgdc="http://www.opengis.net/cat/csw/csdgm"<br>> <br>> <br>> xmlns:inspire_ds="http://inspire.ec.europa.eu/schemas/inspire_ds/1.0"<br>> <br>> xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"<br>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br>> <br>> <br>> <br>> xmlns:os="http://a9.com/-/spec/opensearch/1.1/"<br>> xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"<br>> <br>> <br>> <br>> xmlns:sitemap="http://www.sitemaps.org/schemas/sitemap/0.9"<br>> version="1.2.0" language="en-US"<br>> xsi:schemaLocation="http://www.opengis.net/ows<br>> <br>> <br>> <br>> http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd"><br>>  <ows:Exception locator="service" exceptionCode="InvalidRequest"><br>> <br>> <br>> <br>>    <ows:ExceptionText>Exception: document not well-formed.<br>> Error: EntityRef: expecting ';', line 3, column 72.</ows:ExceptionText><br>>  </ows:Exception><br>> </ows:ExceptionReport><br>> <br>> <br>> <br>> Is there something here that I am missing? Pycsw version is 1.2.0,<br>> <br>> python 2.6.6 running on Debian squeeze.<br>> <br>> Any help will be appreciated!<br>> <br>> Best regards,<br>> Kathrin<br>> <br>> <br>> _______________________________________________<br>> pycsw-devel mailing list<br>> pycsw-devel@lists.osgeo.org<br>> http://lists.osgeo.org/mailman/listinfo/pycsw-devel                                           <br>> _______________________________________________<br>> pycsw-devel mailing list<br>> pycsw-devel@lists.osgeo.org<br>> http://lists.osgeo.org/mailman/listinfo/pycsw-devel<br></div>                                         </div></body>
</html>