Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

publish metadata to geonetwork

Hi,
I'm trying to publish some metadata to geonetwork. I looked at the corresponding tutorial, and adapted the example to my situation. Since i didn't manage to get metadata from sPostgisOutput (see previous post), i decided to output my Postgis data to a new shapefile, and use this shapefile's metadata output. So far so nice.
But when i trigger a "OnComponentOK" from this shapefile to a sCataloguePublisher, set up as in the example, I get the following message
"org.talend.sdi.metadata.GeoNetwork | Connected to GeoNetwork.
org.talend.sdi.metadata.Catalogue | Invalid XML Document 'Error on line 33 of document : The element type "META" must be terminated by the matching end-tag "". Nested exception: The element type "META" must be terminated by the matching end-tag "".'
null
sCataloguePublisher_1 | Metadata published."
and/but nothing is published on the catalogue.
It's pretty disappointing.
Any idea to help me ?
Thanks,
Jean

Labels (2)
6 Replies
Anonymous
Not applicable
Author

Hi,
It looks like you get an error from the GeoNetwork catalogue when inserting the metadata.
Could you post your xml metadata document for test ?
You could also try a metadata XML insert from the admin interface to check the import.
HTH.
Francois
Anonymous
Not applicable
Author

Hi,
Thanks for the answer. You're right, i did not think of publishing the XML file and then insert it via the geonetwork interface.
The fact is i can't find how to write de metadata output as an XML file, in SDI's interface. It looks like i'm not allowed to output metadata to classic XML file output.
Any idea ?
Anonymous
Not applicable
Author

Hi,
You can use tFileOutputXML in XML Menu.
Regards
Anonymous
Not applicable
Author

Hello,
Hi,
Thanks for the answer. You're right, i did not think of publishing the XML file and then insert it via the geonetwork interface.
The fact is i can't find how to write de metadata output as an XML file, in SDI's interface. It looks like i'm not allowed to output metadata to classic XML file output.
Any idea ?

The XML document should be in the same directory as your shapefile, with shapefile_name.shp.xml as filename.
HTH. Francois
Anonymous
Not applicable
Author

Right, thanks. It didn't think of looking in the filesystem.
OK. So, the errors are on validation of the document. first error is about the "Equivalent scale Denominator" (name in geonetwork's interface) not filled.
I get an error "Exception in endElement: cvc-datatype-valid.1.2.1: '' is not a valid value for 'integer'."
Looks like the problem is that some compulsary informations are missing, so it fails to pass the validation.
Here is the XML file generated by SDI (that is, in fact, almost empty except from the geographical bouding box)

<MD_METADATA GMD=" http://www.isotc211.org/2005/gmd" XSI=" http://www.w3.org/2001/XMLSchema-instance" GML=" http://www.opengis.net/gml" GTS=" http://www.isotc211.org/2005/gts" GCO="

To see the whole post, download it here
OriginalPost.pdf
Anonymous
Not applicable
Author

Hi, for now Talend is taking care of filling the following info using your input in the component properties:
* title
* abstract
* purpose
* topic category
... and automatically set:
* bbox
* number of features
* feature types
* creation date
Then all other informations are set in the XML templates used (look at workspace/.spatial/md/template/iso19139.xml). Feel free to edit the template (or create a new one) to set info like contact, maxscale denominator, and other ... which could not be set automatically.
Maybe some other elements could be set by Talend during the process (e.g CRS, lineage ...) but this has not be done so far ... And not planned from my side for now.
If you have comments, inputs, advices on how to improve that metadata creation process do not hesitate to discuss that point here.
HTH.
Francois