OWL::DirectSemantics::Translator - lift an OWL2 model from an RDF model
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);
This translator is only about 90% complete.
new
Creates a new translator object, primed and ready for action!
translate($model [,$ontology_node])
Translates the data in the RDF::Trine::Model provided into OWL, returning an OWL::DirectSemantics::Element::Ontology object. The model is generally assumed to contain a single ontology.
$ontology_node is an optional RDF::Trine::Node object containing the ontology's URIor blank node identifier.
$ontology_node
$model will be modified by the translation process. Any triples translated to OWL are removed from the model. Any triples remaining are ones that could not be translated. (If the model provided is OWL DL-compatible, there should be no triples remaining after translation.)
$model
OWL::DirectSemantics.
Toby Inkster <tobyink@cpan.org>.
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.
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.
To install OWL::DirectSemantics, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OWL::DirectSemantics
CPAN shell
perl -MCPAN -e shell install OWL::DirectSemantics
For more information on module installation, please visit the detailed CPAN module installation guide.