NAME
Test::Shared::Fixture::Wikibase::Datatype::MediainfoSnak::Commons::Depicts::Human - Test instance for Wikimedia Commons mediainfo snak.
SYNOPSIS
use Test::Shared::Fixture::Wikibase::Datatype::MediainfoSnak::Commons::Depicts::Human;
my $obj = Test::Shared::Fixture::Wikibase::Datatype::MediainfoSnak::Commons::Depicts::Human->new(%params);
my $datavalue = $obj->datavalue;
my $property = $obj->property;
my $snaktype = $obj->snaktype;
METHODS
new
my $obj = Test::Shared::Fixture::Wikibase::Datatype::MediainfoSnak::Commons::Depicts::Human->new(%params);
Constructor.
Returns instance of object.
datavalue
my $datavalue = $obj->datavalue;
Get data value.
Returns instance of Wikibase::Datatype::Value.
property
my $property = $obj->property;
Get property name.
Returns string.
snaktype
my $snaktype = $obj->snaktype;
Get snak type.
Returns string.
EXAMPLE
use strict;
use warnings;
use Test::Shared::Fixture::Wikibase::Datatype::MediainfoSnak::Commons::Depicts::Human;
use Wikibase::Datatype::Print::MediainfoSnak;
# Object.
my $obj = Test::Shared::Fixture::Wikibase::Datatype::MediainfoSnak::Commons::Depicts::Human->new;
# Print out.
print scalar Wikibase::Datatype::Print::MediainfoSnak::print($obj);
# Output:
# P180: Q42
DEPENDENCIES
Test::Shared::Fixture::Wikibase::Datatype::Value::Item::Wikidata::DouglasAdams, Wikibase::Datatype::MediainfoSnak.
SEE ALSO
- Wikibase::Datatype
-
Wikibase datatypes.
- Wikibase::Datatype::MediainfoSnak
-
Wikibase mediainfo snak 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