Catmandu icon indicating copy to clipboard operation
Catmandu copied to clipboard

WebService Importer/Exporter

Open phochste opened this issue 10 years ago • 4 comments

Create an importer to push JSON to an URI

phochste avatar Nov 14 '14 14:11 phochste

I have a similar intention for the DataCite metadata store (https://www.datacite.org/), i.e. DOI registry service for research data.

The necessary steps are:

  • create XML file in datacite format
  • HTTP POST this file together with your username/password

@phochste Should we have another base class, e.g. Catmandu::Exporter::Webservice? Then we can build new Exporter like Catmandu::Exporter::Webservice::Datacite, etc.

vpeil avatar Mar 12 '15 19:03 vpeil

@vpeil Yes, but I am a but uncomfortable with the naming convention. Catmandu::Exporter::Datacite that uses Catmandu::Exporter::Webservice as base class is ok for me. But be aware, I have issues with Catmandu::Exporter::MARC that used Perl subclassing in the past and got to problems having fixes executed twice.

phochste avatar Mar 13 '15 08:03 phochste

ok, then what about Catmandu::Webservice as base class?

On 13/03/15 09:30, Patrick Hochstenbach wrote:

@vpeil https://github.com/vpeil Yes, but I am a but uncomfortable with the naming convention. Catmandu::Exporter::Datacite that uses Catmandu::Exporter::Webservice as base class is ok for me. But be aware, I have issues with Catmandu::Exporter::MARC that used Perl subclassing in the past and got to problems having fixes executed twice.

— Reply to this email directly or view it on GitHub https://github.com/LibreCat/Catmandu/issues/114#issuecomment-78866375.

Vitali Peil Fachreferent PUB <pub.uni-bielefeld.de> Raum E1-144, Tel. 0521 106 6125 Universitätsbibliothek Bielefeld

vpeil avatar Mar 13 '15 08:03 vpeil

Sure. For now all exporters are Catmandu::Exporter::<***> nothing deeper.

phochste avatar Mar 13 '15 08:03 phochste