NAME

Test::Shared::Fixture::Wikibase::Datatype::Statement::Wikidata::GivenName::Michal - Test instance for Wikidata statement.

SYNOPSIS

use Test::Shared::Fixture::Wikibase::Datatype::Statement::Wikidata::GivenName::Michal;

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

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

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

# Output:
# P735: Q18563993 (normal)

DEPENDENCIES

Test::Shared::Fixture::Wikibase::Datatype::Snak::Wikidata::GivenName::Michal, 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-2024 Michal Josef Špaček

BSD 2-Clause License

VERSION

0.34