NAME

Test::Shared::Fixture::Wikibase::Datatype::Mediainfo::Commons::ImageOfHuman - Test instance for Wikimedia Commons mediainfo.

SYNOPSIS

use Test::Shared::Fixture::Wikibase::Datatype::Mediainfo::Commons::ImageOfHuman;

my $obj = Test::Shared::Fixture::Wikibase::Datatype::Mediainfo::Commons::ImageOfHuman->new;
my $descriptions_ar = $obj->descriptions;
my $id = $obj->id;
my $labels_ar = $obj->labels;
my $lastrevid = $obj->lastrevid;
my $modified = $obj->modified;
my $ns = $obj->ns;
my $page_id = $obj->page_id;
my $statements_ar = $obj->statements;
my $title = $obj->title;

METHODS

new

my $obj = Test::Shared::Fixture::Wikibase::Datatype::Mediainfo::Commons::ImageOfHuman->new;

Constructor.

Returns instance of object.

descriptions

my $descriptions_ar = $obj->descriptions;

Get descriptions.

Returns reference to array with Wikibase::Datatype::Value::Monolingual instances.

id

my $id = $obj->id;

Get id.

Returns string.

labels

my $labels_ar = $obj->labels;

Get labels.

Returns reference to array with Wikibase::Datatype::Value::Monolingual instances.

lastrevid

my $lastrevid = $obj->lastrevid;

Get last revision ID.

Returns string.

modified

my $modified = $obj->modified;

Get date of modification.

Returns string.

ns

my $ns = $obj->ns;

Get namespace.

Returns number.

page_id

my $page_id = $obj->page_id;

Get page id.

Returns number.

statements

my $statements_ar = $obj->statements;

Get statements.

Returns reference to array with Wikibase::Datatype::MediainfoStatement instances.

title

my $title = $obj->title;

Get title.

Returns string.

EXAMPLE

use strict;
use warnings;

use Test::Shared::Fixture::Wikibase::Datatype::Mediainfo::Commons::ImageOfHuman;
use Unicode::UTF8 qw(encode_utf8);
use Wikibase::Datatype::Print::Mediainfo;

# Object.
my $obj = Test::Shared::Fixture::Wikibase::Datatype::Mediainfo::Commons::ImageOfHuman->new;

# Print out.
print encode_utf8(scalar Wikibase::Datatype::Print::Mediainfo::print($obj))."\n";

# Output:
# Id: M10031710
# Title: File:Douglas adams portrait cropped.jpg
# NS: 6
# Last revision id: 617544224
# Date of modification: 2021-12-30T08:38:29Z
# Label: Portrait of Douglas Adams (en)
# Statements:
#   P180: Q42 (normal)

DEPENDENCIES

Test::Shared::Fixture::Wikibase::Datatype::MediainfoStatement::Commons::Depicts::Human, Wikibase::Datatype::Mediainfo, Wikibase::Datatype::Value::Monolingual.

SEE ALSO

Wikibase::Datatype

Wikibase datatypes.

Wikibase::Datatype::Mediainfo

Wikibase mediainfo datatype.

REPOSITORY

https://github.com/michal-josef-spacek/Wikibase-Datatype

AUTHOR

Michal Josef Špaček mailto:skim@cpan.org

http://skim.cz

LICENSE AND COPYRIGHT

© 2020-2023 Michal Josef Špaček

BSD 2-Clause License

VERSION

0.33