Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
owl_reasoners_via_owlapi [2013/02/04 12:20] tenorthowl_reasoners_via_owlapi [2014/08/08 09:35] admin
Line 1: Line 1:
 ====== Integration of OWL reasoners via OWLAPI ====== ====== Integration of OWL reasoners via OWLAPI ======
  
-Conventional OWL reasoners like Pellet or HermiT are interfaced via the OWL APIThe interface currently supports reasoning about the class ontology, especially the computation of inferred subclassesThe interface code is contained in the package knowrob_common in the module knowrob_owlapi+**Note: This page describes experimental code that has not been used in a whilePlease try it at your own risk.**
  
-There is a convenience predicate for calling the subclass-of relation which initializes the OWLAPI interface, copies the current class taxonomy from KnowRob, instantiates the reasoners and returns the inferred subclasses:+Conventional OWL reasoners like Pellet or HermiT are interfaced via the OWL API. The interface currently supports reasoning about the class ontology, especially the computation of inferred subclasses. The interface code is contained in the package //knowrob_common// in the module //knowrob_owlapi//There is a convenience predicate for calling the subclass-of relation which initializes the OWLAPI interface, copies the current class taxonomy from KnowRob, instantiates the reasoners and returns the inferred subclasses:
  
   ?- owlapi_subclass_of(Sub, Super)   ?- owlapi_subclass_of(Sub, Super)
Line 13: Line 13:
      
   % create OWLAPI interfaces: ontology manager, data factory, create empty ontology   % create OWLAPI interfaces: ontology manager, data factory, create empty ontology
-  owlapi_manager(OWLManager), owlapi_datafactory(OWLManager, DataFactory), owlapi_new_ontology('http://ias.cs.tum.edu/kb/knowrob.owl', OWLManager, OWLOntology).+  owlapi_manager(OWLManager), 
 +  owlapi_datafactory(OWLManager, DataFactory),  
 +  owlapi_new_ontology('http://ias.cs.tum.edu/kb/knowrob.owl', OWLManager, OWLOntology).
        
   % copy class taxonomy to the OWLAPI ontology   % copy class taxonomy to the OWLAPI ontology
Line 27: Line 29:
   owl_parse('owl/knowrob_owlapi_test.owl', false, false, true), consult('prolog/owlapi.pl').   owl_parse('owl/knowrob_owlapi_test.owl', false, false, true), consult('prolog/owlapi.pl').
        
-  owlapi_manager(OWLManager), owlapi_datafactory(OWLManager, DataFactory), owlapi_new_ontology('http://ias.cs.tum.edu/kb/knowrob.owl', OWLManager, OWLOntology).+  owlapi_manager(OWLManager),  
 +  owlapi_datafactory(OWLManager, DataFactory),  
 +  owlapi_new_ontology('http://ias.cs.tum.edu/kb/knowrob.owl', OWLManager, OWLOntology).
      
   findall(Res, add_to_ontology($OWLManager, $DataFactory, $OWLOntology, Res), _ResS).   findall(Res, add_to_ontology($OWLManager, $DataFactory, $OWLOntology, Res), _ResS).