-
-
06 Feb 2021 18:54:32 UTC
- Distribution: Attean
- Module version: 0.030
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (30)
- Testers (262 / 12 / 4)
- Kwalitee
Bus factor: 1- 66.75% Coverage
- License: perl_5
- Perl: v5.14.0
- Activity
24 month- Tools
- Download (245KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Algorithm::Combinatorics
- DateTime::Format::W3CDTF
- Exporter::Tiny
- File::Slurp
- HTTP::Negotiate
- IRI
- JSON
- LWP::UserAgent
- List::MoreUtils
- Math::Cartesian::Product
- Module::Pluggable
- Moo
- MooX::Log::Any
- PerlIO::Layers
- Role::Tiny
- Set::Scalar
- Sub::Install
- Sub::Util
- Test::Modern
- Test::Moose
- Test::Roo
- Text::CSV
- Text::Table
- Try::Tiny
- Type::Tiny
- URI::Escape
- URI::NamespaceMap
- UUID::Tiny
- XML::SAX
- namespace::clean
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Attean::TermMap - Mapping terms to new terms
VERSION
This document describes Attean::TermMap version 0.030
SYNOPSIS
use v5.14; use Attean; my $m = Attean::TermMap->short_blank_map; my $new_blank = $m->map( Attean::Blank->new('abcdefg') ); say $new_blank->ntriples_string; # _:a
DESCRIPTION
The Attean::TermMap class represents a one-way mapping process from and to Attean::API::Term objects. This mapping may rename the blank identifiers, skolemize nodes, or map the nodes in some other, custom way.
It conforms to the Attean::API::Mapper role.
ATTRIBUTES
mapper
-
A CODE reference that will map Attean::API::Term objects to (possibly different) term objects.
CLASS METHODS
canonicalization_map
-
Returns a new Attean::TermMap that canonicalizes recognized typed Attean::API::Literal values.
uuid_blank_map
-
Returns a new Attean::TermMap that renames blank nodes with UUID values.
short_blank_map
-
Returns a new Attean::TermMap that renames blank nodes with short alphabetic names (e.g. _:a, _:b).
rewrite_map( \%map )
-
Given
%map
whose keys are termas_string
serializations, and objects are Attean::API::Term objects, returns a new term map object that maps terms matching entries in%map
, and all other terms to themselves.
METHODS
map( $term )
-
Returns the term that is mapped to by the supplied
$term
. binding_mapper
-
Returns a mapping function reference that maps Attean::API::Binding objects by mapping their constituent mapped Attean::API::Term objects.
BUGS
Please report any bugs or feature requests to through the GitHub web interface at https://github.com/kasei/attean/issues.
SEE ALSO
AUTHOR
Gregory Todd Williams
<gwilliams@cpan.org>
COPYRIGHT
Copyright (c) 2014--2020 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Attean, copy and paste the appropriate command in to your terminal.
cpanm Attean
perl -MCPAN -e shell install Attean
For more information on module installation, please visit the detailed CPAN module installation guide.