RDF::T...riples(3pm)

πŸ“¦
version 1.019 Β· 7 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NAME ✨

okay so bestie, this is RDF::Trine::Parser::NTriples β€” the N-Triples Parser πŸ’… it lives in the RDF::T...riples(3pm) manual page and it's literally here to parse N-Triples for you, no cap.


🌸 VERSION 🌸

This document describes RDF::Trine::Parser::NTriples version 1.019. yes, that's the one. periodt.


πŸ¦‹ SYNOPSIS πŸ¦‹

here's the vibe, copy-paste it and go:

use RDF::Trine::Parser;
my $parser     = RDF::Trine::Parser->new( 'ntriples' );
$parser->parse_into_model( $base_uri, $data, $model );

that's it. that's the whole main character moment. 🫢


πŸŽ€ DESCRIPTION πŸŽ€

...

no fr that's genuinely what the original says β€” ... β€” iconic behaviour, honestly. πŸ’€


πŸ’– METHODS πŸ’–

so beyond the methods listed down below, this class also inherits methods from the RDF::Trine::Parser class. it's giving family lineage, iykyk. πŸ‘‘

  • "new" β€” the constructor, obvi. it's listed here with no extra deets attached, so that's all we're saying about it. ✨
  • "parse_into_model ( $base_uri, $data, $model [, context => $context] )" β€” this one parses the bytes sitting in $data. and for every single RDF statement it parses, it will call "$model->add_statement( $statement )". every. single. one. πŸ“
  • "parse_file_into_model ( $base_uri, $fh, $model [, context => $context] )" β€” same energy, but it parses all the data read from the filehandle $fh. and yes, for each RDF statement parsed it will call "$model->add_statement( $statement )". πŸ’œ
  • "parse ( $base_uri, $rdf, \&handler )" β€” listed right here, bestie. 🌈
  • "parse_node ( $string, $base )" β€” this one returns the RDF::Trine::Node object that corresponds to the node whose N-Triples serialization is found at the beginning of $string. note it: at the beginning of the string. not the middle, not the end. the beginning. πŸ‘‘
  • "parse_file ( $base, $fh, \&handler )" β€” also listed. present and accounted for. πŸ’…

😭 BUGS 😭

pleaseeee report any bugs or feature requests through the GitHub web interface at <https://github.com/kasei/perlrdf/issues>. do not suffer in silence, bestie, that's not the move. πŸ™ˆ


πŸ‘‘ AUTHOR πŸ‘‘

Gregory Todd Williams β€” "<gwilliams@cpan.org>" 🌟


Copyright (c) 2006-2012 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. πŸ“œ


okay and that's the whole page, bestie!! πŸ«ΆπŸ’– this was perl v5.38.2 doing its thing, dated 2024-01-13, and that right there is RDF::T...riples(3pm) β€” slay, mwah, go parse some triples. πŸ’…βœ¨πŸŽ€
πŸ“¦ where this page comes from