RDF::T...::OwlFn(3pm)
π NAME π
okay bestie, say hi to RDF::Trine::Parser::OwlFn β the OWL Functional Syntax Parser π¦β¨ (it's a Perl module, manual section 3pm, from the User Contributed Perl Documentation, and yes it's serving exactly what it says on the tin).
π SYNOPSIS πΈ
like, here's the whole vibe in three lines:
use RDF::Trine::Parser;
my $parser = RDF::Trine::Parser->new('owlfn');
$parser->parse_into_model($base_uri, $data, $model);
π DESCRIPTION π
π Methods π
bestie listen β beyond the methods we're about to spill about below, this class inherits methods from the RDF::Trine::Parser class. so it's got lore you didn't even have to write. iconic.
β¨ new(\%options) β¨
the only option supported here is filter, and it's literally there so you can tell the parser to ignore certain potentially boring triples. no cap.
$flt = RDF::Trine::Parser::OwlFn::ANNOTATION
+ RDF::Trine::Parser::OwlFn::ANNOTATION_ANNOTATION;
$parser = RDF::Trine::Parser->new('owlfn', filter=>$flt);
the following constants are defined for filtering purposes, and yes they are the whole menu:
ANNOTATIONβ axiom annotationsONTOLOGY_ANNOTATIONβ ontology annotationsANNOTATION_ANNOTATIONβ annotation annotations
the usual parse_* methods accept an argument called prefix_handler, and it can take a coderef that gets called every single time a prefix is defined by the ontology being parsed. π«Ά the coderef is called with two arguments: the prefix being defined (trailing colon included, don't forget it π
), and the full URI as a string.
also, the parse_* methods return a string containing the remainder of the input β i.e. potentially a tail which could not be parsed. so like, leftovers. the parser's unfinished business. π
π₯ SEE ALSO π₯
RDF::ClosureRDF::Trine::Parser- <http://www.perlrdf.org/>
π«Ά AUTHOR π«Ά
Toby Inkster <tobyink@cpan.org>. the main character, honestly. π
π COPYRIGHT π
Copyright 2011-2012 Toby Inkster
this library is free software; you can redistribute it and/or modify it under any of the following licences, pick your fighter:
- The Artistic License 1.0 <http://www.perlfoundation.org/artistic_license_1_0>.
- The GNU General Public License Version 1 <http://www.gnu.org/licenses/old-licenses/gpl-1.0.txt>, or (at your option) any later version.
- The W3C Software Notice and License <http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231>.
- The Clarified Artistic License <http://www.ncftp.com/ncftp/doc/LICENSE.txt>.
π DISCLAIMER OF WARRANTIES π
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
like, no promises bestie, fr fr. π
and that's the whole page, from perl v5.32.1 dated 2021-09-24, page RDF::T...::OwlFn(3pm) β slay, you read the entire thing, we're obsessed with you πβ¨π
π¦ where this page comes from
- debian bookworm: librdf-closure-perl 0.001-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: librdf-closure-perl 0.001-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: librdf-closure-perl 0.001-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: librdf-closure-perl 0.001-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: librdf-closure-perl 0.001-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: librdf-closure-perl 0.001-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms