NAME
Test::Shared::Fixture::Wikibase::Datatype::Reference::Wikidata::VIAF - Test instance for Wikidata reference.
SYNOPSIS
use Test::Shared::Fixture::Wikibase::Datatype::Reference::Wikidata::VIAF;
my $obj = Test::Shared::Fixture::Wikibase::Datatype::Reference::Wikidata::VIAF->new;
my $snaks_ar = $obj->snaks;
METHODS
new
my $obj = Test::Shared::Fixture::Wikibase::Datatype::Reference::Wikidata::VIAF->new;
Constructor.
Returns instance of object.
snaks
my $snaks_ar = $obj->snaks;
Get snaks.
Returns reference to array of Wikibase::Datatype::Snak instances.
EXAMPLE
use strict;
use warnings;
use Test::Shared::Fixture::Wikibase::Datatype::Reference::Wikidata::VIAF;
use Wikibase::Datatype::Print::Reference;
# Object.
my $obj = Test::Shared::Fixture::Wikibase::Datatype::Reference::Wikidata::VIAF->new;
# Print out.
print scalar Wikibase::Datatype::Print::Reference::print($obj);
# Output:
# {
# P248: Q53919
# P214: 113230702
# P813: 07 December 2013 (Q1985727)
# }
DEPENDENCIES
Test::Shared::Fixture::Wikibase::Datatype::Snak::Wikidata::Retrieved::Fixture1, Test::Shared::Fixture::Wikibase::Datatype::Snak::Wikidata::StatedIn::VIAF, Wikibase::Datatype::Reference, Wikibase::Datatype::Snak, Wikibase::Datatype::Value::Item, Wikibase::Datatype::Value::String, Wikibase::Datatype::Value::Time.
SEE ALSO
- Wikibase::Datatype
-
Wikibase datatypes.
- Wikibase::Datatype::Reference
-
Wikibase reference value 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