OWL::D...slator(3pm)
π OWL::DirectSemantics::Translator β the vibe β¨
okay bestie, sit down, hydrate, because we're talking about OWL::DirectSemantics::Translator, which lives in the OWL::D...slator(3pm) corner of the perl universe (User Contributed Perl Documentation, no cap). its whole entire job? lift an OWL2 model from an RDF model. that's it. that's the girl. π
πΈ SYNOPSIS πΈ
like, here's the moment you've been waiting for:
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);
that's the whole flow. build a model, feed it, get an ontology back. slay. π
π¦ DESCRIPTION π¦
ngl, i have to be honest with you bestie: this translator is only about 90% complete. it's giving "almost iconic". not me warning you before you fall in love. π
π Constructor
newβ creates a brand-new translator object, primed and ready for action! she's fresh out the box, she's hydrated, she's got main character energy. β¨
π§ Method
translate($model [,$ontology_node])β takes the data inside theRDF::Trine::Modelyou handed her and translates it into OWL, returning anOWL::DirectSemantics::Element::Ontologyobject. the model is generally assumed to contain a single ontology (one ontology, one queen, that's the rule π«Ά).
$ontology_node is an optional RDF::Trine::Node object holding the ontology's URIor blank node identifier.
β οΈ bestie, real talk: $model will be modified by the translation process. this is not a read-only situation, it's a glow-up-in-place situation.
any triples that get translated into OWL are removed from the model. any triples still hanging around afterwards are the ones that could not be translated. and here's the cute part: if the model you provided is OWL DL-compatible, there should be no triples remaining after translation. clean plate club, periodt. π
π SEE ALSO π
OWL::DirectSemantics. go read her too, she's the whole reason this exists. iykyk.
π AUTHOR π
Toby Inkster <tobyink@cpan.org>. iconic behavior, honestly. π
π 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.
fr fr, no promises, no takebacks, no warranty. she said what she said. π
and that's the page, bestie β this one's from perl v5.32.1, dated 2021-09-11, so give her a little respect, she's been through things. mwah πβ¨
π¦ 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