NAME
Test::Shared::Fixture::Wikibase::Datatype::Statement::Wikidata::InstanceOf::Human - Test instance for Wikidata statement.
SYNOPSIS
use Test::Shared::Fixture::Wikibase::Datatype::Statement::Wikidata::InstanceOf::Human;
my $obj = Test::Shared::Fixture::Wikibase::Datatype::Statement::Wikidata::InstanceOf::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::Statement::Wikidata::InstanceOf::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::Statement::Wikidata::InstanceOf::Human;
use Wikibase::Datatype::Print::Statement;
# Object.
my $obj = Test::Shared::Fixture::Wikibase::Datatype::Statement::Wikidata::InstanceOf::Human->new;
# Print out.
print scalar Wikibase::Datatype::Print::Statement::print($obj);
# Output:
# P31: Q5 (normal)
# References:
# {
# P248: Q53919
# P214: 113230702
# P813: 7 December 2013 (Q1985727)
# }
DEPENDENCIES
Test::Shared::Fixture::Wikibase::Datatype::Reference::Wikidata::VIAF, Test::Shared::Fixture::Wikibase::Datatype::Snak::Wikidata::InstanceOf::Human, 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
LICENSE AND COPYRIGHT
© 2020-2024 Michal Josef Špaček
BSD 2-Clause License
VERSION
0.34