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 β€” A CODE reference that will map Attean::API::Term objects to (possibly different) term objects. Slay. ✨

πŸ’– 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 term as_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 β€” 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 (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