NAME
Test::Shared::Fixture::Wikibase::Datatype::Reference::Wikidata::ReferenceURL - Test instance for Wikidata reference.
SYNOPSIS
use Test::Shared::Fixture::Wikibase::Datatype::Reference::Wikidata::ReferenceURL;
my $obj = Test::Shared::Fixture::Wikibase::Datatype::Reference::Wikidata::ReferenceURL->new;
my $snaks_ar = $obj->snaks;
METHODS
new
my $obj = Test::Shared::Fixture::Wikibase::Datatype::Reference::Wikidata::ReferenceURL->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::ReferenceURL;
use Wikibase::Datatype::Print::Reference;
# Object.
my $obj = Test::Shared::Fixture::Wikibase::Datatype::Reference::Wikidata::ReferenceURL->new;
# Print out.
print scalar Wikibase::Datatype::Print::Reference::print($obj);
# Output:
# {
# P854: https://skim.cz
# P813: 07 December 2013 (Q1985727)
# }
DEPENDENCIES
Test::Shared::Fixture::Wikibase::Datatype::Snak::Wikidata::ReferenceURL::Fixture1, Test::Shared::Fixture::Wikibase::Datatype::Snak::Wikidata::Retrieved::Fixture1, Wikibase::Datatype::Reference.
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-2023 Michal Josef Špaček
BSD 2-Clause License
VERSION
0.33