NAME

Test::Shared::Fixture::Wikibase::Datatype::Statement::Wikidata::Image::Dog - Test instance for Wikidata statement.

SYNOPSIS

use Test::Shared::Fixture::Wikibase::Datatype::Statement::Wikidata::Image::Dog;

my $obj = Test::Shared::Fixture::Wikibase::Datatype::Statement::Wikidata::Image::Dog->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::Statement::Wikidata::Image::Dog->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::Statement::Wikidata::Image::Dog;
use Wikibase::Datatype::Print::Statement;

# Object.
my $obj = Test::Shared::Fixture::Wikibase::Datatype::Statement::Wikidata::Image::Dog->new;

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

# Output:
# P18: Canadian Inuit Dog.jpg (normal)

DEPENDENCIES

Test::Shared::Fixture::Wikibase::Datatype::Snak::Wikidata::Image::Dog, Wikibase::Datatype::Statement.

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