NAME

Test::Shared::Fixture::Wikibase::Datatype::Form::Wikidata::DogCzechSingular - Test instance for Wikidata form.

SYNOPSIS

use Test::Shared::Fixture::Wikibase::Datatype::Form::Wikidata::DogCzechSingular;

my $obj = Test::Shared::Fixture::Wikibase::Datatype::Form::Wikidata::DogCzechSingular->new;
my $grammatical_features_ar = $obj->grammatical_features;
my $id = $obj->id;
my $representations_ar = $obj->representations;
my $statements_ar = $obj->statements;

METHODS

new

my $obj = Test::Shared::Fixture::Wikibase::Datatype::Form::Wikidata::DogCzechSingular->new;

Constructor.

Returns instance of object.

grammatical_features

my $grammatical_features_ar = $obj->grammatical_features;

Get grammatical features.

Returns reference to array of Q items.

id

my $id = $obj->id;

Get form identifier.

Returns string.

representations

my $representations_ar = $obj->representations;

Get representations.

Returns reference to array with Wikibase::Datatype::Value::Monolingual items.

statements

my $statements_ar = $obj->statements;

Get statements.

Returns reference to array of Wikibase::Datatype::Statement items.

EXAMPLE

use strict;
use warnings;

use Test::Shared::Fixture::Wikibase::Datatype::Form::Wikidata::DogCzechSingular;
use Unicode::UTF8 qw(encode_utf8);
use Wikibase::Datatype::Print::Form;

# Object.
my $obj = Test::Shared::Fixture::Wikibase::Datatype::Form::Wikidata::DogCzechSingular->new;

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

# Output:
# Id: L469-F1
# Representation: pes (cs)
# Grammatical features: Q110786, Q131105
# Statements:
#   P898: pɛs (normal)

DEPENDENCIES

Unicode::UTF8, Wikibase::Datatype::Form, Wikibase::Datatype::Statement, Wikibase::Datatype::Snak, Wikibase::Datatype::Value::Item, Wikibase::Datatype::Value::Monolingual, Wikibase::Datatype::Value::String.

SEE ALSO

Wikibase::Datatype

Wikibase datatypes.

Wikibase::Datatype::Form

Wikibase form 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