MARC::Convert::Wikidata - Conversion class between MARC file to Wikibase::Datatype item.
use MARC::Convert::Wikidata; my $obj = MARC::Convert::Wikidata->new(%params); my $object = $obj->object; my $type = $obj->type; my $wikidata = $obj->wikidata;
Original intent of this class was conversion from MARC records in National Library of the Czech Republic to Wikidata. The conversion is not simple, this mean that many things are concrete for this concrete national library.
new
my $obj = MARC::Convert::Wikidata->new(%params);
Constructor.
callback_cover
Cover callback
Default value is undef.
callback_lang
Language callback.
callback_people
People callback.
callback_publisher_place
Place of publication Wikidata lookup callback.
callback_publisher_name
Publisher Wikidata lookup callback.
callback_series
Book series Wikidata lookup callback.
date_retrieved
Retrieved date.
marc_record
MARC::Record object.
It's required.
Returns instance of object.
object
my $object = $obj->object;
Get data object created from MARC record.
Returns MARC::Convert::Wikidata::Object instance.
type
my $type = $obj->type;
Process MARC record and detect which record type is. Supported values are: monograph, audiobook and periodical.
Returns string.
wikidata
my $wikidata = $obj->wikidata;
Process conversion from MARC record to Wikibase::Datatype::Item which is possible to load to Wikidata.
Returns Wikibase::Datatype instance.
new(): From Class::Utils::set_params(): Unknown parameter '%s'. Parameter 'marc_record' is required. Parameter 'marc_record' must be a MARC::Record object. type(): Unsupported item with leader '%s'. wikidata(): Item '%s' doesn't supported. Unsupported item with leader '%s'.
use strict; use warnings; use File::Temp; use MARC::Convert::Wikidata; # Object. my $obj = MARC::Convert::Wikidata->new; # TODO # Output like: # TODO
Class::Utils, Error::Pure, MARC::Convert::Wikidata::Item::AudioBook, MARC::Convert::Wikidata::Item::BookEdition, MARC::Convert::Wikidata::Item::Periodical, MARC::Convert::Wikidata::Transform, Scalar::Util.
Perl extension for handling MARC records
Wikibase item datatype.
https://github.com/michal-josef-spacek/MARC-Convert-Wikidata
Michal Josef Špaček mailto:skim@cpan.org
http://skim.cz
© 2021-2023 Michal Josef Špaček
BSD 2-Clause License
0.01
To install MARC::Convert::Wikidata, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MARC::Convert::Wikidata
CPAN shell
perl -MCPAN -e shell install MARC::Convert::Wikidata
For more information on module installation, please visit the detailed CPAN module installation guide.