OWL::DirectSemantics(3pm)

OWL::DirectSemantics3pm

Representation of the direct semantics of owl2

Usage

  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);

Overview

This distribution provides a basic framework for representing the OWL 2 direct semantics model, and a translator to build that model from an RDF-based model.

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.

Releases

6 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7
  2. 8–10
  3. 12–13

Author

Toby Inkster <[email protected]>.

From libowl-directsemantics-perl 0.001-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.