NAME

Test::Shared::Fixture::Wikibase::Datatype::MediainfoStatement::Commons::Depicts::Human - Test instance for Wikimedia Commons mediainfo statement.

SYNOPSIS

use Test::Shared::Fixture::Wikibase::Datatype::MediainfoStatement::Commons::Depicts::Human;

my $obj = Test::Shared::Fixture::Wikibase::Datatype::MediainfoStatement::Commons::Depicts::Human->new(%params);
my $id = $obj->id;
my $property_snaks_ar = $obj->property_snaks;
my $rank = $obj->rank;
my $referenes_ar = $obj->references;
my $snak = $obj->snak;

METHODS

new

my $obj = Test::Shared::Fixture::Wikibase::Datatype::MediainfoStatement::Commons::Depicts::Human->new(%params);

Constructor.

Returns instance of object.

id

my $id = $obj->id;

Get id of statement.

Returns string.

property_snaks

my $property_snaks_ar = $obj->property_snaks;

Get property snaks.

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

rank

my $rank = $obj->rank;

Get rank value.

references

my $referenes_ar = $obj->references;

Get references.

Returns reference to array with Wikibase::Datatype::Reference instance.

snak

my $snak = $obj->snak;

Get main snak.

Returns Wikibase::Datatype::Snak instance.

EXAMPLE

use strict;
use warnings;

use Test::Shared::Fixture::Wikibase::Datatype::MediainfoStatement::Commons::Depicts::Human;
use Wikibase::Datatype::Print::MediainfoStatement;

# Object.
my $obj = Test::Shared::Fixture::Wikibase::Datatype::MediainfoStatement::Commons::Depicts::Human->new;

# Print out.
print scalar Wikibase::Datatype::Print::MediainfoStatement::print($obj);

# Output:
# P180: Q42 (normal)

DEPENDENCIES

Test::Shared::Fixture::Wikibase::Datatype::MediainfoSnak::Commons::Depicts::Human, Wikibase::Datatype::MediainfoStatement.

SEE ALSO

Wikibase::Datatype

Wikibase datatypes.

Wikibase::Datatype::Statement

Wikibase statement 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