NAME
Test::Shared::Fixture::Wikibase::Datatype::Snak::Wikidata::GrammaticalGender::Masculine - Test instance for Wikidata snak.
SYNOPSIS
use Test::Shared::Fixture::Wikibase::Datatype::Snak::Wikidata::GrammaticalGender::Masculine;
my $obj = Test::Shared::Fixture::Wikibase::Datatype::Snak::Wikidata::GrammaticalGender::Masculine->new;
my $datatype = $obj->datatype;
my $datavalue = $obj->datavalue;
my $property = $obj->property;
my $snaktype = $obj->snaktype;
METHODS
new
my $obj = Test::Shared::Fixture::Wikibase::Datatype::Snak::Wikidata::GrammaticalGender::Masculine->new;
Constructor.
Returns instance of object.
datatype
my $datatype = $obj->datatype;
Get data type.
Returns string.
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::Snak::Wikidata::GrammaticalGender::Masculine;
use Wikibase::Datatype::Print::Snak;
# Object.
my $obj = Test::Shared::Fixture::Wikibase::Datatype::Snak::Wikidata::GrammaticalGender::Masculine->new;
# Print out.
print scalar Wikibase::Datatype::Print::Snak::print($obj);
# Output:
# P5185: Q499327
DEPENDENCIES
Test::Shared::Fixture::Wikibase::Datatype::Value::Item::Wikidata::Masculine, Wikibase::Datatype::Snak.
SEE ALSO
- Wikibase::Datatype
-
Wikibase datatypes.
- Wikibase::Datatype::Snak
-
Wikibase snak datatype.
REPOSITORY
https://github.com/michal-josef-spacek/Wikibase-Datatype
AUTHOR
Michal Josef Špaček mailto:skim@cpan.org
LICENSE AND COPYRIGHT
© Michal Josef Špaček 2020-2023
BSD 2-Clause License
VERSION
0.33