NAME

Test::Shared::Fixture::Wikibase::Datatype::Sense::Wikidata::Dog - Test instance for Wikidata sense.

SYNOPSIS

use Test::Shared::Fixture::Wikibase::Datatype::Sense::Wikidata::Dog;

my $obj = Test::Shared::Fixture::Wikibase::Datatype::Sense::Wikidata::Dog->new;
my $glosses_ar = $obj->glosses;
my $id = $obj->id;
my $statements_ar = $obj->statements;

DESCRIPTION

This datatype is snak class for representing relation between property and value.

METHODS

new

my $obj = Test::Shared::Fixture::Wikibase::Datatype::Sense::Wikidata::Dog->new;

Constructor.

Returns instance of object.

glosses

my $glosses_ar = $obj->glosses;

Get glosses.

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

id

my $id = $obj->id;

Get id.

Returns string.

statements

my $statements_ar = $obj->statements;

Get statements.

Returns reference to array with Wikibase::Datatype::Statement instances.

EXAMPLE

use strict;
use warnings;

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

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

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

# Output:
# Id: L469-S1
# Glosses:
#   domesticated mammal related to the wolf (en)
#   psovitá šelma chovaná jako domácí zvíře (cs)
# Statements:
#   P18: Canadian Inuit Dog.jpg (normal)
#   P5137: Q144 (normal)

DEPENDENCIES

Test::Shared::Fixture::Wikibase::Datatype::Statement::Wikidata::Image::Dog, Test::Shared::Fixture::Wikibase::Datatype::Statement::Wikidata::ItemForThisSense::Dog, Unicode::UTF8, Wikibase::Datatype::Sense, Wikibase::Datatype::Value::Monolingual.

SEE ALSO

Wikibase::Datatype

Wikibase datatypes.

Wikibase::Datatype::Sense

Wikibase sense 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-2023 Michal Josef Špaček

BSD 2-Clause License

VERSION

0.33