OWL::D...antics(3pm)
π OWL::D...antics(3pm) β bestie edition π
okay so this is OWL::DirectSemantics, a Perl thing. it lives in the User Contributed Perl Documentation section of the manual, and the page title got abbreviated by the man system into OWL::D...antics(3pm) because apparently even manpages have to be mysterious. iykyk. π¦
β¨ NAME β¨
OWL::DirectSemantics β it's a representation of the direct semantics of OWL2. that's the whole vibe. π«Ά
β¨ SYNOPSIS β¨
here's the glow-up in action, no cap:
use RDF::Trine;
my $model = RDF::Trine::Model->temporary_model;
RDF::Trine::Mode->parse_url_into_model($url, $model);
use OWL::DirectSemantics;
my $translator = OWL::DirectSemantics::Translator->new;
my $ontology = $translator->translate($model);
foreach my $ax ($ontology->axioms)
{
if ($ax->element_name eq 'ClassAssertion')
{
printf("%s is of type %s.\n", $ax->node, $ax->class);
}
}
print "The following data couldn't be translated to OWL:\n";
print RDF::Trine::Serializer
->new('ntriples')
->serialize_model_to_string($model);
β οΈ not me pointing out that the second line says RDF::Trine::Mode β that's how it's written in the original, bestie, so i'm keeping it exactly as-is. copy it at your own risk. π
β¨ DESCRIPTION β¨
so basically? this distribution hands you a basic framework for representing the OWL 2 direct semantics model. and it also ships a translator whose whole job is building that model from an RDF-based model. it's giving pipeline. it's giving main character. β¨
β¨ SEE ALSO β¨
go read these too, they're the friend group:
OWL::DirectSemantics::Translator,OWL::DirectSemantics::Element,RDF::Trine::Serializer::OwlFn.RDF::Closure,RDF::Trine::Parser::OwlFn.RDF::Trine,RDF::Query, and <http://www.perlrdf.org/>.
β¨ AUTHOR β¨
Toby Inkster <tobyink@cpan.org>. king behaviour. π
β¨ COPYRIGHT β¨
Copyright 2011-2012 Toby Inkster
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. π
β¨ 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.
translation: it comes with zero promises, babes. no warranty, no take-backs, no "but you said it would work". fr fr. π
and that's the whole page! π source is perl v5.32.1, dated 2021-09-11, straight out of the User Contributed Perl Documentation. mwah, slay, go write some ontologies. π πβ
π¦ where this page comes from
- debian bookworm: libowl-directsemantics-perl 0.001-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libowl-directsemantics-perl 0.001-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libowl-directsemantics-perl 0.001-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libowl-directsemantics-perl 0.001-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libowl-directsemantics-perl 0.001-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libowl-directsemantics-perl 0.001-3 Β· 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