Attean::RDF(3pm)

🌸 NAME 🌸

Attean::RDF β€” Utility package for exporting shorthand functions for constructing RDF objects. Yes bestie, this is the Attean::RDF(3pm) page. πŸ¦‹

πŸ’– VERSION πŸ’–

This document describes Attean::RDF version 0.035. πŸ‘‘

✨ SYNOPSIS ✨

Okay so picture this, but in code:

use v5.14;
use Attean::RDF;

my $s = blank('b');
my $p = iri('http://xmlns.com/foaf/0.1/name');
my $o = langliteral("Eve", "en");
my $triple = triple($s, $p, $o);
say $triple->as_string; # _:b <http://xmlns.com/foaf/0.1/name> "Eve"@en .

πŸŽ€ DESCRIPTION πŸŽ€

This is a utility package for exporting shorthand functions for constructing RDF objects such as IRIs, Literals, Blanks, Triples, etc. It’s giving shorthand central, and honestly? Obsessed. πŸ’…

πŸ’… FUNCTIONS πŸ’…

Every function defined in this package can be exported β€” and they are exported by default, so no cap, they’re just there for you. 🫢

Here’s the whole roster, no skips:

  • variable( $value ) β€” this one is literally Attean::Variable->new($value). ✨
  • iri( $value ) β€” iconic shorthand for Attean::IRI->new($value). 🌈
  • blank( $value ) β€” blank-node vibes: Attean::Blank->new($value). πŸŽ€
  • literal( $value ) β€” plain literal, slay: Attean::Literal->new($value). πŸ’–
  • dtliteral( $value, $dt ) β€” datatype-literal moment: Attean::Literal->new( value => $value, datatype => $dt ). πŸ”₯
  • langliteral( $value, $lang ) β€” language-tagged literal realness: Attean::Literal->new( value => $value, language => $lang ). 🌸
  • triple( @terms ) β€” triple time: Attean::Triple->new( @terms ). ⭐
  • triplepattern( @terms ) β€” triple-pattern time: Attean::TriplePattern->new( @terms ). πŸ¦‹
  • quad( @terms ) β€” quad time: Attean::Quad->new( @terms ). πŸ’œ
  • quadpattern( @terms ) β€” quad-pattern time: Attean::QuadPattern->new( @terms ). 🌟
  • bgp( @triplepatterns ) β€” basic graph pattern energy: Attean::Algebra::BGP->new( triples => \@triplepatterns ). πŸ‘‘

πŸ› BUGS πŸ›

Please report any bugs or feature requests through the GitHub web interface at <https://github.com/kasei/attean/issues>. That’s the whole ask, bestie. πŸ™ˆ

πŸ‘€ SEE ALSO πŸ‘€

πŸ‘‘ 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. πŸ’–


That’s the whole Attean::RDF(3pm) manual, bestie β€” signing off with source/version perl v5.40.0, dated 2025-01-26. Periodt. πŸ’…

πŸ“¦ where this page comes from