Attean::TermMap(3pm)
πΈ NAME πΈ
This is the Attean::TermMap(3pm) page from the User Contributed Perl Documentation, bestie β and itβs about Attean::TermMap - Mapping terms to new terms π
π VERSION π
This document describes Attean::TermMap version 0.035 β¨
π§ SYNOPSIS π§
Okay so hereβs the tiny little demo:
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 is literally 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 β main character energy, fr fr. π
𧬠ATTRIBUTES π§¬
mapperβ ACODEreference that will mapAttean::API::Termobjects to (possibly different) term objects. Slay. β¨
π CLASS METHODS π
canonicalization_mapβ Returns a newAttean::TermMapthat canonicalizes recognized typedAttean::API::Literalvalues. πuuid_blank_mapβ Returns a newAttean::TermMapthat renames blank nodes with UUID values. π¦short_blank_mapβ Returns a newAttean::TermMapthat renames blank nodes with short alphabetic names (e.g._:a,_:b). πrewrite_map( \%map )β Given%mapwhose keys are termas_stringserializations, and objects areAttean::API::Termobjects, 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 mapsAttean::API::Bindingobjects by mapping their constituent mappedAttean::API::Termobjects. π
π BUGS π
Please report any bugs or feature requests to through the GitHub web interface at https://github.com/kasei/attean/issues β yes, thatβs the whole path, bestie. π
π SEE ALSO π
No named pages are listed here. This section is giving empty-void energy. π«₯
π AUTHOR π
Gregory Todd Williams β gwilliams@cpan.org π«Ά
π COPYRIGHT π
Copyright (c) 2014--2022 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. π
Sign-off, bestie: this page is from perl v5.40.0, dated 2025-01-26, and itβs the Attean::TermMap(3pm) manpage. Byeee πβ¨
π¦ where this page comes from
- debian trixie: libattean-perl 0.035-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libattean-perl 0.035-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libattean-perl 0.035-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms