NAME

Test::Shared::Fixture::Wikibase::Datatype::Lexeme::Wikidata::DogCzechNoun - Test instance for Wikidata form.

SYNOPSIS

use Test::Shared::Fixture::Wikibase::Datatype::Lexeme::Wikidata::DogCzechNoun;

my $obj = Test::Shared::Fixture::Wikibase::Datatype::Lexeme::Wikidata::DogCzechNoun->new;
my $forms_ar = $obj->forms;
my $id = $obj->id;
my $language = $obj->language;
my $lastrevid = $obj->lastrevid;
my $lemmas_ar = $obj->lemmas;
my $lexical_category = $obj->lexical_category;
my $modified = $obj->modified;
my $ns = $obj->ns;
my $page_id = $obj->page_id;
my $senses_ar = $obj->senses;
my $statements_ar = $obj->statements;
my $title = $obj->title;

METHODS

new

my $obj = Test::Shared::Fixture::Wikibase::Datatype::Lexeme::Wikidata::DogCzechNoun->new(%params);

Constructor.

Returns instance of object.

forms

my $forms_ar = $obj->forms;

Get forms.

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

id

my $id = $obj->id;

Get id.

Returns string.

language

my $language = $obj->language;

Get language.

Returns string with QID.

lastrevid

my $lastrevid = $obj->lastrevid;

Get last revision ID.

Returns string.

lemmas

my $lemmas_ar = $obj->lemmas;

Get lemmas.

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

lexical_category

my $lexical_category = $obj->lexical_category;

Get lexical category.

Returns string with QID.

modified

my $modified = $obj->modified;

Get date of modification.

Returns string.

ns

my $ns = $obj->ns;

Get namespace.

Returns number.

page_id

my $page_id = $obj->page_id;

Get page id.

Returns number.

senses

my $senses_ar = $obj->senses;

Get senses.

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

statements

my $statements_ar = $obj->statements;

Get statements.

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

title

my $title = $obj->title;

Get title.

Returns string.

EXAMPLE

use strict;
use warnings;

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

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

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

# Output:
# Title: Lexeme:L469
# Lemmas: pes (cs)
# Language: Q9056
# Lexical category: Q1084
# Statements:
#   P5185: Q499327 (normal)
#   References:
#     {
#       P248: Q53919
#       P214: 113230702
#       P813: 7 December 2013 (Q1985727)
#     }
# Senses:
#   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)
# Forms:
#   Id: L469-F1
#   Representation: pes (cs)
#   Grammatical features: Q110786, Q131105
#   Statements:
#     P898: pɛs (normal)

DEPENDENCIES

Test::Shared::Fixture::Wikibase::Datatype::Form::Wikidata::DogCzechSingular, Test::Shared::Fixture::Wikibase::Datatype::Sense::Wikidata::Dog, Test::Shared::Fixture::Wikibase::Datatype::Statement::Wikidata::GrammaticalGender::Masculine, Wikibase::Datatype::Lexeme, Wikibase::Datatype::Value::Monolingual.

SEE ALSO

Wikibase::Datatype

Wikibase datatypes.

Wikibase::Datatype::Lexeme

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